The system buys when the MACD histogram turns positive with close above the 200-period EMA, a Parabolic SAR uptrend and a negative volume oscillator. It sells short on the mirror conditions and exits on opposite signals or when price crosses its stop or target levels.
Best run of 5. Brent Crude, 15 min, spread 3, from run sweeps:2026-10-07-BRENT-15m-opt.tsv:5.
| Period | Up to 2026-10-07 |
| Instrument | Brent Crude, 15 minutes |
| Spread | 3 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-10 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| Brent CrudeBest run | 15 min | n/a | 2,554 | 50.04 | 4,520 EUR | -2,973 |
| USD/JPY | 4 hours | n/a | 391 | 55.75 | 234,660 USD | -137,540 |
| EUR/USD | 5 min | n/a | 2,512 | 43.83 | 73,978 USD | -27,344 |
| Dow Jones | Daily | n/a | 11 | 72.73 | 3,569 EUR | -3,213 |
| GBP/USD | Daily | n/a | 57 | 59.65 | 1,663 USD | -1,551 |
Charts
The code
// ============================================================== // MACD Parabolic SAR Trend // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long & short // Timeframe tested: 15 minutes // ============================================================== DEFPARAM CumulateOrders = false ONCE uptrend = 0 ONCE ep = 0 ONCE mySar = 0 ONCE af = 0.1 ONCE nextsar = 0 ONCE longopen = 0 ONCE shortopen = 0 ONCE tpl = 0 ONCE sll = 0 ONCE tps = 0 ONCE sls = 0 ONCE entrys = -1 ONCE entry = -1
126 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 5 market and timeframe combinations. The best run by trade count was Brent Crude, 15 minutes, with 2,554 trades.
The best run had a maximum drawdown of 2,972 EUR at the tested position size, against a net result of 4,520 EUR.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.