It buys once the day of the month reaches 25 and sells from day 4 until day 20. Only one position is open at a time.
Best run of 5. USD/JPY, Daily, spread 1.4, from run pf:2026-10-10-USDJPY-D.tsv:31.
| Period | Up to 2026-10-10 |
| Instrument | USD/JPY, Daily |
| Spread | 1.4 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 |
|---|---|---|---|---|---|---|
| USD/JPYBest run | Daily | 1.34 | 77 | 55.84 | 1,509 USD | -1,084 |
| Brent Crude | Daily | 1.31 | 228 | 55.26 | 12,385 EUR | -5,327 |
| US Crude Oil | Daily | 1.22 | 523 | 52.01 | 21,051 EUR | -6,779 |
| GBP/USD | Daily | 1.16 | 616 | 52.11 | 5,180 USD | -2,472 |
| EUR/USD | Daily | 1.14 | 568 | 49.65 | 4,061 USD | -2,781 |
Charts
Above 1.0 made money, below 1.0 lost money.
The code
// ============================================================== // Turn of the Month Long // ProRealAlgos Strategy Library | prorealalgos.com // Type: Pattern // Direction: Long only // Timeframe tested: Daily // ============================================================== DEFPARAM CumulateOrders = false ONCE capital = 10000
16 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 5 market and timeframe combinations. The best run was USD/JPY, Daily, with a profit factor of 1.34 over 77 trades.
The best run had a maximum drawdown of 1,084 USD at the tested position size, against a net result of 1,509 USD.
It only takes long trades.
Related
The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.