It sells short on DayOfWeek 2 when the close is above its 10 period average and near the bar's high, and closes on DayOfWeek 3. The 14 period average true range must be at least its value 100 bars earlier.
Best run of 2. US Crude Oil, Daily, spread 5, from run pf:2026-10-10-CRUDE-D.tsv:14.
| Period | Up to 2026-10-10 |
| Instrument | US Crude Oil, Daily |
| Spread | 5 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 |
|---|---|---|---|---|---|---|
| US Crude OilBest run | Daily | 1.30 | 211 | 52.13 | 4,336 EUR | -2,461 |
| USD/JPY | Daily | 2.07 | 15 | 60.00 | 246 USD | -155 |
Charts
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // Weekday Pullback Reversal Short // ProRealAlgos Strategy Library | prorealalgos.com // Type: Mean reversion // Direction: Short only // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ONCE capital = 10000
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 2 market and timeframe combinations. The best run was US Crude Oil, Daily, with a profit factor of 1.30 over 211 trades.
The best run had a maximum drawdown of 2,461 EUR at the tested position size, against a net result of 4,336 EUR.
It only takes short trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.