OPEN-SOURCE SCRIPT

SMA Crossover Strategy

152
📈 Indicator: SMA Crossover Strategy

This strategy uses optimized fast and slow SMA values tailored to popular timeframes for more responsive trend detection. You can let the script auto-select values or manually define your own crossover settings. Clean visual cues and per-candle signal filtering keep your chart sharp and actionable.

🔧 Key Features:
- Auto Mode: Smart defaults for each timeframe with trader-tested pairs
- Manual Mode: User-defined flexibility when custom values are needed
- Signal Clarity: BUY/SELL labels are plotted only once per confirmed candle

🧠 Default Auto Values (Based on Chart Timeframe)

- 1-min: Fast = 5, Slow = 20
- 5-min: Fast = 5, Slow = 10
- 15-min: Fast = 5, Slow = 13
- 30-min: Fast = 15, Slow = 30
- 1-hr: Fast = 50, Slow = 200
- 4-hr: Fast = 20, Slow = 50
- Daily: Fast = 50, Slow = 200
- Weekly: Fast = 10, Slow = 30

If your timeframe isn't matched exactly, the script falls back to sensible defaults.

📊 How to Improve Conviction
SMA crossovers are strong signals when confirmed by other tools. Here are some add-ons you can layer into your chart:

🔍 Confirmation Indicators
- RSI (14): Look for crossovers near RSI crossing 50 or at oversold/overbought zones for momentum confirmation.
- MACD: Use histogram alignment with crossover signals to detect real trend shifts.
- Volume Filters: Pair signals with rising volume for institutional confirmation.

🌀 Trend & Volatility Filters
- ATR (Average True Range): Helps filter signals during consolidation—watch for expanding ATR as a volatility cue.
- ADX: Trade only when ADX > 20 to avoid false signals in ranging markets.
- HMA (Hull MA): A smoother, faster MA that can act as a trend bias overlay.

🔭 Multi-Timeframe Awareness
Overlay higher-timeframe trend indicators (like a daily 200 SMA on an intraday chart) to avoid trading against macro momentum.

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.