Algo trading strategies — what they are, how they work, and what to watch out for.
Algo trading strategies are rule-based approaches that automate buy and sell decisions. The most common types are trend following (using moving averages), mean reversion (buying oversold, selling overbought), momentum/breakout (trading price and volume surges), and options selling (collecting premium from time decay). Each strategy works in specific market conditions and fails in others. No strategy works all the time.
This page covers six strategy types used by retail traders in Indian markets. Each includes the logic, what it is best for, the risk, and a practical example.
Trend Following
How it works
Buy when price is above a moving average (e.g., EMA 20 > EMA 50). Sell when the trend reverses.
Best for
Markets with clear directional moves. Works well in trending phases of NIFTY and large-cap stocks.
Common indicators
EMA, SMA, SuperTrend, ADX
Risk and failure mode
Generates false signals in sideways markets. Whipsaws can accumulate losses quickly.
Example rule
Buy RELIANCE when EMA(20) crosses above EMA(50) on daily chart. Exit when EMA(20) crosses below EMA(50).
Mean Reversion
How it works
Buy when price drops below a statistical threshold (oversold). Sell when it returns to the mean.
Best for
Range-bound markets and stocks that oscillate around a fair value.
Common indicators
RSI, Bollinger Bands, VWAP, standard deviation
Risk and failure mode
Can fail badly in strong trends — a stock that keeps falling will keep triggering buys.
Example rule
Buy when RSI(14) drops below 30 and price is near lower Bollinger Band. Exit at VWAP or RSI > 50.
Momentum / Breakout
How it works
Buy when price breaks above a key level (52-week high, resistance, volume surge). Ride the momentum.
Best for
Stocks showing unusual volume or price action. Works during earnings season or sector rotations.
Common indicators
Volume, 52-week high/low, ATR, price action levels
Risk and failure mode
False breakouts are common. Needs strict stop-loss discipline.
Example rule
Buy when stock breaks above 20-day high with volume 2x above average. SL at breakout level.
Options Selling (Premium Decay)
How it works
Sell options (puts, calls, or both) to collect premium. Time decay (theta) works in your favor.
Best for
Traders comfortable with defined-risk positions. Works in low-to-medium volatility environments.
Common indicators
IV, PCR, theta, delta, VIX
Risk and failure mode
Unlimited risk on naked positions. Black swan events can cause large losses. Hedge or define risk.
Example rule
Sell NIFTY strangle at 1 SD OTM. Basket-level stop-loss at 1.5x premium collected.
Pairs / Spread Trading
How it works
Buy one instrument and sell a correlated one. Profit from the spread, not direction.
Best for
Reducing directional risk. Works with highly correlated stocks or index vs stock positions.
Common indicators
Correlation coefficient, spread ratio, z-score
Risk and failure mode
Correlation can break down. Spread can widen against you during market stress.
Example rule
Long HDFCBANK, Short ICICIBANK when spread z-score > 2. Exit when z-score returns to 0.
Time-Based / Session Strategies
How it works
Trade based on time-of-day patterns. Open range breakout, closing hour momentum, gap strategies.
Best for
Intraday traders who notice time-specific patterns in Indian markets (9:15 open, 2:30 close).
Common indicators
Open range (first 15/30 min), VWAP, time filters
Risk and failure mode
Time patterns change. What worked last quarter may not work this quarter.
Example rule
Buy if NIFTY breaks above first 30-minute high after 9:45 AM. Exit at 3:15 PM or SL hit.
Before you trade any strategy live
- Backtest it. Run the strategy on at least 2-3 years of historical data. Look at drawdown, win rate, and consecutive losses — not just total returns.
- Paper trade it. Deploy on live market data without real money. See how it behaves in real-time, including slippage and execution delays.
- Size it correctly. Never risk more than 1-2% of capital on a single trade. Position sizing matters more than strategy selection.
- Accept it will lose. Every strategy has losing streaks. The question is whether the losses are manageable and the edge is real.
Common questions
What is the best algo trading strategy for beginners in India?
There is no single best strategy. Trend following with moving average crossovers (like EMA 20/50) is the most commonly used starting point because the logic is simple and easy to backtest. But the best strategy depends on your risk tolerance, capital, and time commitment. Always backtest before trading live.
Do algo trading strategies guarantee profits?
No. No strategy guarantees profits. Every strategy has periods where it loses money. Algo trading removes emotion and ensures consistent execution, but the underlying strategy still needs an edge. Backtesting helps validate if a strategy has historically worked, but past performance does not guarantee future results.
Can I use these strategies on NIFTY and BANKNIFTY?
Yes. All strategies listed here can be applied to NIFTY and BANKNIFTY futures and options. Options selling strategies are particularly popular for BANKNIFTY due to higher premium. Trend and breakout strategies work well on NIFTY. Always test on historical data first.
How many strategies should I run at once?
Start with one. Understand how it behaves in different market conditions. Once you are comfortable and have validated it through backtesting and paper trading, you can add more. Running too many untested strategies simultaneously increases risk and complexity.
Do I need to code to use these strategies?
Not necessarily. Platforms like Anadi Algo, Tradetron, and Zerodha Streak allow you to create strategies without coding. If you want full flexibility, Python with broker APIs (like Kite Connect) gives you complete control but requires programming knowledge.