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

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

Strategies

Buying options based on DI + Williams %R: a good recent run, and a loss on the two years before

Buying a NIFTY weekly put on a 1-hour DI / Williams %R signal made +1,090 points a lot over 4.7 years, but not by more than luck could explain (t 1.54). It lost money on the earlier two years (Nov 2021 to Nov 2023), and without its five best trades it lost over the whole period.

· 6 min read

Strategies

Buying put on ORB breakdown: strong return on capital, a drawdown bigger than it, and not beyond luck

Buying a NIFTY weekly put when the price breaks below the first 15 minutes’ range and 9-bar momentum turns negative made +1,680 points a lot over 4.7 years, and made money in both the held-back years and the later ones. But neither was beyond luck (t 1.60 overall), the worst drawdown was larger than the capital we assign, and pessimistic fills turn it into a heavy loss.

· 6 min read