Buys when the close crosses above the parabolic SAR, using settings 0.02, 0.02 and 0.2, and sells when it crosses back below. The strategy opens no short positions.
Best run of 3. Gold, Daily, spread 0.6, from run pf:2026-10-11-GOLD-D.tsv:7.
| Period | Up to 2026-10-11 |
| Instrument | Gold, Daily |
| Spread | 0.6 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 |
|---|---|---|---|---|---|---|
| GoldBest run | Daily | 1.48 | 550 | 43.64 | 31,859 EUR | -7,670 |
| Brent Crude | Daily | 1.30 | 244 | 45.49 | 14,920 EUR | -10,869 |
| GBP/USD | Daily | 1.12 | 597 | 42.38 | 4,769 USD | -3,667 |
Charts
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // Parabolic SAR Upside Crossover // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long only // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ONCE capital = 10000
19 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 Gold, Daily, with a profit factor of 1.48 over 550 trades.
The best run had a maximum drawdown of 7,670 EUR at the tested position size, against a net result of 31,859 EUR.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.