In: Algorithmic Trading

Multi-timeframe (MTF) signal generation combines higher-timeframe trend (e.g., daily) with medium (hourly) and lower (5–15-minute) setups to trade in the direction of broader momentum while timing precise entries. Done right, it improves win-rate, reduces whipsaws, and makes execution more disciplined for Indian markets like NIFTY, BANK NIFTY, and liquid F&O stocks.

Why Multi-Timeframe Matters

Indian markets have distinct intraday rhythms (NSE: 9:15–15:30 IST), weekly option expiries, and frequent gap opens. A setup that “looks good” on a 5-minute chart often fails if the daily trend is against it. MTF alignment helps you:

  • Trade with the dominant daily move and time entries intraday.
  • Avoid false breaks around opening volatility and expiry days.
  • Standardise rules across NIFTY, NIFTY BANK, and liquid NIFTY50 stocks.

The Three-Layer Framework

Use a simple top-down stack: Daily → Hourly → 15-minute (adjust LTF to 5-minute for scalps).

  1. Higher Timeframe (HTF: Daily) – Regime & bias
    • Trend: slope of EMA(200) or crossover EMA(50) vs EMA(200).
    • Volatility regime: 14-day ATR or 20-day realized vol percentile.
    • Rule of thumb: Trade long only if Daily bias is up; short only if down.
  2. Medium Timeframe (MTF: Hourly/60-min) – Setup qualification
    • Structure: higher highs/lows (for longs) or lower highs/lows (for shorts).
    • Momentum: RSI(14) > 50 for longs, < 50 for shorts, or MACD histogram > 0 / < 0.
    • Consolidation breakouts or pullbacks to 20/50 EMA.
  3. Lower Timeframe (LTF: 15-min or 5-min) – Execution
    • Entry trigger: inside-bar break, VWAP reclaim, or micro pullback.
    • Risk definition: ATR-based stop on LTF; partials into intraday targets.

Simple MTF Score (for automation)

Let:

  • BD=sign(EMA50D−EMA200D)B_D = \text{sign}(\text{EMA}_{50}^D – \text{EMA}_{200}^D)
  • BH=sign(EMA2060m−EMA5060m)B_H = \text{sign}(\text{EMA}_{20}^{60m} – \text{EMA}_{50}^{60m})
  • B15=sign(EMA2015m−EMA5015m)B_{15} = \text{sign}(\text{EMA}_{20}^{15m} – \text{EMA}_{50}^{15m})

Overall score:

S=wD⋅BD+wH⋅BH+w15⋅B15S = w_D \cdot B_D + w_H \cdot B_H + w_{15} \cdot B_{15}

Typical weights: wD=2,  wH=1,  w15=1w_D=2,\; w_H=1,\; w_{15}=1.
Trade long if S≥3S \ge 3, short if S≤−3S \le -3**; otherwise, stand aside.


A Practical Example (NIFTY Futures)

Context: Daily EMA50 > EMA200 (bullish).
Hourly: Price consolidates above 20/50 EMA; RSI ~55–60.
15-min: Price reclaims day’s VWAP after a shallow pullback.

Rules:

  • Entry: Buy when 15-min closes above VWAP and above prior 15-min high.
  • Stop: 1.2 × ATR(15-min) below trigger (or below VWAP swing).
  • Initial Target: 1 × ATR(15-min); Runner: trail below 20-EMA(15-min) until hourly momentum fades.
  • No-Trade Filter: Skip if daily bias is down (prevents countertrend chops).

Building an MTF “Confluence Heatmap”

Use this to quickly scan NIFTY50 or F&O universe:

  • Rows: Symbols (e.g., RELIANCE, TCS, HDFCBANK).
  • Columns: Daily bias, Hourly momentum, 15-min trigger.
  • Cells: +1 (bullish), −1 (bearish), 0 (neutral).

Indicators That Work Well Together (and Why)

  • Trend (HTF): EMA slopes or Anchored VWAP from major swing lows/highs on the daily—captures primary drift.
  • Momentum (MTF): MACD histogram or RSI(14) on hourly—confirms energy behind the trend.
  • Structure & Execution (LTF):
    • VWAP & bands on 5–15-min (institutions watch VWAP).
    • Inside-bar / NR7 breakouts to time entries with tight risk.
    • ATR stops ensure risk is proportional to current volatility.

Position Sizing the MTF Way

Tie position size to HTF conviction and LTF risk:

