5 strategy templates, ready to export
Pick a template, adjust a few settings, and export a working MetaTrader 5 Expert Advisor. Each template includes built-in risk management with ATR-based stop loss, risk-reward take profit, and proper position sizing. No coding required.
Range Breakout
Trade the breakout of a recent price range. Set the lookback period, risk %, and ATR stop loss. Optional London session filter and cancel-opposite-on-fill toggle.
Basic: Range Period, Risk %, SL (ATR), TP (R-multiple)
Advanced: London session filter, Cancel opposite order
EMA Crossover
Enter when the fast EMA crosses the slow EMA. Set your EMA periods, risk %, and ATR stop loss. Optional higher-timeframe trend filter and RSI confirmation.
Basic: Fast EMA, Slow EMA, Risk %, SL (ATR), TP (R-multiple)
Advanced: HTF trend filter, RSI confirmation
Trend Pullback
Wait for a trend (EMA direction) then enter on an RSI pullback. Set the trend EMA, RSI dip level, risk %, and ATR stop loss.
Basic: Trend EMA, RSI Period, Dip Level, Risk %, SL (ATR)
Advanced: London session filter, EMA buffer
RSI Reversal
Buy oversold, sell overbought. Set the RSI period, overbought/oversold levels, risk %, and ATR stop loss. Optional session filter and trend confirmation.
Basic: RSI Period, OB Level, OS Level, Risk %, SL (ATR)
Advanced: Session filter, Trend filter
MACD Crossover
Enter on MACD signal line crossover. Set the MACD parameters, risk %, and ATR stop loss. Optional higher-timeframe trend filter.
Basic: Fast/Slow/Signal, Risk %, SL (ATR), TP (R-multiple)
Advanced: HTF trend filter
How to build an EA from a template
1. Pick a template
Choose the strategy that matches how you trade. Prefer riding trends? Start with EMA Crossover. Like buying dips? Try RSI Reversal. Want session-based entries? Go with Range Breakout.
2. Adjust a few settings
Each template has 3-5 basic settings with sensible defaults. Change what you want, or leave the defaults — every template exports a valid EA immediately. Optional advanced toggles let you add filters without complexity.
3. Export, backtest, optimize
Export clean MQL5 code, load it into MetaTrader 5, and backtest in Strategy Tester. Use MT5's built-in optimization to find the best parameters. Start with a demo account and at least 6 months of historical data.
Which template is right for you?
| Market | Complexity | Key strength | |
|---|---|---|---|
| Range Breakout | Session opens | Simple | Clear entry rules |
| EMA Crossover | Trending | Simple | Catches big moves |
| Trend Pullback | Trending | Moderate | Better entries in trends |
| RSI Reversal | Range-bound | Simple | Higher win rate |
| MACD Crossover | Momentum | Simple | Momentum confirmation |
Not sure? Start with EMA Crossover — it's the simplest to understand and backtest.