OPEN-SOURCE SCRIPT
SMA Ratio w/ RSI, BB & EMA

Overview:
This strategy combines signal-based trend logic with advanced volatility filters, RSI confirmation, dynamic stop-loss/take-profit levels, and higher-timeframe (HTF) trend validation. A fully visual dashboard provides live feedback on market conditions, win rates, and current signal strength.
Key Features:
🔁 Dynamic Stop-Loss/Take-Profit based on ATR and signal strength
📶 Gradient Signal Strength using custom SMA/EMA crossovers
📊 Higher Timeframe Trend Filter for directional bias
🌀 Bollinger Band Squeeze Filter to detect low-volatility breakout zones
💹 RSI Filter to avoid overbought/oversold traps
🧠 Signal Classification: Detects LH/HL Buy/Sell setups and displays them as labels (e.g., "LH Buy", "HL Sell")
🧾 Live Dashboard: Displays signal strength, trend status, volatility, win rate, drawdown, and confidence
🎨 Arcade Theme Option for colorful visual feedback
How It Works:
Entry signals are generated using a differential between fast and slow SMAs (sig) and an EMA of the signal for smoothing.
ATR and Bollinger Band widths adjust SL/TP zones based on market volatility.
Higher timeframe EMA determines bullish or bearish market bias.
Confirmations require RSI agreement and a Bollinger Band squeeze breakout.
Trade Classification Logic:
LH Buy/Sell = Lower High → potential weak reversal
HL Buy/Sell = Higher Low → potential strength after correction
These are shown with labels on the chart to help you assess trade strength visually.
Best Use:
Works on various timeframes
Suitable for trend-following strategies with volatility-based exits
Ideal for traders who want clarity and visual feedback on trade quality
⚠️ Disclaimer: This is a strategy script for educational purposes only. Always test thoroughly on demo accounts before using with real capital.
This strategy combines signal-based trend logic with advanced volatility filters, RSI confirmation, dynamic stop-loss/take-profit levels, and higher-timeframe (HTF) trend validation. A fully visual dashboard provides live feedback on market conditions, win rates, and current signal strength.
Key Features:
🔁 Dynamic Stop-Loss/Take-Profit based on ATR and signal strength
📶 Gradient Signal Strength using custom SMA/EMA crossovers
📊 Higher Timeframe Trend Filter for directional bias
🌀 Bollinger Band Squeeze Filter to detect low-volatility breakout zones
💹 RSI Filter to avoid overbought/oversold traps
🧠 Signal Classification: Detects LH/HL Buy/Sell setups and displays them as labels (e.g., "LH Buy", "HL Sell")
🧾 Live Dashboard: Displays signal strength, trend status, volatility, win rate, drawdown, and confidence
🎨 Arcade Theme Option for colorful visual feedback
How It Works:
Entry signals are generated using a differential between fast and slow SMAs (sig) and an EMA of the signal for smoothing.
ATR and Bollinger Band widths adjust SL/TP zones based on market volatility.
Higher timeframe EMA determines bullish or bearish market bias.
Confirmations require RSI agreement and a Bollinger Band squeeze breakout.
Trade Classification Logic:
LH Buy/Sell = Lower High → potential weak reversal
HL Buy/Sell = Higher Low → potential strength after correction
These are shown with labels on the chart to help you assess trade strength visually.
Best Use:
Works on various timeframes
Suitable for trend-following strategies with volatility-based exits
Ideal for traders who want clarity and visual feedback on trade quality
⚠️ Disclaimer: This is a strategy script for educational purposes only. Always test thoroughly on demo accounts before using with real capital.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.