Register
Strategy library

Explore Rule-Based Trading Strategies

Guides to rule-based trading strategies for Nifty, Bank Nifty, Sensex, NSE stocks and MCX commodities. Each guide explains how the strategy works, its entry and exit rules and its main risks, so you can test it before you trade it. Search the list below or filter by type.

50pages
2,21,017words

Index

4 pages

Option selling

12 pages
Option selling17 minUnderstand an Options Calendar SpreadOptions calendar spread explained: selling a near expiry and buying a later one at the same strike, how time decay helps, the risks and how to manage the trade.Read the guide →Option selling17 minDynamic Delta Hedging Algo for Indian IndicesA delta-neutral strategy holds options positions whose overall delta is close to zero, so small moves in the index barely change their value.Read the guide →Option selling28 minExpiry Day Trading StrategiesExpiry day strategy guide for Nifty and Bank Nifty options: how time decay, gamma and fast price moves change the risks, and how to write rules for the session.Read the guide →Option selling22 minUnderstand an Iron Condor StrategyIron condor strategy explained: how selling an out-of-the-money call spread and put spread works, the profit range, the risk, adjustments and automation.Read the guide →Option selling17 minIron Fly Strategy for Index Options: Rules, Payoff and AutomationIron fly strategy for index options: how the short straddle with protection works, its payoff, maximum risk, entry and exit rules, and how to automate it.Read the guide →Option selling22 minNon-Directional Option Selling Algos for Indian IndicesThe short straddle is one of the most traded option strategies on Nifty. It is simple to set up, collects a large premium and profits on quiet days.Read the guide →Option selling18 minUnderstand a Short Strangle and Its RisksShort strangle strategy explained: selling an out-of-the-money call and put on one expiry, the premium and profit range, unlimited risk and how to limit it.Read the guide →Option selling18 minUnderstand a Bull Put Spread StrategyA bull put spread is a two-leg options strategy for a market you expect to stay above a level. You sell a put and buy a lower put in the same expiry.Read the guide →Option selling17 minUnderstand a Bear Call Spread StrategyA bear call spread is a two-leg options strategy for a market you expect to stay below a level. You sell a call and buy a higher call in the same expiry.Read the guide →Option selling17 minHow a Covered Call Strategy WorksA covered call is an options strategy for shares you already hold. You sell a call option against the shares and keep the premium.Read the guide →Option selling17 minUnderstand a Long Call Butterfly SpreadLong call butterfly spread explained: how its three strikes work, the limited risk and profit zone, break-even points and when traders use it.Read the guide →Option selling17 minHow Call and Put Ratio Spreads WorkA ratio spread is an options strategy that buys one option and sells more options of the same type at a further strike, usually two for one.Read the guide →

Option buying and hedges

8 pages
Option buying and hedges17 minUnderstand a Bear Put SpreadBear put spread strategy explained: how the two legs work, the maximum profit and loss, break-even and when traders use it for a moderate fall in the index.Read the guide →Option buying and hedges18 minUnderstand a Bull Call SpreadBull call spread strategy explained: how the two legs work, the maximum profit and loss, break-even and when traders use it for a moderate rise in the index.Read the guide →Option buying and hedges17 minUnderstand a Long Straddle StrategyLong straddle strategy explained: buying a call and a put at the same strike and expiry, break-even points, the cost of waiting and when traders use it.Read the guide →Option buying and hedges17 minUnderstand a Long Strangle StrategyLong strangle strategy explained: buying an out-of-the-money call and put on one expiry, how it differs from a straddle, the break-evens and the risk of decay.Read the guide →Option buying and hedges27 minOption Buying StrategiesOption buying strategies explained with model numbers: the move a bought call needs to break even, strike and expiry choice, exits, sizing and automation.Read the guide →Option buying and hedges17 minUnderstand a Protective Put StrategyA protective put is insurance for a long position. You hold shares, an ETF or a long futures contract, and you buy a put option on it.Read the guide →Option buying and hedges17 minHow a Collar Strategy Limits RiskCollar strategy explained: how buying a put and selling a call puts a floor and a ceiling on a stock position, the trade-offs and costs, with an example.Read the guide →Option buying and hedges17 minBuild Synthetic Long and Short FuturesSynthetic futures strategy explained: how a call and put at one strike build a synthetic long or short, how it compares with real futures, margin and risks.Read the guide →

Indicators

