Join waitlist
Strategies / Pattern / Turn of the Month Long Short

Turn of the Month Long Short

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.

PatternLong & shortSwingUSD/JPYDaily
1.34Profit factor
1,509Net profit USD
55.84%Win rate
77Trades
-1,084Max drawdown
19.59Avg trade

Best run of 5. USD/JPY, Daily, spread 1.4, from run pf:2026-10-10-USDJPY-D.tsv:40.

Entry rules, long

Exit rules

  1. The day of the month is 4 or later and below 20, closing the long.

Test conditions

PeriodUp to 2026-10-10
InstrumentUSD/JPY, Daily
Spread1.4 points
Starting capital1,000,000
CostsSpread only. Commissions and overnight financing are not included.
BarsUp to 200,000 bars, fewer where the instrument has less history
Last tested2026-10-11

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
USD/JPYBest runDaily1.34 7755.841,509 USD-1,084
Brent CrudeDaily1.31 22855.2612,385 EUR-5,327
US Crude OilDaily1.22 52352.0121,051 EUR-6,779
GBP/USDDaily1.16 61652.115,180 USD-2,472
EUR/USDDaily1.14 56849.654,061 USD-2,781

Charts

Results by run

Above 1.0 made money, below 1.0 lost money.

The code

ProBuilder code, as tested

// ==============================================================
// Turn of the Month Long Short
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Pattern
// Direction: Long & short
// Timeframe tested: Daily
// ==============================================================

DEFPARAM CumulateOrders = false
ONCE capital = 10000

22 more lines: the entry and exit rules.

Setup

How to load it

  1. Copy the code with the copy button on the code block.
  2. In ProRealTime, open a chart of the instrument and timeframe you want to test, then open ProOrder > New trading system and choose "Create with programming".
  3. Paste the code, give the system a name and save it.
  4. Click "Backtest", set your own spread and position size, and run it before you consider trading it live.
Read this firstKnown weaknesses3 points
  • The best run has only 77 trades, which is a small sample to judge it on.
  • The maximum drawdown of 1,084 USD is large next to the net profit of 1,509 USD.
  • The code sets no stop loss, so a losing trade stays open until an exit signal arrives.

Questions

About this strategy

Can I run Turn of the Month Long Short in ProOrder?

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.

Which markets was it tested on?

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.

How large was the drawdown?

The best run had a maximum drawdown of 1,084 USD at the tested position size, against a net result of 1,509 USD.

Does it trade long, short or both?

It trades both long and short.

Related

Strategies like this one

Trend Surfer

Best run on the same market, USD/JPY.

1.04 PF · 10,813 trades

Turn of the Month Long

Also a pattern strategy.

1.34 PF · 77 trades

Put your name on the ProRealAlgos waitlist to trade a tested portfolio instead of single strategies.

The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.

Past backtest results do not guarantee future results. This is not financial advice. Curated and maintained by ProRealAlgos. ProRealTime™ is a trademark of ProRealTime SAS. prorealalgos.comStatsDocs