PROTECTED SOURCE SCRIPT
Deep Z MA + 2 CC + OB + CPR + last 5 Min

Script Overview
Two-Consecutive Candle Coloring
Tracks consecutive red/green candles and paints streak bars in softer hues.
Highlights candles piercing previous candle’s wick in bold colors (deep red/green).
Order Block (OB) Detection
Identifies bars with >1.5× range compared to prior bar and opposite color.
Marks them as OB and colors them bright green (bullish) or red (bearish).
Central Pivot Range (CPR) & Daily S1/R1
Calculates pivot, BC, TC, S1, R1 for daily timeframe using request.security.
Plots yesterday’s CPR and either yesterday’s S1/R1 or high/low depending on which level extends further.
Also plots current intraday high/low.
Moving Averages & Signals
Plots MA21 and MA50 (SMA or EMA by user choice), colored green if MA21 > MA50, otherwise red.
Marks crossover (buy) and crossunder (sell) with triangle shapes.
Prev-Day 5‑Minute Candle Box
Records last 5‑min candle before daily close, plots a shaded box next day to show its high/low zone.
Changes box color green or red if price breaks above/below—helps visualize early breakout.
Weak Candle Detection
Flags doji, hammer variants, and small-bodied candles, coloring them semi-transparent gray.
Daily Delta Label Near R1
Calculates dynamic “Δ” percentage per weekday.
Places a label ~36 bars ahead, offset above intraday high, showing that delta value.
Final Candle Coloring
Applies all coloring logic via barcolor().
Two-Consecutive Candle Coloring
Tracks consecutive red/green candles and paints streak bars in softer hues.
Highlights candles piercing previous candle’s wick in bold colors (deep red/green).
Order Block (OB) Detection
Identifies bars with >1.5× range compared to prior bar and opposite color.
Marks them as OB and colors them bright green (bullish) or red (bearish).
Central Pivot Range (CPR) & Daily S1/R1
Calculates pivot, BC, TC, S1, R1 for daily timeframe using request.security.
Plots yesterday’s CPR and either yesterday’s S1/R1 or high/low depending on which level extends further.
Also plots current intraday high/low.
Moving Averages & Signals
Plots MA21 and MA50 (SMA or EMA by user choice), colored green if MA21 > MA50, otherwise red.
Marks crossover (buy) and crossunder (sell) with triangle shapes.
Prev-Day 5‑Minute Candle Box
Records last 5‑min candle before daily close, plots a shaded box next day to show its high/low zone.
Changes box color green or red if price breaks above/below—helps visualize early breakout.
Weak Candle Detection
Flags doji, hammer variants, and small-bodied candles, coloring them semi-transparent gray.
Daily Delta Label Near R1
Calculates dynamic “Δ” percentage per weekday.
Places a label ~36 bars ahead, offset above intraday high, showing that delta value.
Final Candle Coloring
Applies all coloring logic via barcolor().
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had – ketahui lebih lanjut di sini.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had – ketahui lebih lanjut di sini.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.