Rule-based investing and trading · Indian markets

Rule-based investing and trading, tested honestly, automated safely.

Algo simply means rules, followed every time. Rules keep you consistent; automation keeps emotion out of the decision. Here I share backtests, lessons and real-life experience from my own fully automated setup, including what didn't work. New to algo? Start here. Want to explore investing and trading strategies? See the strategies.

What's on the bench

The house rules

  1. Costs in. Brokerage, STT, exchange and regulatory charges, GST, stamp duty and slippage go into every result.
  2. Out-of-sample shown. Every strategy shows its untouched test period next to the period it was built on.
  3. No survivorship bias. Equity tests use point-in-time universes, including stocks that later dropped out.
  4. Failures published. Rejected and retired strategies stay on the record, and the reason they failed is explained.
  5. Old data only. Results use market data at least three months old. This is research, not a trade call.

Read the full methodology →

Latest

Strategies

EMA crossover as a trend filter: cuts the drawdown, keeps the return

Holding the NIFTY 50 only while its 20-day EMA was above its 50-day EMA, and keeping the money in a liquid fund the rest of the time (assumed to earn 6% a year), made 9.9% a year over 18½ years against 7.7% for buying and holding the index, with a worst fall of −25% instead of −60%. The smaller drawdown held from every start date, with returns comparable to buy and hold.

· 12 min read

Strategies

The 5-delta weekly NIFTY strangle: wins eight trades in ten, and one weekend took 40% of the profit

Selling far out-of-the-money NIFTY weekly options four sessions before expiry won 83% of its trades over five years. But the average loss was nearly four times the average win, one weekend gap in April 2025 cost about 40% of the five-year profit, and after costs it earned about 4% a year on capital.

· 9 min read

Strategies

The NIFTY expiry-day straddle with a 30% stop: busy, popular, and not clearly better than luck

Selling the NIFTY at-the-money straddle at 9:20 am on every weekly expiry, with a 30% stop on the pair, made a small profit over five years after costs, about 6.6% a year on capital. But it lost on six trades in ten, the result is not distinguishable from luck, and 2022 and 2023 made almost nothing.

· 8 min read

Strategies

The SENSEX overnight ₹30 strangle: nine wins in ten, and a tail the backtest never met

Selling a ₹30 SENSEX call and put the day before expiry and holding them overnight won 90% of 156 trades over three years, comfortably beyond luck, and survived double costs. But losses are uncapped and there is no stop: a 5% gap on a calm week would cost about 1.7 years of average profit, and the sample never contained one.

· 10 min read