A Streamlit-powered backtesting dashboard that lets you simulate and visualize trading strategies โ because sometimes, strategy is a gamble.
- ๐ SMA/EMA crossover trading strategy
- ๐ฐ Portfolio growth tracking
- ๐งฎ Sharpe ratio, drawdown, and trade metrics
- ๐ Buy/sell signal markers
- ๐ Trade logs and performance exports
- ๐จ Interactive Streamlit UI with clean dark theme
# 1. Clone the repo
git clone https://github.com/Aniket2002/strategy-gamble.git
cd strategy-gamble
# 2. Install dependencies
pip install -r requirements.txt
# 3. Run the app
streamlit run streamlit_app.py
This dashboard uses a simple SMA/EMA crossover strategy:
- ๐ Buy when the EMA crosses above the SMA
- ๐ Sell when the EMA crosses below the SMA
- Simulated with $100,000 initial capital
- Tracks portfolio value, trades, and cumulative performance
All price data is sourced from Yahoo Finance via the yfinance
API.