Buys in February through May when the close is above its 50-period average. Sells when the month leaves that window or the close falls below the average.
Best run of 2. Brent Crude, Daily, spread 5, from run pf:2026-10-10-BRENT-D.tsv:9.
| Period | Up to 2026-10-10 |
| Instrument | Brent Crude, 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 |
|---|---|---|---|---|---|---|
| Brent CrudeBest run | Daily | 1.96 | 78 | 28.21 | 14,100 EUR | -6,718 |
| US Crude Oil | Daily | 1.66 | 160 | 31.25 | 19,607 EUR | -6,069 |
Charts
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // Seasonal Trend Filter (long only) // ProRealAlgos Strategy Library | prorealalgos.com // Type: Trend // Direction: Long only // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ONCE capital = 10000
17 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 Brent Crude, Daily, with a profit factor of 1.96 over 78 trades.
The best run had a maximum drawdown of 6,718 EUR at the tested position size, against a net result of 14,100 EUR.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.