Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 1.13 KB

File metadata and controls

47 lines (31 loc) · 1.13 KB

🎰 strategy-gamble

A Streamlit-powered backtesting dashboard that lets you simulate and visualize trading strategies — because sometimes, strategy is a gamble.


🚀 Features

  • 📈 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

📦 Run Locally

# 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

📊 Strategy Logic

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.


🤹‍♂️ Because trading is part strategy, part gamble.