EMA Cross Strategy with Dynamic SL by igormena
By igormena
Performance Metrics
- Author: igormena
- Symbol: TVC:GOLD
- Timeframe: 6 minutes
- Net P&L: +5,088.95 USD (+0.51%)
- Win Rate: 45.2%
- Profit Factor: 1.111
- Max Drawdown: 5,731.69 USD (0.57%)
- Total Trades: 325
Description
A clean and simple EMA crossover strategy with a dynamic stop-loss mechanism anchored to the slow EMA at the moment of entry. Designed to work on any timeframe and any instrument.How it works:- BUY signal when the fast EMA crosses above the slow EMA at candle close- SELL signal when the fast EMA crosses below the slow EMA at candle close- Stop-loss is anchored at the slow EMA value at entry, providing dynamic protection that adapts to the trend- Take-profit is configurable as a fixed point distance from the entry priceInputs:- Fast EMA Length (default 14)- Slow EMA Length (default 30)- Take Profit in points (default 3.0)Notes:- Signals only trigger on confirmed candle close to avoid repainting- The dynamic stop-loss is automatically clamped above entry price for longs (and below for shorts) to never give a worse risk than the cross level- Works as both an indicator (visual signals) and a strategy (with backtest)This script is published as an educational example of how to combine simple EMA crossovers with dynamic risk management. Always test on your specific market and timeframe before live trading.