Join today
Strategies / Pattern / Turn Of The Month

Turn Of The Month: A Year-End Seasonal Trade

This seasonal system buys on or after the 21st of October, November or December. It sells on the first bar on or after the 19th of a later month, so it is mostly invested from late October to mid January.

PatternLong onlySwingBroadcomDaily
4.86Profit factor
26,859Net profit USD
74.47%Win rate
47Trades
-3,243Max drawdown
571Avg trade

Best run of 31. Broadcom, Daily, from run stock2-queue:2026-09-15-Broadcom.tsv:3.

Entry rules, long

  1. Day of the month is 21 or later
  2. Members only

Exit rules

  1. Members only
  2. No stop loss or target

Test conditions

PeriodUp to 2026-09-15
InstrumentBroadcom, Daily
Capital per trade10,000
CostsNot recorded for this run.
BarsDaily bars, full available history
Last tested2026-09-15

Parameters

capitalPerTrade
Money committed to each trade
10000
entryDay
Buy from this day of the month
21
firstMonth
First month of the seasonal window (October)
10
lastMonth
Last month of the seasonal window (December)
12
exitDay
Sell from this day of a later month
19

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
BroadcomBest runDaily4.86 4774.4726,859 USD-3,243
Applied MaterialsDaily3.77 7669.7448,765 USD-5,096
CiscoDaily3.76 9865.3151,204 USD-6,090
Lam ResearchDaily3.54 9867.3574,663 USD-6,829
AbbVieDaily2.99 3663.8911,429 USD-2,844
MicrosoftDaily2.94 10963.3039,750 USD-4,086
NvidiaDaily2.88 7356.1658,341 USD-7,474
MastercardDaily2.82 5574.5517,605 USD-4,980
AlphabetDaily2.65 3366.678,006 USD-2,397
CaterpillarDaily2.58 14961.7442,170 USD-5,646
TeslaDaily2.47 4456.8232,099 USD-7,582
PalantirDaily2.47 1643.7514,305 USD-8,366
VisaDaily2.40 5066.0012,386 USD-2,941
Eli LillyDaily2.36 15257.8933,321 USD-5,818
OracleDaily2.27 10956.8842,717 USD-7,799
AMDDaily2.18 12661.9077,459 USD-13,082
S&P 500Daily2.18 15664.1019,279 EUR-3,161
IntelDaily2.17 14757.1457,186 USD-12,500
CostcoDaily2.17 9863.2723,873 USD-3,382
MicronDaily2.11 11463.1662,008 USD-14,074
Berkshire HathawayDaily2.04 8264.6313,808 USD-4,239
AmazonDaily2.02 7955.7030,459 USD-11,233
AppleDaily1.86 9856.1229,337 USD-10,985
JPMorganDaily1.85 14962.4233,373 USD-8,571
ExxonMobilDaily1.68 14957.7217,289 USD-4,267
MetaDaily1.63 3961.547,425 USD-4,199
Johnson & JohnsonDaily1.62 14960.4014,359 USD-4,389
Coca-ColaDaily1.54 14949.6612,337 USD-3,832
WalmartDaily1.53 13451.4917,588 USD-9,282
ChevronDaily1.43 8250.007,526 USD-4,802
Bank of AmericaDaily1.38 8257.3211,941 USD-12,489

Charts

Results by run

Profit factor by run

Above 1.0 made money, below 1.0 lost money.

0.01.32.53.85.01.0 = break-evenBroadcom · Daily4.86Applied Materials · Daily3.77Cisco · Daily3.76Lam Research · Daily3.54AbbVie · Daily2.99Microsoft · Daily2.94Nvidia · Daily2.88Mastercard · Daily2.82Alphabet · Daily2.65Caterpillar · Daily2.58Tesla · Daily2.47Palantir · Daily2.47Visa · Daily2.40Eli Lilly · Daily2.36Oracle · Daily2.27AMD · Daily2.18S&P 500 · Daily2.18Intel · Daily2.17Costco · Daily2.17Micron · Daily2.11Berkshire Hathaway · Daily2.04Amazon · Daily2.02Apple · Daily1.86JPMorgan · Daily1.85

Net profit against max drawdown

Net profitMax drawdown
0-20K-10K50K100KAMD · DailyLam Research · DailyMicron · DailyNvidia · DailyIntel · DailyCisco · DailyApplied Materials · DailyOracle · DailyCaterpillar · DailyMicrosoft · DailyJPMorgan · DailyEli Lilly · DailyTesla · DailyAmazon · DailyApple · DailyBroadcom · Daily

The code

ProBuilder, rewritten to house standard

Every file in the library uses the same header, the same section order and the same variable names. The numbers above were produced by the original version before the rewrite, and the rewrite has not yet been compiled in ProRealTime.

// ============================================================
// Turn Of The Month
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Pattern
// Direction: Long only
// Timeframe tested: Daily
// ============================================================

// --- Settings ---
DEFPARAM CumulateOrders = false

// --- Parameters ---
capitalPerTrade = 10000   // money committed to each trade
entryDay = 21             // buy from this day of the month
firstMonth = 10           // seasonal window starts in October
lastMonth = 12            // and ends in December
exitDay = 19              // sell from this day of the following month

// --- Indicators ---
positionSize = capitalPerTrade / close

16 more lines: the entry and exit rules.

Read this first

Known weaknesses

  • There is no stop loss, so a year-end sell off is held until the exit date. Micron had a USD 14,073.99 drawdown.
  • Trades cluster in the same few weeks each year, so one bad season can hit every stock at once.
  • Broadcom has only 47 trades and Palantir 16, which is little data for a seasonal claim.

How to load it

  1. Copy the code with the copy button above 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.

Questions

About this strategy

Can this run automatically?

Yes, it runs in ProOrder on daily bars and buys 10000 divided by the close. The rewritten code has not been compile checked.

Which stocks were tested?

Large US stocks plus the S&P 500 on daily charts, and all runs were profitable. AMD made USD 77,458.75 and Lam Research USD 74,662.59.

What drawdown should I expect?

At 10000 USD per trade Broadcom had a maximum drawdown of USD 3,242.62. Bank of America reached USD 12,489.46.

Why only October to December?

The rules target the year-end period. Outside those months the system stays in cash.

Related

Strategies like this one

ATR Band

Best run on the same market, Broadcom.

10.31 PF · 53 trades

Eight Bar Trend Follower

A similar profit factor.

5.19 PF · 280 trades

Winter Only

Also a pattern strategy.

14.53 PF · 49 trades

Curious about other calendar effects? The ProRealAlgos waitlist is open.

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