OPEN-SOURCE SCRIPT

EMA Crossover + RSI Filter with ATR Stops

469
Core Concept & Logic:
This strategy utilizes a powerful combination of Exponential Moving Average (EMA) crossovers and Relative Strength Index (RSI) filters for signal validation. It includes dynamic risk management by setting Take-Profit and Stop-Loss targets based on the Average True Range (ATR).

How It Works & Signal Interpretation:

EMA Crossovers: A bullish signal is generated when the faster EMA (20-period default) crosses above the slower EMA (50-period default), indicating upward momentum. A bearish signal occurs when the fast EMA crosses below the slow EMA.

RSI Filter: Ensures entries aren't made during extreme market conditions (avoids longs when RSI > 70, avoids shorts when RSI < 30).

ATR-Based Stops: Automatically calculates realistic Stop-Loss and Take-Profit targets, helping manage risk relative to recent volatility.

Key Input Parameters:

Fast EMA Length: Recommended between 10-30 (default 20).

Slow EMA Length: Recommended between 40-100 (default 50).

RSI Length: Typically 14 periods.

RSI Overbought Threshold: 70 (standard RSI practice).

RSI Oversold Threshold: 30 (standard RSI practice).

ATR Length: Typically 14 periods for standard volatility measure.

Stop-Loss Multiplier: Recommended range: 1.5-2.5 (default 1.5).

Take-Profit Multiplier: Recommended range: 2-4 (default 3).

Ideal Usage & Performance Scenarios:

Performs well in trending markets (stocks, crypto, forex).

Potentially weaker during choppy or sideways markets due to false EMA crossovers.

Ideal on timeframes like 1H, 4H, and 1D charts.

Known Limitations & Risks:

EMA strategies can produce false signals in ranging markets.

RSI filter may limit entries in persistently strong trending conditions.

ATR-based stops might not accommodate sudden volatility spikes.

For more such strategies visit stratizone.com/, where you will get settings as well. The platform also offers to share the strategies and find them easily with lots of filters.

The equity curve is on BTC, 15min

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.