Buys when the close crosses above its 200-period simple moving average and sells short when it crosses below. Each opposite cross closes the open trade and reverses the position.
Best run of 3. EUR/USD, Daily, spread 1.2, from run pf:2026-10-10-EURUSD-D.tsv:15.
| Period | Up to 2026-10-10 |
| Instrument | EUR/USD, Daily |
| Spread | 1.2 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 |
|---|---|---|---|---|---|---|
| EUR/USDBest run | Daily | 1.92 | 370 | 17.57 | 18,236 USD | -3,365 |
| Gold | Daily | 1.85 | 378 | 16.67 | 40,673 EUR | -19,640 |
| GBP/USD | Daily | 1.55 | 373 | 16.35 | 12,220 USD | -4,880 |
Charts
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // 200-Period Average Two-Way Crossover // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ONCE capital = 10000
25 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 was EUR/USD, Daily, with a profit factor of 1.92 over 370 trades.
The best run had a maximum drawdown of 3,365 USD at the tested position size, against a net result of 18,236 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.