Buys when a reversal pattern on closing prices and a newly confirmed up fractal both point up, and sells short when both point down. Any open position is closed when the two signals disagree.
Best run of 1. US Crude Oil, Daily, spread 3, from run sweeps:2026-10-11-CRUDE-D-opt.tsv:69.
| Period | Up to 2026-10-11 |
| Instrument | US Crude Oil, Daily |
| 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-11 |
Every run
| Market | Timeframe | PF | Trades | Win % | Net | Max DD |
|---|---|---|---|---|---|---|
| US Crude OilBest run | Daily | n/a | 2,063 | 50.65 | 6,776 EUR | -6,474 |
Charts
The code
// ============================================================== // Reversal With Fractal Chaos Oscillator // ProRealAlgos Strategy Library | prorealalgos.com // Type: Pattern // Direction: Long & short // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ONCE posrev = 0 ONCE sincebad = 1000 ONCE postwo = 0 ONCE upres = 0 ONCE upok = 0 ONCE dnres = 0 ONCE dnok = 0 ll = lowest[15](low) hh = highest[15](high)
67 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 one combination, US Crude Oil, Daily, with 2,063 trades.
The best run had a maximum drawdown of 6,474 EUR at the tested position size, against a net result of 6,776 EUR.
It trades both long and short.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.