OPEN-SOURCE SCRIPT
Murrey Math SMA up to 32s

Murrey Math SMA up to 32s [UNIFIED RVWAP] is a highly advanced Pine Script v5 indicator that combines Murrey Math Lines (MML) with a customizable moving average (MA) — including a non-repainting Rolling VWAP (RVWAP) — and dynamic color-coded support/resistance bands up to 1/32 subdivisions. It projects octave-based geometric price levels (like Gann) centered on your chosen MA, with adaptive scaling, angle-based trend coloring, and absolute/extended MML bands. Includes 1/8, 1/16, and 1/32 grid lines, shaded zones, labels, and a live increment display.Core FeaturesFeature
Description
MA Types
SMA, VWMA, VWAP, Period VWAP, RVWAP (rolling VWAP over fixed or adaptive time window)
Murrey Math Grid
Auto-scaled 0/8 to 8/8 + extensions (±3/8), with 1/16 & 1/32 subdivisions
Dynamic Coloring
Bands colored by MA slope angle (bullish/bearish) or absolute MML shift
RVWAP Engine
Non-repainting volume-weighted average over user-defined or adaptive time steps
Wick Filtering
Optional ignore wicks for cleaner MML framing
Resolution Support
Works with higher timeframe data via request.security()
Key Use Cases Use Case
How to Use
1. Precision Support & Resistance
Treat 4/8 (mid) as pivot, 0/8 & 8/8 as extremes. Price often reverses or accelerates at these levels.
2. Mean Reversion Trades
Buy near 0/8–1/8 (oversold), sell near 7/8–8/8 (overbought) when MA is flat or sloping mildly.
3. Trend Continuation
When MA angle > threshold and price breaks 5/8, expect move to 8/8. Confirm with volume.
4. Breakout Entries
Watch for close beyond 8/8 or 0/8 + MA angle steep → strong momentum breakout.
5. Scalping with 1/32 Grid
Use 1/32 lines as micro-targets in ranging markets or after news spikes.
6. Volume-Weighted Fair Value
RVWAP = true average price paid over time → anchor for institutional fair value.
Visual Layout (MA-Centered)
+3/8 ───┐
+2/8 ───┤ ← Strong resistance
+1/8 ───┤
8/8 ███┤ ← Overbought (red zone)
7/8 ───┤
6/8 ███┤
5/8 ───┤
4/8 ███┤ ← Midline (pivot)
3/8 ───┤
2/8 ███┤
1/8 ───┤
0/8 ███┤ ← Oversold (green zone)
-1/8 ───┤
-2/8 ───┤
-3/8 ───┘
Shaded: 0/8–1/8 (buy), 7/8–8/8 (sell), 3/8–5/8 (neutral/consolidation)
MA Line: Orange (RVWAP) or hidden
Labels: Bottom, 1/4, Mid, 3/4, Top (offset to the right)
Table: Shows current Increment size
Best For Swing & scalp traders on stocks, forex, crypto
Volume-based strategies (RVWAP shines in high-volume moves)
Gann/Murrey Math enthusiasts wanting automation + modern MA anchoring
Description
MA Types
SMA, VWMA, VWAP, Period VWAP, RVWAP (rolling VWAP over fixed or adaptive time window)
Murrey Math Grid
Auto-scaled 0/8 to 8/8 + extensions (±3/8), with 1/16 & 1/32 subdivisions
Dynamic Coloring
Bands colored by MA slope angle (bullish/bearish) or absolute MML shift
RVWAP Engine
Non-repainting volume-weighted average over user-defined or adaptive time steps
Wick Filtering
Optional ignore wicks for cleaner MML framing
Resolution Support
Works with higher timeframe data via request.security()
Key Use Cases Use Case
How to Use
1. Precision Support & Resistance
Treat 4/8 (mid) as pivot, 0/8 & 8/8 as extremes. Price often reverses or accelerates at these levels.
2. Mean Reversion Trades
Buy near 0/8–1/8 (oversold), sell near 7/8–8/8 (overbought) when MA is flat or sloping mildly.
3. Trend Continuation
When MA angle > threshold and price breaks 5/8, expect move to 8/8. Confirm with volume.
4. Breakout Entries
Watch for close beyond 8/8 or 0/8 + MA angle steep → strong momentum breakout.
5. Scalping with 1/32 Grid
Use 1/32 lines as micro-targets in ranging markets or after news spikes.
6. Volume-Weighted Fair Value
RVWAP = true average price paid over time → anchor for institutional fair value.
Visual Layout (MA-Centered)
+3/8 ───┐
+2/8 ───┤ ← Strong resistance
+1/8 ───┤
8/8 ███┤ ← Overbought (red zone)
7/8 ───┤
6/8 ███┤
5/8 ───┤
4/8 ███┤ ← Midline (pivot)
3/8 ───┤
2/8 ███┤
1/8 ───┤
0/8 ███┤ ← Oversold (green zone)
-1/8 ───┤
-2/8 ───┤
-3/8 ───┘
Shaded: 0/8–1/8 (buy), 7/8–8/8 (sell), 3/8–5/8 (neutral/consolidation)
MA Line: Orange (RVWAP) or hidden
Labels: Bottom, 1/4, Mid, 3/4, Top (offset to the right)
Table: Shows current Increment size
Best For Swing & scalp traders on stocks, forex, crypto
Volume-based strategies (RVWAP shines in high-volume moves)
Gann/Murrey Math enthusiasts wanting automation + modern MA anchoring
Script de código abierto
Siguiendo fielmente el espíritu de TradingView, el creador de este script lo ha publicado en código abierto, permitiendo que otros traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Puede utilizarlo de forma gratuita, pero tenga en cuenta que la publicación de este código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.
Script de código abierto
Siguiendo fielmente el espíritu de TradingView, el creador de este script lo ha publicado en código abierto, permitiendo que otros traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Puede utilizarlo de forma gratuita, pero tenga en cuenta que la publicación de este código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.