QuantsappFaster in the app: live data, alerts, tradingOpen
Log inStart free
Futures · technicalIntradayNIFTYlow complexity

5 EMA alert candle

The 5 EMA strategy is one of the most widely taught intraday reversal setups in India. It waits for a candle that has stretched completely away from its 5-period EMA, called the alert candle, and trades the break of that candle back towards the average. This version trades NIFTY futures: shorts on 5-minute candles, longs on 15-minute candles, with a reward twice the risk.
Trades NIFTY futures against a candle that has stretched entirely away from its 5-period EMA, entering on a break of that candle with a 1:2 target.
Market viewFades moves (mean reversion)
TradesNIFTY near-month futures, 1 lot
RiskOpen-ended (loss not capped by the structure)
CapitalFutures margin
SuitsIntermediate
Trades a month83.7
Typical hold18 min
Profitable months2 of 12
Longest losing run18 trades
Made money inChoppy, wide-range sessions (smallest losses)Calm markets with India VIX below 11.5
Lost money inTrend days that close near the high or lowMarkets above their 20-day averageIndia VIX above 14.5
Default settings
Symbol
EMA len
Short tf
Long tf
Rr
Signal from
Signal to
Exit time
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 Intraday · 1 Oct 25 → 30 Sep 26
Enters
09:20-15:00: break of a 5-min (short) or 15-min (long) alert candle
Legs
SELL FUT · near month · Current month · 1 lotBUY FUT · near month · Current month · 1 lot
Exits
stop other end of the alert candletarget twice the risk from entrytime 15:20
Re-entry
After a fresh alert candle; one trade at a time
Bars
5-minute and 15-minute bars from the rolled near-month futures ticks, anchored at 09:15; EMA(EMA_LEN) of bar closes on each timeframe, continuous across sessions.
Short
(5-min) alert candle = a completed bar whose LOW is above its EMA (the bar never touched it). A newer qualifying bar replaces the alert. Sell LOTS at the first tick that trades below the alert low. Stop = alert high; target = entry - RR x (stop - entry).
Long
(15-min, mirror) alert candle = a completed bar whose HIGH is below its EMA. Buy at the first tick above the alert high. Stop = alert low; target = entry + RR x (entry - stop).
Limits
one trade at a time; triggers only between SIGNAL_FROM and SIGNAL_TO; everything squared off at EXIT_TIME. Alerts do not carry over to the next session. Taking a trade clears both alerts - a new trade needs a fresh alert candle completed after that entry.
Fills
entry at the breaking tick, stops/targets at the tick that crosses them (the source enters at the candle CLOSE after the break, which is optimistic or pessimistic at random - fixed here).
2

Results

PRE-BUILT · DEFAULTS
NIFTY · 2025-10-01 → 2026-09-30 · 1004 trades · before costs
Net P&L−₹2,78,583
Win rate31%
Max drawdown−₹3,01,508
Avg per trade−₹277
Profit factor0.79
Worst trade−₹18,720
3

Where it made and lost money

No market condition in this test was profitable, but the size of the losses shows why. Trend days that closed near their high or low were the worst, losing ₹1,53,809 over 303 trades with a 25% win rate: in a trend, candles keep stretching away from the 5 EMA, so every break of an alert candle is only a pause before the move resumes. Choppy, wide-range days lost far less, ₹39,605 over 270 trades, because snap-backs towards the average actually happen there. Uptrends going in cost ₹1,99,904 over 484 trades, and nervous markets with India VIX above 14.5 lost ₹1,19,782.

Expiry day (NIFTY weekly)
Expiry day−₹12,130191 trades36% won
Other days−₹2,69,196804 trades30% won
Session direction on the entry day
NIFTY closed above its open−₹55,879551 trades30% won
NIFTY closed below its open−₹2,25,448444 trades32% won
How the entry day opened
Gap up of 0.4% or more−₹49,976179 trades28% won
Flat open−₹1,82,427673 trades31% won
Gap down of 0.4% or more−₹48,923143 trades33% won
Trend going in
Uptrend (NIFTY above its 20-day average)−₹1,99,904484 trades28% won
Downtrend (NIFTY below its 20-day average)−₹81,422511 trades33% won
Kind of session on the entry day
Quiet session (range under 0.75%)−₹87,913422 trades32% won
Trend day (closed near the high or low)−₹1,53,809303 trades25% won
Choppy day (wide range, closed mid-range)−₹39,605270 trades35% won
Day of the week
Monday−₹39,081201 trades30% won
Tuesday−₹3,856171 trades36% won
Wednesday−₹1,05,631236 trades26% won
Thursday−₹44,781185 trades32% won
Friday−₹67,860197 trades31% won
India VIX the evening before
VIX below 11.5 (calm)−₹60,877281 trades31% won
VIX 11.5-14.5 (normal)−₹1,00,668432 trades31% won
VIX above 14.5 (nervous)−₹1,19,782282 trades30% won
The same trades, split by the market conditions around each entry, before costs.
4

