PROTECTED SOURCE SCRIPT

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

16
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.

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。