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.
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。