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.pyThis 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.