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

EMA 4/11/18 ribbon

This intraday NIFTY futures system never trades a moving-average cross. Instead it waits for a ribbon of 4, 11 and 18-period EMAs on 5-minute candles that is already stacked in order, opening wider and getting steeper, with ADX above 20 and a strong-bodied candle. It then joins the move and rides it with the 11 EMA as a trailing stop, exiting the instant price trades back through it.
Trades NIFTY futures on 5-minute candles when the 4, 11 and 18 EMAs are stacked, widening and steepening with ADX above 20, and exits the moment price crosses the 11 EMA.
Market viewEither direction (follows the move)
TradesNIFTY near-month futures, 1 lot intraday
RiskOpen-ended (loss not capped by the structure)
CapitalFutures margin
SuitsIntermediate
Trades a month48.9
Typical hold28 min
Profitable months5 of 12
Longest losing run12 trades
Made money inTrend days that close near the high or lowDays opening with a gap downEntries with NIFTY above its 20-day average
Lost money inQuiet sessions with a range under 0.75%Choppy days that close mid-rangeEntries with NIFTY below its 20-day average
Default settings
Symbol
Bar minutes
EMA fast
EMA mid
EMA slow
Spread ATR
Slope bars
Mid slope ATR
Slow slope ATR
ADX min
Body ratio
Direction
Entry from
Entry to
Square off
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
First tick after a 5-minute signal close, 09:30 to 15:00
Legs
BUY FUT · Near month, stacked rising ribbon with ADX > 20 · Current month · 1 lotSELL FUT · Near month, stacked falling ribbon with ADX > 20 · Current month · 1 lot
Exits
trail first tick through the last closed 11 EMAtime square-off at 15:15
Re-entry
Yes, on the next signal candle
Bars
BAR_MINUTES bars of the near-month future, anchored at 09:15, continuous across sessions on a roll-adjusted series (below). EMA(EMA_FAST), EMA(EMA_MID), EMA(EMA_SLOW) of closes, ATR(14) and ADX(14), Wilder.
Entry
long when a bar closing between ENTRY_FROM and ENTRY_TO has all of: close above the three EMAs and EMA_FAST > EMA_MID > EMA_SLOW (stacked ribbon); EMA_FAST - EMA_SLOW > SPREAD_ATR x ATR (ribbon open); EMA_MID's SLOPE_BARS-bar rise >= MID_SLOPE_ATR x ATR, EMA_SLOW's >= SLOW_SLOPE_ATR x ATR, and the mid slope steeper than the slow one (both per ATR); EMA_MID's one-bar change larger than the bar before (accelerating); ADX > ADX_MIN; a bullish candle whose body is at least BODY_RATIO of its range. Short = the mirror. Filled at the first tick after the signal bar closes; one trade at a time.
Stop
the EMA_MID line itself - a long exits at the first tick BELOW the EMA_MID of the last closed bar (a short at the first tick above it), at market. The line moves every bar, so it is the trail.
Exit
anything open at SQUARE_OFF. No target.
Re-entry
a new signal bar after the exit (all conditions true again).
2

Results

PRE-BUILT · DEFAULTS
NIFTY · 2025-10-01 → 2026-09-30 · 587 trades · before costs
Net P&L−₹59,961
Win rate33%
Max drawdown−₹95,803
Avg per trade−₹102
Profit factor0.9
Worst trade−₹9,854
3

Where it made and lost money

In this test the session type split the result in two. Trades on 168 trend days made +₹1,10,810 with a 43% win rate, because a stacked, steepening ribbon on such a day keeps price above the 11 EMA for a long run. The 229 trades on quiet sessions lost ₹1,16,071, winning only a quarter: in a narrow range price falls back through the 11 EMA within minutes of entry. Choppy days lost ₹46,991 over 184 trades. Flat openings lost ₹1,05,664 over 410 trades while gap-down openings made ₹45,632 over 90. Entries with NIFTY below its 20-day average lost ₹75,278 over 304 trades.

Kind of session on the entry day
Quiet session (range under 0.75%)−₹1,16,071229 trades25% won
Trend day (closed near the high or low)+₹1,10,810168 trades43% won
Choppy day (wide range, closed mid-range)−₹46,991184 trades35% won
How the entry day opened
Gap up of 0.4% or more+₹7,78081 trades31% won
Flat open−₹1,05,664410 trades32% won
Gap down of 0.4% or more+₹45,63290 trades40% won
Trend going in
Uptrend (NIFTY above its 20-day average)+₹23,026277 trades36% won
Downtrend (NIFTY below its 20-day average)−₹75,278304 trades31% won
Session direction on the entry day
NIFTY closed above its open−₹58,281268 trades30% won
NIFTY closed below its open+₹6,029313 trades36% won
Day of the week
Monday−₹26,179109 trades33% won
Tuesday−₹7,182110 trades38% won
Wednesday+₹33,949132 trades36% won
Thursday−₹28,686116 trades27% won
Friday−₹14,202110 trades34% won
Expiry day (NIFTY weekly)
Expiry day+₹715119 trades39% won
Other days−₹52,967462 trades32% won
India VIX the evening before
VIX below 11.5 (calm)−₹8,451156 trades32% won
VIX 11.5-14.5 (normal)−₹30,768257 trades33% won
VIX above 14.5 (nervous)−₹13,033168 trades35% won
The same trades, split by the market conditions around each entry, before costs.
4

