Trades in the direction of the current weekly open relative to a 9-bar midpoint line, using a MACD cross 3 bars earlier as confirmation. An opposite signal closes the open trade.
Best run of 10. EUR/USD, 1 hour, spread 1, from run sweeps:2026-10-12-EURUSD-1h-opt.tsv:3.
| Period | Up to 2026-10-12 |
| Instrument | EUR/USD, 1 hour |
| 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 | 1 hour | n/a | 1,915 | 60.47 | 49,714 USD | -48,727 |
| EUR/USD | Daily | n/a | 687 | 56.04 | 103,068 USD | -52,233 |
| Nikkei 225 | 4 hours | n/a | 545 | 55.60 | 38,524 USD | -12,803 |
| Dow Jones | 2 min | n/a | 361 | 82.83 | 9,530 EUR | -4,326 |
| Nasdaq 100 | 4 hours | n/a | 678 | 53.98 | 8,266 EUR | -6,947 |
| Nasdaq 100 | Daily | n/a | 547 | 56.49 | 7,739 EUR | -6,221 |
| S&P 500 | Daily | n/a | 768 | 55.08 | 2,801 EUR | -1,358 |
| S&P 500 | 4 hours | n/a | 708 | 54.66 | 2,314 EUR | -1,459 |
| FTSE 100 | 10 min | n/a | 907 | 71.66 | 2,275 EUR | -1,873 |
| S&P 500 | 2 min | n/a | 353 | 83.29 | 1,139 EUR | -934 |
Charts
The code
// ============================================================== // Weekly Open MACD Crossover // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long & short // Timeframe tested: 1 hour // ============================================================== DEFPARAM CumulateOrders = false ONCE wopen = 0 TIMEFRAME(weekly) wopen = open TIMEFRAME(default) wo = wopen tenkan = (highest[9](high) + lowest[9](low)) / 2 myMacd = ExponentialAverage[3](close) - ExponentialAverage[10](close) sig = ExponentialAverage[9](myMacd)
21 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 10 market and timeframe combinations. The best run by trade count was EUR/USD, 1 hour, with 1,915 trades.
The best run had a maximum drawdown of 48,727 USD at the tested position size, against a net result of 49,714 USD.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.