Buys from the 26th day of the month onward and sells once the day of the month is below 20. Entries rely only on the calendar, not on price.
Best run of 2. GBP/USD, Daily, spread 1.8, from run pf:2026-10-10-GBPUSD-D.tsv:3.
| Period | Up to 2026-10-10 |
| Instrument | GBP/USD, Daily |
| Spread | 1.8 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 |
|---|---|---|---|---|---|---|
| GBP/USDBest run | Daily | 1.37 | 616 | 55.36 | 8,431 USD | -1,644 |
| Brent Crude | Daily | 1.26 | 228 | 55.26 | 7,579 EUR | -6,010 |
Charts
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // Month End Calendar Window // ProRealAlgos Strategy Library | prorealalgos.com // Type: Pattern // Direction: Long only // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ONCE capital = 10000
18 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 GBP/USD, Daily, with a profit factor of 1.37 over 616 trades.
The best run had a maximum drawdown of 1,644 USD at the tested position size, against a net result of 8,431 USD.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.