About this strategy

  1. Build 5-minute candles of the near-month NIFTY future and compute the 4, 11 and 18 EMAs, ATR(14) and ADX(14).
  2. For a long between 09:30 and 15:00: close above all three EMAs with 4 above 11 above 18, and the 4-18 gap wider than 0.5 ATR.
  3. The 11 EMA must have risen at least 0.3 ATR and the 18 EMA at least 0.2 ATR over three candles, with the 11 steeper and still accelerating.
  4. ADX must be above 20, and the signal candle must be bullish with a body at least 60% of its range. Shorts are the mirror image.
  5. Enter one lot at the first tick after the signal candle; one trade at a time.
  6. Exit at the first tick that trades through the last closed candle's 11 EMA, or at 15:15. There is no target.

Why traders use it

EMA ribbons show trend at a glance: when short, medium and longer averages fan out in order, momentum is building. Requiring the fan to widen and steepen relative to ATR aims to enter only accelerating moves, and the strong-candle and ADX checks add confirmation. Using the middle EMA as the stop gives a trail that tightens automatically as the trend ages, with no separate stop or target to manage.

Works best whenClear trend days that close near their high or low, where the ribbon stays fanned and price holds above the 11 EMA for long stretches; in this test gap-down openings and entries in an uptrend also did better.
Struggles whenQuiet sessions with a narrow range and choppy wide-range days, where price slips back through the 11 EMA soon after entry; flat openings and entries with NIFTY below its 20-day average were also loss-making in this test.

The year in plain words

From 1 Oct 2025 to 30 Sep 2026 on NIFTY futures with default settings, the ribbon traded 587 times, about 49 trades a month, and won 33%, losing ₹59,961 before costs with a profit factor of 0.90. Average wins of ₹2,748 did not make up for losses of ₹1,528 twice as often. Almost every trade (550) ended on a touch of the 11 EMA, with a median hold of 28 minutes. October and April each made about ₹20,000, while December lost ₹31,265. With so many trades, ₹20 per order and bid-ask slippage more than doubled the loss to ₹1,42,989.

What the settings do

Bar minutesThe candle length. Longer candles give fewer, slower signals and a looser trail.EMA fastThe fastest EMA in the ribbon, which price and the other EMAs are compared with.EMA midThe middle EMA, which also acts as the trailing stop. A longer period gives trades more room before exit.EMA slowThe slowest EMA in the ribbon. A longer period demands a more established trend.Spread ATRThe minimum gap between the fast and slow EMAs, in ATR. Larger values wait for a wider, stronger ribbon.Slope barsHow many candles back the EMA slopes are measured.Mid slope ATRThe minimum rise of the middle EMA over SLOPE_BARS candles, in ATR.Slow slope ATRThe minimum rise of the slow EMA over SLOPE_BARS candles, in ATR.ADX minADX must exceed this for an entry. Higher values keep only strongly trending moments.Body ratioThe minimum candle body as a share of its range. Higher values insist on more decisive candles.Direction"both" trades longs and shorts; "long_only" or "short_only" restrict it to one side.Entry fromThe earliest signal candle close that can start a trade.Entry toThe latest signal candle close that can start a trade.Square offWhen any open trade is closed.

Risks

  • The 11 EMA trail is close to price on 5-minute candles, so many trades are stopped within minutes for small losses.
  • High trade frequency makes costs decisive: after costs the loss more than doubled.
  • Entries come after the ribbon has already fanned out, so the move may be largely done.
  • Losing streaks of 12 trades occurred in this test.

Who it suits

Intraday futures traders who like visual trend tools and can automate frequent 5-minute decisions, accepting a low win rate, very short holds and a result that lost money in this test.

5

Questions traders ask

What is an EMA ribbon strategy?

An EMA ribbon plots several exponential moving averages of different lengths together. When they line up in order and spread apart, the trend is strong; when they bunch together or cross, it is weakening. This version uses 4, 11 and 18-period EMAs on 5-minute NIFTY futures candles.

Is the EMA 4/11/18 ribbon profitable on NIFTY?

Not in this backtest. From 1 Oct 2025 to 30 Sep 2026 it lost ₹59,961 before costs and ₹1,42,989 after ₹20 per order and bid-ask slippage, over 587 trades. Past results do not guarantee future ones.

Why use the 11 EMA as the stop?

The middle EMA follows price closely in a trend and rises with it, so it trails the trade automatically. A break below it is read as the end of the acceleration the entry was based on. The drawback is that on 5-minute candles normal pullbacks often touch it.

Why does the ribbon need to steepen and widen?

A stacked ribbon alone can describe a slow drift. Requiring the gap between EMAs and their slopes to grow relative to ATR is meant to catch only moves that are speeding up, which in theory are more likely to continue.

6

Before you rely on it

WATCH OUTno published results; a five-condition entry fires rarely and late in a move. Gross of costs.
WHERE THE RULES WERE UNCLEAR · OUR CHOICESno timeframe or session is given - 5-minute bars, entries 09:30-15:00, square-off 15:15 (spec). The body ratio is 0.5 in the code and 0.9 in its docstring; the spec's 0.6 is used. "Intrabar" exit read as a tick through the last CLOSED bar's EMA_MID (the forming bar's EMA is not known yet).
Also known astriple EMAEMA ribbon
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.