Position Size=Risk per Trade (₹)Stop (₹ per lot)×f(BD)\text{Position Size} = \frac{\text{Risk per Trade (₹)}}{\text{Stop (₹ per lot)}} \times f(B_D)

Where f(BD)=1.25f(B_D) = 1.25 if daily bias aligns with trade, else 0.750.75.
Example: Risk ₹50,000 per trade. Stop ₹100 per lot. Daily bias aligned.
Size =50,000100×1.25=625= \frac{50{,}000}{100} \times 1.25 = 625 units (rounded to nearest lot multiple).


Handling India-Specific Events

  • Opening gaps: Treat daily signals as confirmed on prior close; don’t use the partially-formed current daily bar intraday.
  • Weekly expiry (Thu/Fri as per NSE calendar changes): Expect IV spikes; widen stops or skip mean-reversion setups.
  • RBI/Union Budget results: Volatility regime filter must switch to “event mode” (reduce size or wait for post-event structure).

Common Pitfalls (and Fixes)

  1. Look-ahead bias: Never read today’s daily close while trading intraday; use yesterday’s daily signal.
  2. Repainting HTF indicators: Lock regime features at the previous confirmed bar.
  3. Over-filtering: Too many conditions starve trades. Start simple (bias + one momentum + one trigger).
  4. Time alignment errors: In backtests, aggregate 5-min bars to 15-min/hourly without peeking across boundaries.
  5. Ignoring carry costs/slippage: Particularly important in Indian index futures and high-impact names.

Backtest Blueprint (Pseudo-Steps)

  1. Universe: NIFTY/BANK NIFTY futures + top 20 F&O stocks by turnover.
  2. Data: 5-min bars; resample to 15-min & 60-min; daily from EOD.
  3. Signals:
    • Daily bias BDB_D from EMA(50) vs EMA(200).
    • Hourly momentum BHB_H from MACD hist sign.
    • 15-min trigger B15B_{15} from price > VWAP and inside-bar break.
  4. Gate: Only trade if S≥3S \ge 3 (long) or S≤−3S \le -3 (short).
  5. Stops/Targets: ATR(15-min); partial at 1×ATR; trail remainder.
  6. Costs: Brokerage + taxes + realistic slippage (wider on open and near expiry).
  7. Metrics: Hit-rate, PF, Sharpe, max DD, average MAE/MFE, and time-in-market (should drop vs single-TF systems).

Sample Checklist (For Live Readiness)

  • Daily bias and ATR regime computed on prior day close
  • Hourly momentum refreshed on completed 60-min bar
  • VWAP and triggers computed on streaming 15-min/5-min bars
  • Risk sizing tied to stop distance and bias factor
  • No-trade windows: first 5–10 minutes, major RBI/policy prints, pre-expiry spikes
  • Execution algos (e.g., TWAP or POV) for larger orders in mid-caps

When to Prefer Mean-Reversion vs Trend in MTF

  • Trending Daily, Calm Intraday: MTF breakout/pullback works best (e.g., NIFTY in steady up-move).
  • Choppy Daily, High Intraday RV: MTF mean-reversion with VWAP fades, smaller size, faster exits.
  • Regime switch detected (Daily flips): Reduce exposure; wait for first MTF re-test in new direction.

Quick FAQ

Q1. What’s the best timeframe trio?
Daily–Hourly–15-min is a robust default for India. For shorter scalps, use Daily–30-min–5-min.

Q2. Can I replace EMA with Anchored VWAP?
Yes. Many desks use Daily AVWAP from swing lows/highs to define bias and Hourly AVWAP for structure.

Q3. How do I prevent overfitting?
Limit features, test across multiple stocks/sectors, and walk-forward validate across regimes (pre- and post-COVID, bull/bear legs, policy cycles).

Q4. Does this work for options?
Use the underlying’s MTF signals; execute via options (delta-0.30–0.40 calls/puts) with spreads to manage theta/IV.


Conclusion

Multi-timeframe signal generation is a disciplined way to trade with the tide (daily) while rowing with precision (intraday). For Indian equities and index futures, this approach can lift win-rates, reduce noise around gaps/expiries, and make risk sizing more consistent. Start with a simple bias-momentum-trigger stack, validate across symbols, and scale only after the live-to-backtest gap is acceptably small.


This article follows Endovia Wealth’s content brief and visual style guidelines.

Leave a Reply

Your email address will not be published. Required fields are marked *