PROTECTED SOURCE SCRIPT

Deep Z MA + 2 CC + OB + CPR + last 5 Min

24
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().

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.