About this strategy

  1. Build 5-minute and 15-minute candles from NIFTY near-month futures and a 5-period EMA on each.
  2. Short setup: a completed 5-minute candle whose low is above the EMA becomes the alert candle; a newer such candle replaces it.
  3. Sell one lot when price trades below the alert candle's low, with the stop at its high and the target twice that risk below the entry.
  4. Long setup mirrors it on 15-minute candles: an alert candle whose high is below the EMA, bought on a break of its high, stop at its low.
  5. Take signals only between 09:20 and 15:00, one trade at a time; after each trade a fresh alert candle is needed.
  6. Close anything still open at 15:20; alerts do not carry over to the next day.

Why traders use it

When a candle sits entirely above or below a fast moving average, the move has stretched, and a break of that candle's extreme is an early sign it is snapping back. The alert candle gives a precise entry, a tight logical stop and a fixed reward-to-risk ratio, so the rules fit on one line. Its popularity comes from that simplicity and from the appeal of a system that needs only one winner in three trades to break even before costs.

Works best whenChoppy, two-way sessions in calm markets, where stretched candles do snap back towards the EMA; even these lost money in this test, just less than other conditions.
Struggles whenTrend days and steady uptrends, where price keeps stretching away from the EMA and each alert-candle break is only a pause, and nervous markets with India VIX above 14.5.

The year in plain words

On NIFTY futures from 1 Oct 2025 to 30 Sep 2026 the rules took 1,004 trades and lost ₹2,78,583 before costs, with a 31% win rate and a profit factor of 0.79. After ₹20 per order and bid-ask slippage the loss grew to ₹3,95,252. With a 1:2 target the strategy needs a win rate above about 33% to break even before costs; 673 trades hit the alert-candle stop, 267 reached target and 64 closed at 15:20. Only January and June 2026 were positive. April 2026 was the worst month at ₹97,424 lost, and the maximum drawdown before costs was over ₹3 lakh.

What the settings do

EMA lenThe number of candles in the moving average. A longer EMA sits further from price, so alert candles are rarer and more stretched.Short tfThe candle length, in minutes, used for short trades.Long tfThe candle length used for long trades; it must be a multiple of the short timeframe.RrThe target as a multiple of the risk. Higher values need fewer winners but each target is harder to reach.Signal fromThe earliest time a break of an alert candle can trigger a trade.Signal toThe latest time a trade can be entered.Exit timeWhen any open trade is closed.

Risks

  • Over 1,000 trades a year means costs, at roughly ₹117 more per trade after slippage, compound quickly.
  • Long losing streaks are normal at a 31% win rate, and the drawdown passed ₹3 lakh in this run.
  • Stops on tall alert candles can be wide in rupee terms for a futures lot.
  • Live fills during fast breaks can be worse than the breaking tick assumed in the backtest.

Who it suits

Active intraday traders who want to see a famous rule set tested without discretion, can monitor futures through the session or automate it, and can sit through long streaks of small losses.

5

Questions traders ask

What is the 5 EMA strategy?

It is an intraday reversal setup. An alert candle is one that does not touch the 5-period EMA at all. A break of its low (for a candle above the EMA) triggers a short; a break of its high (for one below) triggers a long. The stop goes at the other end of the alert candle.

Is the 5 EMA strategy profitable on NIFTY?

Not in this backtest. On NIFTY futures from 1 Oct 2025 to 30 Sep 2026 it lost ₹2,78,583 before costs and ₹3,95,252 after ₹20 per order and bid-ask slippage, over 1,004 trades. Statutory charges were not included. Past results do not guarantee future ones, and other timeframes or targets may behave differently.

Why are shorts on 5-minute and longs on 15-minute candles?

That split is part of the widely taught version: shorts on the faster chart because falls tend to be quicker, and longs on the slower chart to filter weaker bounces. Both timeframes are settings, so either can be changed.

What does 1:2 risk-reward mean here?

The target is twice the distance from entry to the stop. If the stop is 20 points away, the target is 40 points away. In theory one win covers two losses, so the strategy needs to win more than a third of trades before costs.

6

Before you rely on it

ADAPTED FOR TODAY'S NSE RULESThe source signals on the BANKNIFTY index and buys weekly ATM options with a hard-coded lot (25); traded here as NIFTY near-month futures, sized in lots, stops/targets on the futures price.
WATCH OUTstops/targets on the index while holding options; entry at the candle close. Gross of costs.
WHERE THE RULES WERE UNCLEAR · OUR CHOICESNo time window or square-off in the source: signals 09:20-15:00, square-off 15:20 (spec interpretation). The alert-candle replacement rule is from the widely taught version (not in the code). RR = 2 (spec default; the merged variant uses 1:3). Target measured from the actual entry price.
Also known as5 EMA strategySubhashish Pani 5 EMA5 EMA alert-candle reversal (Power-of-Stocks style): candle fully above 5-EMA, break of its low -> short / buy ATM PE, 1:3 RRalert candle strategy
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.