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

Fading opening gaps: two in three gaps get filled, but not in a tradable way

Two in three small NIFTY futures gaps (0.10–0.25%) touched the previous close during the day, but fading them with a stop won only 51% of the time. The rule lost about 8.6 points a trade before costs and 10.6 after costs. On the NIFTY index itself the same idea looks profitable, but the index as such is not tradable.

· 10 min read

Strategies

Intraday momentum on NIFTY: 2,600 points in the last 18 months (50%+ on capital), but a loss in the two years before

Trading NIFTY synthetic futures in the direction of the first 15 minutes, from 2:45 pm to the close, made about 2,600 points after costs in the last 18 months (about 61% on capital) but lost about 1,100 points in the 2.2 years before. Over the whole test, November 2022 to August 2026, that is only about 3 points a trade (t 1.48), and on regular futures it loses outright.

· 13 min read

Strategies

Buying dips in Midcap 150 stocks: a small edge that is eaten away by costs

Buying Midcap 150 stocks that closed at a 5-day low, with a 10-day limit and an exit on any close below the 10-day EMA, lost about 24% a year after costs over ten years. The trades had a small edge before costs (+0.21% each), but the EMA exit fired the day after almost every buy: 1,355 trades a year, and costs took more than the edge. Without that exit the rules simply tracked the index.

· 7 min read