NSE Stock Algorithmic Trading
Major Types of Algorithmic Trading Strategies
(a) Trend Following
- Uses price momentum and moving averages.
- Example: Buy when a short-term MA crosses above a long-term MA (golden cross); sell on the opposite crossover.
- Works best in trending markets.
(b) Mean Reversion
- Assumes prices revert to historical averages.
- Example: RSI (Relative Strength Index) > 70 → overbought (sell signal); < 30 → oversold (buy signal).
- Works best in sideways/range-bound markets.
(c) Breakout / Momentum
- Buys when price breaks resistance with volume or sells when support breaks.
- Example: Bollinger Band breakout strategy.
- Useful during high volatility events (earnings, news, budget announcements).
(d) Arbitrage
- Exploits price differences between markets.
- Example: Cash-futures arbitrage (NSE cash vs Nifty futures), or pair trading between correlated stocks (HDFC Bank vs ICICI Bank).
(e) Market Making / HFT
- Placing simultaneous buy/sell quotes to capture the bid-ask spread.
- Needs low latency infrastructure.
- Risks: slippage, sudden crashes, regulatory restrictions [Investopedia].
2. Technical Indicator-Based Detailed Approaches
(a) Moving Average Crossover Strategy (Trend Following)
Steps:
- Select two EMAs: short-term (20-day) and long-term (50-day).
- Buy Signal → Short EMA crosses above Long EMA.
- Sell Signal → Short EMA crosses below Long EMA.
- Apply stop-loss at recent swing low/high.
👉 Works well on Nifty50 futures and large-cap liquid stocks. [Investopedia]
(b) RSI Mean Reversion Strategy
Steps:
- Calculate 14-day RSI.
- Buy Signal → RSI < 30 and price shows bullish reversal candle.
- Sell Signal → RSI > 70 and price shows bearish reversal candle.
- Add filter: Only take trades in the direction of 200-day MA trend to avoid false signals.
👉 Popular for swing trading mid-cap NSE stocks. [Investopedia]
(c) Bollinger Band Breakout
Steps:
- Plot 20-day SMA with ±2 standard deviation bands.
- Buy Signal → Price closes above upper band with rising volume.
- Sell Signal → Price closes below lower band with high volume.
- Use trailing stop-loss at middle band (20-day SMA).
👉 Best during high volatility (earnings results, RBI policy days).
(d) VWAP (Volume Weighted Average Price) Intraday Strategy
Steps:
- Calculate VWAP for the day.
- Buy → Price crosses above VWAP with volume spike.
- Sell → Price crosses below VWAP with heavy selling volume.
- Exit by market close (intraday only).
👉 Institutional traders use VWAP as benchmark, so this works well on liquid index stocks.
3. Index vs Cash Market: Which is Better?
Index Futures (Nifty, BankNifty)
✅ High liquidity → less slippage and tighter spreads.
✅ Leverage allowed → margin is lower than full stock purchase.
✅ Ideal for intraday & swing trading with algorithms.
❌ Higher risk due to leverage.
❌ Fewer instruments compared to 1600+ NSE stocks.
Cash Market (Stocks)
✅ Huge variety (large-cap, mid-cap, small-cap).
✅ Can design strategies specific to sectors (IT, Pharma, Auto).
✅ Lower risk (no leverage unless using margin).
❌ Liquidity issues in mid-caps/small-caps → higher impact cost [TradingQnA].
❌ Short selling is restricted (only intraday, not overnight).
4. Which is Better?
- For beginners & liquidity-focused algo trading → Index futures (Nifty/BankNifty) are better because of high volume, continuous movement, and lower impact cost.
- For stock-specific strategies (earnings plays, sectoral rotation) → Cash market can be better, but focus on large-caps (Reliance, HDFC Bank, Infosys) to avoid slippage.
- Many algo traders use hybrid approaches: build signals on index + sector trends and then execute in select liquid stocks.
👉 In practice:
- Index algos are preferred for trend-following, intraday scalping, and VWAP-based trades.
- Stock algos are better for arbitrage, mean reversion, and earnings-driven breakout trades.
0 Comments
Be the first to leave a comment!
Please log in to post a comment.