Larsen & Toubro (LT): three strategies, 2019–2024.
Holding Larsen & Toubro over these years returned 176%, a Sharpe ratio of 0.67. At their default settings none of the three rules beat that Sharpe. Tuned on the first 70% of the period and scored on the rest, none of the three held up.
Against holding it
On years it never saw
For each rule, every combination in its grid was run on the period up to 2023-03-09, the best was picked, and only that one was scored on what came after. How walk-forward works.
| Picked | Sharpe, tuned | Sharpe, after | Verdict | |
|---|---|---|---|---|
| Momentum | lookback 40 · MA 200 | 0.68 | −0.34 | failed |
| MACD | 16 / 34 / 9 | 0.47 | −1.03 | failed |
| Bollinger | 30 days · 2.5σ | −0.22 | 0.43 | inconclusive |
Skill or luck
Three more readings of the same runs. A permutation p-value under 0.05 means the timing beat random timing; a probability of overfitting near 0.5 or above means picking by backtest did no better than picking at random; the rolling column slides the split through the period. What each one asks.
| Permutation p | Probability of overfitting | Across rolling windows | |
|---|---|---|---|
| Momentum | 0.036 | 0.21 | depends on the window |
| MACD | 0.124 | 0.99 | depends on the window |
| Bollinger | 0.150 | 0.59 | depends on the window |
Hypothetical results on past data (2019-01-01 to 2024-12-31), from a script in the repository that re-runs every figure. Not a recommendation to buy, sell or trade Larsen & Toubro or any other security.
Run it yourself
Each opens in the workspace on Larsen & Toubro over the same dates, straight after sign-up if you are new. Change the ticker or the dates and the numbers change with them, which is the point.
Other India stocks: Reliance Industries · Tata Consultancy Services · HDFC Bank · Infosys · ICICI Bank · State Bank of India · ITC · Bharti Airtel · Hindustan Unilever · Bajaj Finance · Asian Paints · Maruti Suzuki · Wipro · Nifty 50 · Nifty Bank · BSE Sensex. All of them.