Buys when the 50-period EMA crosses above the 200-period EMA and sells short when it crosses below. Each trade has a 2% stop loss and a 0.7% take profit, measured from the fill.
Best run of 13. Nikkei 225, 15 min, spread 10, from run sweeps:2026-10-11-NIKKEI-15m-opt.tsv:39.
| Period | Up to 2026-10-11 |
| Instrument | Nikkei 225, 15 minutes |
| Spread | 10 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-11 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| Nikkei 225Best run | 15 min | n/a | 1,160 | 51.38 | 8,904 USD | -8,140 |
| USD/JPY | Daily | n/a | 62 | 83.87 | 280,110 USD | -72,960 |
| USD/JPY | 10 min | n/a | 1,132 | 32.51 | 196,590 USD | -172,070 |
| Dow Jones | 1 hour | n/a | 247 | 65.59 | 6,590 EUR | -4,439 |
| Dow Jones | 4 hours | n/a | 46 | 86.96 | 6,093 EUR | -1,430 |
| US Crude Oil | 1 hour | n/a | 499 | 75.15 | 3,460 EUR | -1,547 |
| US Crude Oil | 10 min | n/a | 1,120 | 61.96 | 2,224 EUR | -1,573 |
| Nikkei 225 | Daily | n/a | 60 | 73.33 | 2,187 USD | -1,275 |
| US Crude Oil | 4 hours | n/a | 138 | 76.09 | 1,142 EUR | -639 |
| Dow Jones | Daily | n/a | 74 | 78.38 | 1,095 EUR | -961 |
| S&P 500 | 4 hours | n/a | 169 | 75.74 | 654 EUR | -366 |
| Gold | 1 hour | n/a | 699 | 63.95 | 621 EUR | -241 |
| S&P 500 | Daily | n/a | 57 | 61.40 | 144 EUR | -119 |
Charts
Top 10 of 13 runs. The full list is in the table above.
The code
// ============================================================== // EMA 50 200 Crossover Fixed Brackets // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long & short // Timeframe tested: 15 minutes // ============================================================== DEFPARAM CumulateOrders = false emafast = ExponentialAverage[50](close) emaslow = ExponentialAverage[200](close)
13 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 13 market and timeframe combinations. The best run by trade count was Nikkei 225, 15 minutes, with 1,160 trades.
The best run had a maximum drawdown of 8,140 USD at the tested position size, against a net result of 8,904 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.