Skip to content

A Python-based backtesting tool for a momentum trading strategy using 20/100-day SMA crossovers. Outputs equity curves, performance metrics

Notifications You must be signed in to change notification settings

ar3vind/quant-sma-backtest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Momentum SMA Crossover Backtest (Python)

Backtests a simple 20/100-day SMA crossover on a single ticker (default: AAPL).
Outputs an equity curve image and a text summary with Sharpe & Max Drawdown.

How to run

python -m venv .venv && source .venv/bin/activate  # Windows: .\.venv\Scripts\Activate
pip install -r requirements.txt
python backtest.py

About

A Python-based backtesting tool for a momentum trading strategy using 20/100-day SMA crossovers. Outputs equity curves, performance metrics

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages