Buys when a reversal pattern on closing prices and a close above a band 1% over a double-smoothed average both point up, and sells short when both point down. Any open position is closed when the two signals disagree.
Best run of 11. Gold, 30 min, spread 0.6, from run sweeps:2026-10-12-GOLD-30m-opt.tsv:5.
| Period | Up to 2026-10-12 |
| Instrument | Gold, 30 minutes |
| 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-12 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| GoldBest run | 30 min | n/a | 1,497 | 39.28 | 1,685 EUR | -904 |
| USD/JPY | Daily | n/a | 288 | 40.97 | 2,182,470 USD | -611,320 |
| USD/JPY | 30 min | n/a | 1,234 | 38.90 | 477,710 USD | -226,760 |
| USD/JPY | 15 min | n/a | 1,187 | 38.16 | 268,080 USD | -171,430 |
| EUR/USD | 2 min | n/a | 1,192 | 35.49 | 126,599 USD | -82,345 |
| Nikkei 225 | Daily | n/a | 320 | 40.31 | 36,461 USD | -17,918 |
| Silver | 4 hours | n/a | 714 | 36.97 | 28,061 USD | -14,179 |
| Brent Crude | Daily | n/a | 172 | 34.30 | 18,049 EUR | -11,310 |
| Gold | 1 hour | n/a | 1,245 | 39.20 | 2,099 EUR | -886 |
| Gold | 4 hours | n/a | 525 | 36.95 | 1,560 EUR | -937 |
| Gold | 10 min | n/a | 1,274 | 36.97 | 1,009 EUR | -625 |
Charts
Top 10 of 11 runs. The full list is in the table above.
The code
// ============================================================== // Reversal With High Low Bands // ProRealAlgos Strategy Library | prorealalgos.com // Type: Breakout // Direction: Long & short // Timeframe tested: 30 minutes // ============================================================== DEFPARAM CumulateOrders = false ONCE posrev = 0 ONCE poshlb = 0 ONCE sincebad = 1000 ll = lowest[14](low) hh = highest[14](high)
52 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 11 market and timeframe combinations. The best run by trade count was Gold, 30 minutes, with 1,497 trades.
The best run had a maximum drawdown of 904 EUR at the tested position size, against a net result of 1,685 EUR.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.