PROTECTED SOURCE SCRIPT
Reversal Signal [aganac3]

This indicator is an advanced reversal detection system designed to identify high-probability turning points in price action using RSI dynamics, EMA structure, ATR volatility, and volume-based confirmation.
The script automatically generates BUY/SELL signals, calculates target profit levels (TP1–TP3) and stop loss (SL) using ATR projections, and provides adaptive signal filtering based on market conditions and higher-timeframe trend bias.
It is built for traders who need a precise, all-in-one reversal detection and trade-management system for intraday and swing trading across any market (forex, gold, crypto, or stocks).
⚙️ Main Features
🔸 1. Smart Reversal Probability Engine
Calculates bullish/bearish probabilities (0–100%) using:
RSI deviation & slope
EMA bias (50 vs 200)
ATR volatility conditions
Candle structures (Engulfing, Pin Bar)
Demand/Supply zone proximity
Volume & momentum bursts
Adaptive weighting via sigmoid normalization for smooth probability transitions.
🔸 2. Multi-Timeframe Confirmation
Imports higher-timeframe (HTF) EMAs (default: 15-minute) for trend confirmation.
Suppresses false signals against dominant HTF direction:
Uptrend → fewer SELL signals
Downtrend → fewer BUY signals
🔸 3. Adaptive Sensitivity & Alert Modes
Sensitivity Options: Aggressive / Normal / Conservative
Controls reaction speed and signal frequency.
Alert Modes: Normal / Strict
Normal: at least 3 confirmations required
Strict: must confirm with pattern, volume, and candle bias
Alert threshold: customizable (default: 85%)
🔸 4. Demand & Supply Zone Logic
Automatically determines zone position based on recent price range.
BUY bias favored when price in demand zone (bottom 35%)
SELL bias favored when price in supply zone (top 35%)
🔸 5. Volatility & Volume Confirmation
Detects ATR spikes and volume surges for strong reversals.
Optional weighting for burst acceleration and pressure (momentum direction).
🔸 6. Target Projection (TP/SL System)
Auto-plots:
TP1, TP2, TP3 = ATR-based target levels
SL = ATR-based stop loss
Dashed lines with floating price labels, lines and labels auto-delete when hit (to maintain a clean chart).
Fully automated trade management visualization.
🔸 7. Signal Cooldown & Cleanup
Customizable cooldown (default 10 bars) to prevent over-signaling.
Automatic reset of TP/SL after trade conclusion (TP or SL hit).
🔸 8. Visuals & Alerts
BUY = 🔼 green triangle below bar
SELL = 🔽 red triangle above bar
Alerts available for:
“Bullish Reversal”
“Bearish Reversal”
Clean overlay design — ideal for dark or light chart themes.
🔸 9. Use Cases
XAU/USD (Gold): short-term scalping or intraday reversals
Crypto (BTC/ETH): H1–H4 swing setups
Stocks: Daily trend reversals
Indices: Multi-TF trend exhaustion tracking
The script automatically generates BUY/SELL signals, calculates target profit levels (TP1–TP3) and stop loss (SL) using ATR projections, and provides adaptive signal filtering based on market conditions and higher-timeframe trend bias.
It is built for traders who need a precise, all-in-one reversal detection and trade-management system for intraday and swing trading across any market (forex, gold, crypto, or stocks).
⚙️ Main Features
🔸 1. Smart Reversal Probability Engine
Calculates bullish/bearish probabilities (0–100%) using:
RSI deviation & slope
EMA bias (50 vs 200)
ATR volatility conditions
Candle structures (Engulfing, Pin Bar)
Demand/Supply zone proximity
Volume & momentum bursts
Adaptive weighting via sigmoid normalization for smooth probability transitions.
🔸 2. Multi-Timeframe Confirmation
Imports higher-timeframe (HTF) EMAs (default: 15-minute) for trend confirmation.
Suppresses false signals against dominant HTF direction:
Uptrend → fewer SELL signals
Downtrend → fewer BUY signals
🔸 3. Adaptive Sensitivity & Alert Modes
Sensitivity Options: Aggressive / Normal / Conservative
Controls reaction speed and signal frequency.
Alert Modes: Normal / Strict
Normal: at least 3 confirmations required
Strict: must confirm with pattern, volume, and candle bias
Alert threshold: customizable (default: 85%)
🔸 4. Demand & Supply Zone Logic
Automatically determines zone position based on recent price range.
BUY bias favored when price in demand zone (bottom 35%)
SELL bias favored when price in supply zone (top 35%)
🔸 5. Volatility & Volume Confirmation
Detects ATR spikes and volume surges for strong reversals.
Optional weighting for burst acceleration and pressure (momentum direction).
🔸 6. Target Projection (TP/SL System)
Auto-plots:
TP1, TP2, TP3 = ATR-based target levels
SL = ATR-based stop loss
Dashed lines with floating price labels, lines and labels auto-delete when hit (to maintain a clean chart).
Fully automated trade management visualization.
🔸 7. Signal Cooldown & Cleanup
Customizable cooldown (default 10 bars) to prevent over-signaling.
Automatic reset of TP/SL after trade conclusion (TP or SL hit).
🔸 8. Visuals & Alerts
BUY = 🔼 green triangle below bar
SELL = 🔽 red triangle above bar
Alerts available for:
“Bullish Reversal”
“Bearish Reversal”
Clean overlay design — ideal for dark or light chart themes.
🔸 9. Use Cases
XAU/USD (Gold): short-term scalping or intraday reversals
Crypto (BTC/ETH): H1–H4 swing setups
Stocks: Daily trend reversals
Indices: Multi-TF trend exhaustion tracking
Скрипт с защищённым кодом
Этот скрипт опубликован с закрытым исходным кодом. Однако вы можете использовать его свободно и без каких-либо ограничений — читайте подробнее здесь.
Отказ от ответственности
Все виды контента, которые вы можете увидеть на TradingView, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.
Скрипт с защищённым кодом
Этот скрипт опубликован с закрытым исходным кодом. Однако вы можете использовать его свободно и без каких-либо ограничений — читайте подробнее здесь.
Отказ от ответственности
Все виды контента, которые вы можете увидеть на TradingView, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.