Skip to content

Gaze31/algo-trading-simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Algorithmic Trading Strategy Simulator

Backtesting framework implementing 4 strategies on Indian equity data with full performance attribution.

Strategies

  • Golden Cross (50/200 SMA) — fixed overtrading flaw from 20/50 MA crossover
  • Mean Reversion (Bollinger Bands + RSI filter)
  • Momentum (21-day returns + MACD confirmation)
  • Random Forest ML (trained on 9 technical indicators)

Technical Indicators Built From Scratch

RSI, MACD, Bollinger Bands, ATR, Stochastic, OBV, SMA, EMA

Key Results

  • 20/50 MA crossover: 804 trades, -37% return, Sharpe -0.48 (overtrading flaw identified)
  • Golden Cross fix: +8.32% return, Sharpe +0.09 (overtrading eliminated)

Tech Stack

Python, pandas, numpy, scikit-learn, matplotlib, yfinance

About

4 strategies on Indian equities: Golden Cross (+8.32%), Mean Reversion, Momentum, Random Forest ML. Identified overtrading in 20/50 MA crossover — 804 trades, -37% return. 9 indicators from scratch.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors