Buys when the 8-period exponential moving average crosses above the 13-period one. Closes the long when the faster average falls below the slower one, and holds one contract, long only.
Best run of 18. Nikkei 225, Daily, spread 10, from run pf:2026-10-04-NIKKEI-D.tsv:3.
| Period | Up to 2026-10-04 |
| Instrument | Nikkei 225, Daily |
| 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-04 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| Nikkei 225Best run | Daily | 1.56 | 333 | 35.44 | 51,707 USD | -11,371 |
| USD/JPY | Daily | n/a | 389 | 32.39 | 1,128,630 USD | -405,750 |
| USD/JPY | 1 hour | n/a | 4,118 | 30.91 | 574,330 USD | -280,650 |
| USD/JPY | 30 min | n/a | 5,942 | 29.08 | 405,240 USD | -243,940 |
| EUR/USD | Daily | n/a | 366 | 34.15 | 60,540 USD | -48,893 |
| Dow Jones | Daily | n/a | 438 | 36.07 | 21,062 EUR | -7,143 |
| Silver | 4 hours | n/a | 948 | 29.75 | 20,416 USD | -17,449 |
| Nikkei 225 | 4 hours | n/a | 787 | 32.78 | 17,358 USD | -13,531 |
| Nasdaq 100 | Daily | n/a | 346 | 36.13 | 13,952 EUR | -4,957 |
| DAX 40 | Daily | n/a | 440 | 37.50 | 13,067 EUR | -3,924 |
| DAX 40 | 1 hour | n/a | 3,292 | 31.32 | 12,514 EUR | -3,766 |
| Dow Jones | 4 hours | n/a | 308 | 36.04 | 12,228 EUR | -6,726 |
| Nasdaq 100 | 4 hours | n/a | 908 | 34.47 | 10,163 EUR | -5,813 |
| Gold | Daily | n/a | 413 | 31.96 | 2,833 EUR | -1,214 |
| Gold | 4 hours | n/a | 920 | 32.72 | 2,756 EUR | -1,225 |
| S&P 500 | Daily | n/a | 464 | 33.84 | 2,731 EUR | -1,133 |
| Gold | 1 hour | n/a | 3,578 | 29.77 | 2,258 EUR | -956 |
| S&P 500 | 4 hours | n/a | 946 | 36.58 | 1,419 EUR | -1,136 |
Charts
Top 10 of 18 runs. The full list is in the table above.
The code
// ============================================================== // Short EMA Crossover Trend // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long only // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false emaa = ExponentialAverage[8](close) emab = ExponentialAverage[13](close)
11 more lines: the entry and exit rules.
Setup
Nikkei 225 had no history beyond the standard run, so both runs used 11,000 bars.
| Bars available | 11,000 |
| Net, standard 200,000-bar run | 51,707.00 USD |
| Net, long run | 53,348.00 USD |
| Net on the older data alone | 1,641.00 USD |
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 18 market and timeframe combinations. The best run was Nikkei 225, Daily, with a profit factor of 1.56 over 333 trades.
The best run had a maximum drawdown of 11,371 USD at the tested position size, against a net result of 51,707 USD.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.