14 pages
Indicators17 minUse ATR to Define Volatility-Based Trading RulesATR volatility strategy guide: how Average True Range measures normal movement, including gaps, and how to turn it into clear stop-loss and position size rules.Read the guide →Indicators17 minBuild Rules for a Bollinger Band BreakoutBollinger Band breakout strategy: how to write entry, exit and stop rules for a move beyond the bands, and where breakouts commonly fail, with a worked example.Read the guide →Indicators17 minUnderstand Bollinger Band Mean ReversionBollinger Band mean reversion strategy: how traders treat the bands as normal price limits, write entry and exit rules, and what happens in a strong trend.Read the guide →Indicators17 minExplore Donchian Channel Breakout RulesDonchian channel strategy guide: how the highest high and lowest low of the last N periods mark breakouts, with entry, exit and stop rules you can test.Read the guide →Indicators19 minMACD Trend Following Strategy: Rules, Exits and FiltersA MACD trend following strategy for Nifty futures: signal-line and zero-line rules, a worked trade, exits, option versions, sizing and costs.Read the guide →Indicators19 minMoving Average Crossover Strategy: Rules, Settings and ExitsA moving average crossover strategy for Nifty futures: seven pairs compared, a worked 9/20 EMA trade, filters, exits, option versions and costs.Read the guide →Indicators19 minBuild Rules for an RSI Mean Reversion StrategyAn RSI indicator strategy uses the Relative Strength Index to spot moves that have gone too far, too fast, and trades the move back toward the average.Read the guide →Indicators17 minUnderstand a Supertrend Trading StrategySupertrend strategy guide: how this trend-following indicator draws a line above or below price, how to set entries and exits, and where it gives false signals.Read the guide →Indicators18 minAutomated Stocks & Futures VWAP Band TradingVWAP, the volume-weighted average price, is the average price of an instrument during the day, weighted by how much traded at each price.Read the guide →Indicators18 minBuild Rules for a Stochastic Oscillator StrategyA stochastic oscillator strategy uses the stochastic indicator to time entries when a market has stretched too far in one direction.Read the guide →Indicators17 minUse ADX Rules to Trade Strong TrendsAn ADX strategy uses the Average Directional Index to trade only when a market is trending strongly. ADX measures the strength of a trend, not its direction.Read the guide →Indicators17 minBuild Rules for Fibonacci Retracement TradesA Fibonacci retracement strategy looks for entries when a trending market pulls back to one of a set of ratio levels between a swing low and a swing high.Read the guide →Indicators17 minTrade Trends with Heikin Ashi CandlesHeikin Ashi strategy guide: how averaged candles make trends easier to read, how to write entry and exit rules, and where the smoothing hides real price.Read the guide →Indicators24 minSpot and Trade RSI DivergenceRSI divergence strategy: how to spot when price and RSI disagree, write rules for bullish and bearish divergence, and test them before you trade.Read the guide →

Intraday and price action

10 pages
Intraday and price action17 minUnderstand Rule-Based Gap TradingA gap happens when a market opens well above or below its previous close. Gaps reflect news, results or global moves that happened while the market was closed.Read the guide →Intraday and price action17 minAutomated Price Action & Volume Breakout AlgoA momentum breakout strategy buys stocks that break out of a consolidation or to new highs on strong volume, on the view that strength tends to continue.Read the guide →Intraday and price action17 minCombine Timeframes in a Trading StrategyA multi-timeframe strategy uses a longer timeframe to decide the direction of trades and a shorter timeframe to decide when to enter.Read the guide →Intraday and price action17 minAutomated Opening Bell Momentum Execution SystemOpening range breakout strategy: how traders mark the first minutes' high and low, enter on a break, set stops and automate the rules for Nifty and stocks.Read the guide →Intraday and price action26 minOption Scalping StrategyScalping in option trading means taking many short trades in liquid index options, holding each for seconds or minutes to capture a few points of premium.Read the guide →Intraday and price action17 minDefine Support and Resistance Trading RulesSupport is a price level where buying has tended to stop a fall; resistance is a level where selling has tended to stop a rise.Read the guide →Intraday and price action18 minAutomated Swing & Delivery Stock Trading EngineSwing trading strategy guide: holding stocks for days to weeks to catch one leg of a larger move, with rules for entries, stops, exits and delivery automation.Read the guide →Intraday and price action17 minEvaluate Price Breakouts with Volume RulesVolume breakout strategy guide: how to trade price breakouts only when volume confirms them, with entry, stop and exit rules you can write down and backtest.Read the guide →Intraday and price action17 minBuild Rules for the Open High Low StrategyOpen high low strategy guide: how the intraday OHL setup works for Indian stocks, with entry, stop-loss and exit rules you can write down and backtest.Read the guide →Intraday and price action17 minTrade Inside Bar Breakouts with Clear RulesInside bar strategy guide: how a candle inside the previous range signals contraction, and how to write breakout entry, stop-loss and exit rules to backtest.Read the guide →

Commodities

2 pages
Key point
A strategy here is a set of rules you choose, test and run yourself. The guides are education and give no trade calls or buy/sell advice.

Where to start

From guide to live trading

Any of these trading strategies should pass the same four steps before it places a live order:

  1. Build your version in the option strategy builder: legs, strikes, entry time, stop loss and target.
  2. Backtest it on past data, and allow for brokerage, taxes and slippage when you read the results.
  3. Forward test it to see how it behaves in a live market.
  4. Go live from your own broker account, through the broker's official API, with your own API key, from a static IP linked to your broker account and after the broker's daily login with two-factor authentication. Self-built strategies must stay under 10 orders a second, and funds and securities stay with your broker.

Frequently asked questions

Are these ready-made strategies I can switch on?

No. Each guide explains a set of rules; you build your own version, test it and decide whether to run it. QuantPower's ready-made templates, such as straddles and iron flies, give you a starting point: load one into the strategy builder, change what you like and run it as your own strategy.

Do the guides cover MCX commodities?

A few do: the crude oil and gold and silver guides use MCX contracts. Most guides use Nifty, Bank Nifty, Sensex and NSE stocks.

How should I compare two strategies from these guides?

Test both on the same underlying, period and costs. Then compare maximum drawdown and the worst day as well as total profit, because a strategy that earns more but falls further is harder to stick with.

Why do the guides not show past profits?

Past results depend on the period, costs and exact rules you choose, and they do not predict future returns. The guides set out the rules and risks and leave the testing to you, on your own data and costs.

Sources

  • SEBI, circular on safer participation of retail investors in algorithmic trading, 4 February 2025
The strategy guides are for education and are not investment advice. Trading involves substantial risk.

Pick a strategy, then test it before it trades.

Build your version in the strategy builder, backtest it and paper trade it before it goes live.