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

This script is a comprehensive price action and market structure analysis tool designed for intraday traders, particularly those focused on Nifty and derivatives. It combines multiple strategies and signals into a single, customizable indicator.
๐ Features Included:
1. ๐ 2-Consecutive Candle Logic (Strict Coloring)
Highlights strong bullish or bearish momentum using consecutive green/red candle logic.
Detects candles that close above the previous high or below the previous low.
2. ๐ Order Block (OB) Detection
Identifies large, impulsive reversal candles based on body size and wick breakout.
Labels the OB with a customizable tag and direction.
3. ๐ Central Pivot Range (CPR)
Plots daily CPR, along with yesterdayโs R1 and S1 levels.
Detects and labels Narrow CPR Days (potential breakout setups).
4. ๐ MA21 / MA50 Dynamic Crossover
Plots 21 and 50-period moving averages (SMA or EMA).
Fills background color between MAs to visually indicate trend direction.
Buy/Sell triangle signals on crossover events.
5. ๐ฆ Last 5-Minute Box (Previous Day Close Range)
Highlights the last 5-minute candle of the previous day.
Colors the box based on how the market opens and closes relative to that range (breakout/rejection box logic).
6. ๐ก Weak Candle Detection
Identifies weak candle patterns like Doji, Hammer, Inverted Hammer, Dragonfly, Gravestone, Hanging Man.
Applies a soft gray tone to visually de-emphasize indecision candles.
7. ๐ฌ CPR-Based Options Strike Price Labels
Automatically calculates CE and PE strikes using Nifty Index spot CPR.
Displays Put, Call, and Exit strike levels at 9:15 AM.
8. ๐ Additional Strike Labels Based on Previous Day Range
Shows Buy CE strike (floored from previous Nifty spot High).
Shows Buy PE strike (ceiled from previous Nifty spot Low).
Useful for directional option strategies.
9. ๐ด One-Time Dot Signal for Rejection
Plots a small dot on the first 5-minute candle that:
Closes above the previous dayโs high, or
Closes below the previous dayโs low.
Only appears once per day to avoid clutter.
๐ Features Included:
1. ๐ 2-Consecutive Candle Logic (Strict Coloring)
Highlights strong bullish or bearish momentum using consecutive green/red candle logic.
Detects candles that close above the previous high or below the previous low.
2. ๐ Order Block (OB) Detection
Identifies large, impulsive reversal candles based on body size and wick breakout.
Labels the OB with a customizable tag and direction.
3. ๐ Central Pivot Range (CPR)
Plots daily CPR, along with yesterdayโs R1 and S1 levels.
Detects and labels Narrow CPR Days (potential breakout setups).
4. ๐ MA21 / MA50 Dynamic Crossover
Plots 21 and 50-period moving averages (SMA or EMA).
Fills background color between MAs to visually indicate trend direction.
Buy/Sell triangle signals on crossover events.
5. ๐ฆ Last 5-Minute Box (Previous Day Close Range)
Highlights the last 5-minute candle of the previous day.
Colors the box based on how the market opens and closes relative to that range (breakout/rejection box logic).
6. ๐ก Weak Candle Detection
Identifies weak candle patterns like Doji, Hammer, Inverted Hammer, Dragonfly, Gravestone, Hanging Man.
Applies a soft gray tone to visually de-emphasize indecision candles.
7. ๐ฌ CPR-Based Options Strike Price Labels
Automatically calculates CE and PE strikes using Nifty Index spot CPR.
Displays Put, Call, and Exit strike levels at 9:15 AM.
8. ๐ Additional Strike Labels Based on Previous Day Range
Shows Buy CE strike (floored from previous Nifty spot High).
Shows Buy PE strike (ceiled from previous Nifty spot Low).
Useful for directional option strategies.
9. ๐ด One-Time Dot Signal for Rejection
Plots a small dot on the first 5-minute candle that:
Closes above the previous dayโs high, or
Closes below the previous dayโs low.
Only appears once per day to avoid clutter.
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.