OPEN-SOURCE SCRIPT

SMA Ratio w/ RSI, BB & EMA

76
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.

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.