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().
受保護腳本
此腳本以閉源形式發佈。 不過,您可以自由且不受任何限制地使用它 — 在此處了解更多資訊。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
受保護腳本
此腳本以閉源形式發佈。 不過,您可以自由且不受任何限制地使用它 — 在此處了解更多資訊。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。