PROTECTED SOURCE SCRIPT
Super Indicator by Shahed

Short Description (one‑liner)
Trend‑gated line‑breakout system for 1D charts: buy breakouts + pullback buys, ATR‑buffered stops, long target & volume‑scaled target, PDL/PDH and liquidity stats, with a light green/red background for trend.
Full Description
What this script does
Finds buy opportunities on a line chart (close):
Recent High Breakout (tiny green dot)
Pullback Buy after a confirmed swing‑high break → 3–7 lower closes, then a bullish bar (tiny black dot)
Flags sells only for context:
Recent Low Breakout and Swing‑Low Break (tiny red dots)
Applies trend gating:
Signals only plot when the background is light green, i.e., when SMA20 > SMA50, SMA150, and SMA200
Background turns light red when the condition fails (no signals in red regime)
Uses ATR‑buffered stops and targets:
Long ATR Stop = last swing low − (ATR × multiplier)
Long Target (R multiple) = entry + RR × (entry − ATR stop)
Volume Target = entry + (ATR × base multiplier × Relative Volume)
(Relative Volume = Today’s daily volume ÷ 30‑day average daily volume, capped between user‑defined min/max)
Shows a compact, relocatable info panel (no drag—choose corner in settings):
Long Stop (ATR), Short Stop (ATR)
PDL (previous day low), PDH (previous day high)
Today’s Volume (Millions)
Avg Turnover (30‑day, Crores)
Long Target, Volume Target
Relative Volume (x)
Draws a horizontal line at the current Long Target, automatically updating on new long entries (extends to the right).
Why it’s useful
Simple entries on the close (line chart) with objective structure (swing confirmation).
Trend alignment by design (light green background required for signals).
Risk-aware: stops use ATR buffers off confirmed swing lows/highs.
Liquidity-aware: targets flex with relative volume.
Clean visual layer: tiny dots, light background, compact panel.
Signals & Logic (plain language)
Buy (Breakout): close crosses above the recent high (lookback N).
Buy (Pullback): after a swing‑high break, count 3–7 consecutive lower closes, then on the next bullish bar → buy.
Sell (Context): recent low breakout or a break below the most recent swing low.
Trend filter: all signals only print when SMA20 > SMA50, SMA150, SMA200 (background light green).
Note: Swings use pivotlow/pivothigh on close to match a line chart. Pivots confirm after swRight bars, making stops stable (but slightly delayed).
Table / Panel (what you see)
Long Stop (ATR) and Short Stop (ATR)
PDL / PDH (from daily timeframe)
Vol Today (M) and Avg Turn 30D (Cr)
Long Target (R) and Volume Target
Rel Vol (x) (today’s daily volume ÷ 30D average volume)
You can change the panel position via Panel Position (Top‑Left / Top‑Right / Bottom‑Left / Bottom‑Right).
Inputs (key)
Breakout Lookback and Repaint‑safe recent levels toggle
Swing Left/Right (pivot confirmation)
ATR Length and ATR Multiplier
RR for Long Target (e.g., 2.0R)
Volume Target base ATR Multiplier, RelVol floor/ceiling
Panel Position, Panel Transparency
Show Target Line, color, width
Enable Pullback Buy, LL min/max, Require bullish bar
Show Text Labels (BUY/SELL)
Alerts
BUY – Recent High Broken
SELL – Recent Low Broken
SELL – Swing Low Broken
BUY – Pullback after Swing High Break
Alerts only fire when the background is green (trend up condition).
Best‑practice tips
This is tuned for Daily charts. For intraday, consider adjusting:
Swing Left/Right (e.g., 1–2 for faster swings)
ATR Multiplier (e.g., 0.5–1.0 intraday; 1.0–1.5 if noisy)
RR (start with 1.0–1.5, then explore 2.0)
If you want the Volume Target to matter more or less, adjust Vol Target Base ATR Multiplier and RelVol caps.
Limitations & notes
No repainting of signals: pivots are confirmed before being used for stops/pullback logic.
Relative Volume uses daily volumes. On non‑daily charts, values still come from the daily timeframe to stay consistent.
No manual drag for the panel (Pine v4 limitation). Use the corner selector.
How to present screenshots
1D chart with:
Light green background, green/red dots, a black pullback buy dot.
Panel in a corner (e.g., Bottom Right).
Target line drawn and extending right.
One screenshot with a marked pullback sequence (3–7 lower closes) and the following bullish bar entry.
Suggested Tags
breakout, swing, ATR, trend, volume, relative-volume, PDL, PDH, targets, risk-management, line-chart
Disclaimer
This script is for educational purposes. Not financial advice. Trading involves risk. Always validate on your timeframe and instruments, and combine with your execution and risk rules.
Trend‑gated line‑breakout system for 1D charts: buy breakouts + pullback buys, ATR‑buffered stops, long target & volume‑scaled target, PDL/PDH and liquidity stats, with a light green/red background for trend.
Full Description
What this script does
Finds buy opportunities on a line chart (close):
Recent High Breakout (tiny green dot)
Pullback Buy after a confirmed swing‑high break → 3–7 lower closes, then a bullish bar (tiny black dot)
Flags sells only for context:
Recent Low Breakout and Swing‑Low Break (tiny red dots)
Applies trend gating:
Signals only plot when the background is light green, i.e., when SMA20 > SMA50, SMA150, and SMA200
Background turns light red when the condition fails (no signals in red regime)
Uses ATR‑buffered stops and targets:
Long ATR Stop = last swing low − (ATR × multiplier)
Long Target (R multiple) = entry + RR × (entry − ATR stop)
Volume Target = entry + (ATR × base multiplier × Relative Volume)
(Relative Volume = Today’s daily volume ÷ 30‑day average daily volume, capped between user‑defined min/max)
Shows a compact, relocatable info panel (no drag—choose corner in settings):
Long Stop (ATR), Short Stop (ATR)
PDL (previous day low), PDH (previous day high)
Today’s Volume (Millions)
Avg Turnover (30‑day, Crores)
Long Target, Volume Target
Relative Volume (x)
Draws a horizontal line at the current Long Target, automatically updating on new long entries (extends to the right).
Why it’s useful
Simple entries on the close (line chart) with objective structure (swing confirmation).
Trend alignment by design (light green background required for signals).
Risk-aware: stops use ATR buffers off confirmed swing lows/highs.
Liquidity-aware: targets flex with relative volume.
Clean visual layer: tiny dots, light background, compact panel.
Signals & Logic (plain language)
Buy (Breakout): close crosses above the recent high (lookback N).
Buy (Pullback): after a swing‑high break, count 3–7 consecutive lower closes, then on the next bullish bar → buy.
Sell (Context): recent low breakout or a break below the most recent swing low.
Trend filter: all signals only print when SMA20 > SMA50, SMA150, SMA200 (background light green).
Note: Swings use pivotlow/pivothigh on close to match a line chart. Pivots confirm after swRight bars, making stops stable (but slightly delayed).
Table / Panel (what you see)
Long Stop (ATR) and Short Stop (ATR)
PDL / PDH (from daily timeframe)
Vol Today (M) and Avg Turn 30D (Cr)
Long Target (R) and Volume Target
Rel Vol (x) (today’s daily volume ÷ 30D average volume)
You can change the panel position via Panel Position (Top‑Left / Top‑Right / Bottom‑Left / Bottom‑Right).
Inputs (key)
Breakout Lookback and Repaint‑safe recent levels toggle
Swing Left/Right (pivot confirmation)
ATR Length and ATR Multiplier
RR for Long Target (e.g., 2.0R)
Volume Target base ATR Multiplier, RelVol floor/ceiling
Panel Position, Panel Transparency
Show Target Line, color, width
Enable Pullback Buy, LL min/max, Require bullish bar
Show Text Labels (BUY/SELL)
Alerts
BUY – Recent High Broken
SELL – Recent Low Broken
SELL – Swing Low Broken
BUY – Pullback after Swing High Break
Alerts only fire when the background is green (trend up condition).
Best‑practice tips
This is tuned for Daily charts. For intraday, consider adjusting:
Swing Left/Right (e.g., 1–2 for faster swings)
ATR Multiplier (e.g., 0.5–1.0 intraday; 1.0–1.5 if noisy)
RR (start with 1.0–1.5, then explore 2.0)
If you want the Volume Target to matter more or less, adjust Vol Target Base ATR Multiplier and RelVol caps.
Limitations & notes
No repainting of signals: pivots are confirmed before being used for stops/pullback logic.
Relative Volume uses daily volumes. On non‑daily charts, values still come from the daily timeframe to stay consistent.
No manual drag for the panel (Pine v4 limitation). Use the corner selector.
How to present screenshots
1D chart with:
Light green background, green/red dots, a black pullback buy dot.
Panel in a corner (e.g., Bottom Right).
Target line drawn and extending right.
One screenshot with a marked pullback sequence (3–7 lower closes) and the following bullish bar entry.
Suggested Tags
breakout, swing, ATR, trend, volume, relative-volume, PDL, PDH, targets, risk-management, line-chart
Disclaimer
This script is for educational purposes. Not financial advice. Trading involves risk. Always validate on your timeframe and instruments, and combine with your execution and risk rules.
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarle liberamente e senza alcuna limitazione – ulteriori informazioni qui.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarle liberamente e senza alcuna limitazione – ulteriori informazioni qui.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.