Buys when the 15-period EMA crosses above the 60-period SMA with the close at or above the EMA, and sells short on the mirror cross below. Every trade has a 0.1% stop loss from entry.
Best run of 3. EUR/USD, 3 min, spread 1, from run sweeps:2026-10-12-EURUSD-3m-opt.tsv:12.
| Period | Up to 2026-10-12 |
| Instrument | EUR/USD, 3 minutes |
| Spread | 1 points |
| Starting capital | 1,000,000 |
| Costs | Spread only. Commissions and overnight financing are not included. |
| Bars | Up to 200,000 bars, fewer where the instrument has less history |
| Last tested | 2026-10-12 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| EUR/USDBest run | 3 min | n/a | 4,346 | 25.91 | 154,326 USD | -64,261 |
| Nikkei 225 | Daily | n/a | 229 | 2.18 | 12,395 USD | -4,718 |
| US Crude Oil | 4 hours | n/a | 478 | 1.88 | 2,354 EUR | -1,558 |
Charts
The code
// ============================================================== // EMA SMA Crossover With Stop // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long & short // Timeframe tested: 3 minutes // ============================================================== DEFPARAM CumulateOrders = false ema = ExponentialAverage[15](close) sma = Average[60](close)
11 more lines: the entry and exit rules.
Setup
Questions
Yes. The code is ProBuilder and runs as an automated ProOrder system. Backtest it on your own account with your own spread and position size before trading it live.
It was tested on 3 market and timeframe combinations. The best run by trade count was EUR/USD, 3 minutes, with 4,346 trades.
The best run had a maximum drawdown of 64,261 USD at the tested position size, against a net result of 154,326 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.