Unbroke Oscillator Matrix

267
Unbroke Oscillator Matrix puts momentum, money flow and divergences in one pane.

What it shows
  • Momentum: RSI(14) minus 50, so 0 is the middle. Line color goes from red to green.
  • Money flow: MFI(14) minus 50, lightly smoothed, as columns. It needs volume; with no volume it stays empty.
  • Regular divergences: price makes a lower low while momentum makes a higher low (bull), or the mirror (bear). Pivots need 5 bars on each side and are at most 60 bars apart.
  • Divergences show when the momentum pivot is confirmed, 5 bars after it, at a bar close. Nothing repaints.


Stats panel (vs random entries)
Bottom left. Each signal is tested with one rule: did price move 1 ATR(14) in the signal's direction before it moved 1 ATR against, within 24 bars? Then it is compared with random bars on the same chart, scored the same way. "Beats random" needs a gap bigger than the noise range (95%). Fewer than 20 cases shows "Not enough data".

Honest results
We ran the same rules in a Python copy of the script on NQ futures 1-minute data (Dec 2022 to Dec 2025):
  • NQ 5m: random 48.0% (9,208). Divergences 50.4% (3,122), beats random by a small margin. Divergence + money flow 50.9% (932, inside noise). Momentum cross 0: 49.0%, inside noise.
  • NQ 15m: divergences 43.8% (1,024), worse than random. Momentum crosses inside noise.

The result flips between timeframes. We would not treat divergences as an edge from this test. Your chart's numbers will differ because your chart loads a different amount of history.

Alerts
Bull / bear divergence, momentum up / down.

Original Pine Script v6 code by Unbroke, open-source under MPL 2.0.

Educational, not financial advice. Past results don't predict future results.

Declinazione di responsabilità

Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.