PROTECTED SOURCE SCRIPT
Shahed Pro Indicator-2

Shahed Pro – Pullback & Swing‑High Buy Indicator
What it does (in one line):
Shows two high‑probability long setups in uptrends: Swing‑High Breakout and Pullback to EMA‑20.
It also shows a small info panel with Target (RR), % from 52‑week High/Low, Sector, and Industry.
Why this can help
Focuses only on trend‑aligned long signals.
Filters out weak conditions (no signals when EMA10 ≤ EMA20).
Keeps risk simple: stop = previous candle’s low; target = RR × risk (default 2R).
Lightweight panel gives quick context (how far from 52‑week extremes + the symbol’s sector/industry).
How it works (simple)
1) Trend Filter (hard gate)
No Buy if EMA(10) ≤ EMA(20).
Also requires a broader bias: SMA(50) > SMA(150) and SMA(50) > SMA(200).
2) Buy Signals (only two)
Swing‑High Buy (SH):
A confirmed breakout above the last pivot high (swing high). You can choose close‑based or tick‑based breakout.
Pullback Buy (PB):
After a swing‑high breakout, price pulls back with 3–7 lower closes, touches/near‑touches EMA‑20 (tolerance configurable), then prints a bullish bar (close > open).
3) Risk & Reward
Stop = previous candle’s low at the entry bar.
Target = Entry + RR × (Entry − Stop). Default RR = 2.0 (2R).
Optional lines plot on chart for both target (dashed) and stop (dotted).
Signals on chart
BUY (SH) – Swing‑High breakout over the last pivot high.
BUY (PB) – Pullback to EMA‑20 with a bullish reversal after 3–7 lower closes.
SELL (recent low / swing‑low break) – Minimal downside references (optional; kept for context).
All signals are confirmed on bar close (no repaint of signals after the bar closes).
Mini Info Panel (top‑right by default)
Target (RR) – shows the current absolute target price based on your RR (e.g., 2R).
% from 52‑week High
% from 52‑week Low
Sector (from the symbol metadata)
Industry (from the symbol metadata)
You can move or hide the panel in settings.
Key Inputs (quick guide)
Breakout must be by CLOSE / tick – choose how to confirm a swing‑high breakout.
Use confirmed recent levels – excludes the forming bar when finding recent H/L.
Swing Left / Right – pivot sensitivity for swing‑high detection.
Pullback: EMA‑20 touch – enable/disable, tolerance (%), and lookback window.
RR (x risk) – target multiple (default: 2.0).
Show Target/Stop Lines – toggle lines for clarity.
Mini Info Panel – show/hide, position, transparency.
Best‑practice tips
Timeframe: Designed for daily charts (works on others, but the logic and 52‑week context align best on 1D).
Stocks with clean trends: Works best on names with smooth EMA/MA structure and reasonable liquidity.
Avoid counter‑trend: The EMA10 > EMA20 and SMA filters help, but always check structure and nearby resistance.
Use with a plan: Size risk per trade (e.g., 0.5–1R), stick to the stop, and take partials at 1R if that suits your style.
Alerts (ready to use)
Buy – triggers on either BUY (SH) or BUY (PB) at bar close.
Sell – triggers on sell references at bar close.
Alert messages:
Buy: {{ticker}} {{interval}} close={{close}}
Sell: {{ticker}} {{interval}} close={{close}}
Create alerts from the “Alerts” panel and pick this indicator’s conditions.
What this indicator is not
Not a promise of profits or a guarantee of future performance.
Not a fully automated strategy (it’s an indicator; entries/exits need your discretion).
Not a replacement for risk management or a complete trading plan.
Changelog (summary)
Focused scope: only two buy signals (Swing‑High, Pullback).
Hard EMA gate: no buy when EMA10 ≤ EMA20.
Minimal panel with Target, 52W distances, Sector, Industry.
Clean, confirmed signals at bar close (reduced noise).
Disclaimer
This script is provided for educational and informational purposes only. It does not constitute financial, investment, or trading advice. Markets involve risk, including the possible loss of capital. Past performance is not indicative of future results. You are solely responsible for your own trading decisions and risk management. Always do your own research and consult a licensed financial professional if needed.
What it does (in one line):
Shows two high‑probability long setups in uptrends: Swing‑High Breakout and Pullback to EMA‑20.
It also shows a small info panel with Target (RR), % from 52‑week High/Low, Sector, and Industry.
Why this can help
Focuses only on trend‑aligned long signals.
Filters out weak conditions (no signals when EMA10 ≤ EMA20).
Keeps risk simple: stop = previous candle’s low; target = RR × risk (default 2R).
Lightweight panel gives quick context (how far from 52‑week extremes + the symbol’s sector/industry).
How it works (simple)
1) Trend Filter (hard gate)
No Buy if EMA(10) ≤ EMA(20).
Also requires a broader bias: SMA(50) > SMA(150) and SMA(50) > SMA(200).
2) Buy Signals (only two)
Swing‑High Buy (SH):
A confirmed breakout above the last pivot high (swing high). You can choose close‑based or tick‑based breakout.
Pullback Buy (PB):
After a swing‑high breakout, price pulls back with 3–7 lower closes, touches/near‑touches EMA‑20 (tolerance configurable), then prints a bullish bar (close > open).
3) Risk & Reward
Stop = previous candle’s low at the entry bar.
Target = Entry + RR × (Entry − Stop). Default RR = 2.0 (2R).
Optional lines plot on chart for both target (dashed) and stop (dotted).
Signals on chart
BUY (SH) – Swing‑High breakout over the last pivot high.
BUY (PB) – Pullback to EMA‑20 with a bullish reversal after 3–7 lower closes.
SELL (recent low / swing‑low break) – Minimal downside references (optional; kept for context).
All signals are confirmed on bar close (no repaint of signals after the bar closes).
Mini Info Panel (top‑right by default)
Target (RR) – shows the current absolute target price based on your RR (e.g., 2R).
% from 52‑week High
% from 52‑week Low
Sector (from the symbol metadata)
Industry (from the symbol metadata)
You can move or hide the panel in settings.
Key Inputs (quick guide)
Breakout must be by CLOSE / tick – choose how to confirm a swing‑high breakout.
Use confirmed recent levels – excludes the forming bar when finding recent H/L.
Swing Left / Right – pivot sensitivity for swing‑high detection.
Pullback: EMA‑20 touch – enable/disable, tolerance (%), and lookback window.
RR (x risk) – target multiple (default: 2.0).
Show Target/Stop Lines – toggle lines for clarity.
Mini Info Panel – show/hide, position, transparency.
Best‑practice tips
Timeframe: Designed for daily charts (works on others, but the logic and 52‑week context align best on 1D).
Stocks with clean trends: Works best on names with smooth EMA/MA structure and reasonable liquidity.
Avoid counter‑trend: The EMA10 > EMA20 and SMA filters help, but always check structure and nearby resistance.
Use with a plan: Size risk per trade (e.g., 0.5–1R), stick to the stop, and take partials at 1R if that suits your style.
Alerts (ready to use)
Buy – triggers on either BUY (SH) or BUY (PB) at bar close.
Sell – triggers on sell references at bar close.
Alert messages:
Buy: {{ticker}} {{interval}} close={{close}}
Sell: {{ticker}} {{interval}} close={{close}}
Create alerts from the “Alerts” panel and pick this indicator’s conditions.
What this indicator is not
Not a promise of profits or a guarantee of future performance.
Not a fully automated strategy (it’s an indicator; entries/exits need your discretion).
Not a replacement for risk management or a complete trading plan.
Changelog (summary)
Focused scope: only two buy signals (Swing‑High, Pullback).
Hard EMA gate: no buy when EMA10 ≤ EMA20.
Minimal panel with Target, 52W distances, Sector, Industry.
Clean, confirmed signals at bar close (reduced noise).
Disclaimer
This script is provided for educational and informational purposes only. It does not constitute financial, investment, or trading advice. Markets involve risk, including the possible loss of capital. Past performance is not indicative of future results. You are solely responsible for your own trading decisions and risk management. Always do your own research and consult a licensed financial professional if needed.
受保护脚本
此脚本以闭源形式发布。 但是,您可以自由使用,没有任何限制 — 了解更多信息这里。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
受保护脚本
此脚本以闭源形式发布。 但是,您可以自由使用,没有任何限制 — 了解更多信息这里。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。