QuantsappFaster in the app: live data, alerts, tradingOpen
Log inStart free
Calendar & seasonalityPositionalNIFTYlow complexity

Month-of-year long

Some calendar months have historically been better for Indian stocks than others. This strategy turns that idea into a rule: buy NIFTY futures at the close of the month before a 'strong' month, hold through it, and sell at its last close. The default holds only September; other modes hold November to April ('sell in May') or let past years pick the three best months.
Holds NIFTY futures long only through calendar months picked as seasonally strong, September by default, and stays flat the rest of the year.
Market viewCalendar or event timing
TradesNIFTY near-month futures, 1 lot, long only
RiskOpen-ended (loss not capped by the structure)
CapitalFutures margin
SuitsBeginner
Trades a month0.2
Typical hold29 days
Profitable months0 of 12
Longest losing run2 trades
Made money inToo few trades to judge (one month traded)
Lost money inToo few trades to judge (one month traded)
Default settings
Symbol
Month mode
Strong months
Wf years
Top k
Lots
Backtest this strategy →Change any setting, pick your own period and run it in the Quantsapp web app. Backtesting is part of the Max plan. Pro+ members can use it now as a free trial.
1

How it trades

What it trades
Universe
NIFTY Positional · 1 Oct 25 → 30 Sep 26
Enters
Close of the last session before each chosen month (September by default)
Legs
BUY FUT · near month · Current month · 1 lot
Exits
time close of the chosen month's last sessionroll monthly expiry inside the month: roll to next
Re-entry
Next chosen month
Months
MONTH_MODE "fixed" - the months named in STRONG_MONTHS. "sell_in_may" - November to April (flat May to October). "walk_forward" - before each month, the TOP_K calendar months with the best average return over the WF_YEARS years BEFORE the backtest day (daily bars only, nothing from the month itself); a month needs a positive average to be picked.
Entry
at the last print of the last trading session of the month BEFORE a picked month, buy LOTS of the near-month NIFTY future.
Exit
at the last print of the picked month's last trading session ("month end"). No stop, no target. Two picked months in a row are two trades (exit and re-buy at the same close).
Roll
a future cannot be held past its monthly expiry. The expiry falls inside every month: the position is closed at the expiry close ("expiry") and the rest of the month is carried in the next contract (bought at that close when the curve lists it, else at the next session's first print). If the entry session is itself the expiry day, the next contract is bought the same way.
2

Results

PRE-BUILT · DEFAULTS
NIFTY · 2025-10-01 → 2026-09-30 · 2 trades · before costs
Net P&L−₹1,11,312
Win rate0%
Max drawdown−₹1,11,312
Avg per trade−₹55,656
Profit factor0
Worst trade−₹99,437
3

Where it made and lost money

With the default setting the strategy traded one month, September 2026, split into two pieces by the futures expiry, so the evidence cannot show where the rule works. The piece from the end of August to the September expiry, during which NIFTY fell more than 1%, lost ₹99,437. The short piece after the roll lost ₹11,875 while NIFTY moved less than 1%. A whole-month long with no stop simply takes the month's move, and in this test September was a falling month.

India VIX the evening before
VIX below 11.5 (calm)−₹99,4371 trades0% won
VIX 11.5-14.5 (normal)−₹11,8751 trades0% won
Kind of session on the entry day
Quiet session (range under 0.75%)−₹99,4371 trades0% won
Choppy day (wide range, closed mid-range)−₹11,8751 trades0% won
Market while the trade was held
NIFTY within ±1% while held−₹11,8751 trades0% won
NIFTY fell over 1% while held−₹99,4371 trades0% won
How the entry day opened
Flat open−₹11,8751 trades0% won
Gap down of 0.4% or more−₹99,4371 trades0% won
Session direction on the entry day
NIFTY closed above its open−₹99,4371 trades0% won
NIFTY closed below its open−₹11,8751 trades0% won
Expiry day (NIFTY weekly)
Expiry day−₹11,8751 trades0% won
Other days−₹99,4371 trades0% won
Day of the week
Monday−₹99,4371 trades0% won
Tuesday−₹11,8751 trades0% won
The same trades, split by the market conditions around each entry, before costs.
4

About this strategy

  1. Decide which months to hold: September by default, November to April in the 'sell in May' mode, or the three months with the best average return in the previous four years in walk-forward mode.
  2. At the close of the last session before a chosen month, buy one lot of the near-month NIFTY future.
  3. At the monthly futures expiry inside the month, close and buy the next month's contract to carry on.
  4. Sell at the close of the chosen month's last session. There is no stop and no target.
  5. Stay flat in every month that was not chosen.

Why traders use it

Seasonal patterns such as 'sell in May and go away' are among the oldest market sayings, and studies of Indian indices have found some months stronger on average than others, often linked to fund flows, festive demand or results seasons. A month filter is simple to follow and keeps money out of the market most of the year. The walk-forward mode tests the idea honestly by choosing months only from data available at the time.

Works best whenYears in which the chosen month delivers the strength it has shown on average in the past, with no sharp sell-off during the holding period.
Struggles whenWhen the chosen month turns out weak, as September did in this test, where NIFTY fell more than 1% during the first part of the hold. Without a stop, the full move is taken.

The year in plain words

On NIFTY from 1 Oct 2025 to 30 Sep 2026 with the default September-only setting, the strategy held one month, recorded as two trades because of the monthly futures roll. Both lost: ₹99,437 on the first piece and ₹11,875 on the second, a total of ₹1,11,312 before costs. With so few orders, costs added little, and the after-costs loss was ₹1,12,134. One month of one year says nothing about whether September is reliably strong; it shows only that a single month's move decides everything with a whole-month, unstopped long.

What the settings do

Month modeFixed holds the months you list; sell_in_may holds November to April; walk_forward picks months each time from past years only, avoiding hindsight.Strong monthsIn fixed mode, the months to hold, such as Sep or Nov,Dec,Apr. More months mean more time in the market.Wf yearsIn walk-forward mode, how many earlier years are used to rank the months. Only a few years of data exist before this test, so each month's average rests on a handful of observations.Top kIn walk-forward mode, how many of the best-ranked months to hold. Months with a negative past average are never picked.

Risks

  • One observation per month per year makes any seasonal edge very hard to confirm.
  • Months picked from past averages may reflect chance rather than a lasting pattern.
  • A full NIFTY futures lot held for a month without a stop can lose lakhs on a bad month.
  • The monthly roll adds orders and a spread cost every month held.

Who it suits

Investors and traders curious about calendar effects who want a simple, low-activity rule, and who can hold a futures position for a month without a stop. It suits those comfortable judging results over many years, not one.

5

Questions traders ask

Which month is best for the Indian stock market?

Historical averages vary by period, and different studies point to different months. Averages built from a handful of years can change sharply with one new year of data. This strategy lets you test a fixed list, the November to April half-year, or months picked only from earlier years.

Is the month-of-year seasonality strategy profitable?

Not in this test. Holding NIFTY futures through September 2026, the only month traded from 1 Oct 2025 to 30 Sep 2026, lost ₹1,11,312 before costs and ₹1,12,134 after ₹20 per order and bid-ask slippage (statutory charges not included). Past results do not guarantee future ones.

What does 'sell in May and go away' mean?

It is a market saying that the November to April half-year tends to outperform May to October. In this strategy's sell_in_may mode, NIFTY futures are held from the end of October to the end of April and the position is flat for the other six months.

Why is the walk-forward mode important?

Choosing the best months from the same years you then test is hindsight. Walk-forward mode ranks months using only data from before each decision, which is how a trader would actually have had to choose.

6

Before you rely on it

WATCH OUTone observation per month per year; month picks are in-sample in the study; the month's edge is small against futures roll cost and STT. Gross of costs.
WHERE THE RULES WERE UNCLEAR · OUR CHOICES- The study's month is September; nothing in Indian sources tests "sell in May" - that variant is the spec's (flat May-October, long November-April). - Picking months from the same history that is then traded is hindsight (the spec's main pitfall). The walk_forward mode avoids it: month averages use daily closes strictly before the decision day. Monthly returns there are sums of daily close-to-close returns, leaving out the session after each futures expiry, because the rolled series jumps by the next month's basis at every roll (known SDK gap); that also drops one real session a month. The archive starts Sep 2021, so WF_YEARS = 4 is about all there is for a 2025-26 test, i.e. four observations per calendar month. - A month whose entry close or month-end close lies outside the backtest range is skipped.
Also known asmonthly seasonalitysell in may niftymonsoon effectdecember effect
Backtests run on historical NSE data with fills at the last traded price. "Before costs" excludes brokerage, taxes and slippage. Quantsapp is not recommending any strategy; it is just a backtesting utility. Past results are not a promise of future returns.

Log in or sign up

Enter your mobile number. New to Quantsapp? The same OTP creates your free account.

+91

By continuing you agree to the Terms of Use and Privacy Policy.