Skip to content

SwitchGain is a Python-based algorithmic trading project implementing Momentum and Mean Reversion strategies on stock data. It automates signal generation using technical indicators (RSI, Bollinger Bands) and provides performance analytics.

License

Notifications You must be signed in to change notification settings

albinjm/SwitchGain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

SwitchGain

GitHub
Python

SwitchGain is a Python-based algorithmic trading project that explores Momentum Trading and Mean Reversion strategies. The project leverages data science techniques to generate automated buy/sell signals and evaluates their performance using key financial metrics.

📌 Features

  • Two Trading Strategies:
    • Momentum Trading: Uses RSI and short-term price changes to identify trends.
    • Mean Reversion: Applies Bollinger Bands and Z-Score to detect overbought/oversold conditions.
  • Automated Data Pipeline: Fetches historical AAPL data from Yahoo Finance (yfinance).
  • Interactive Visualizations: Plotly-based charts for strategy analysis.
  • Performance Metrics: Evaluates strategy effectiveness in different market conditions.

🚀 Quick Start

Clone the Repository

git clone https://github.com/albinjm/SwitchGain.git  
cd SwitchGain  

📊 Strategy Highlights

Strategy Key Indicators Signal Condition
Momentum RSI, 5-day % change Buy: Momentum_5D > 0 & RSI (30-70)
Mean Reversion Z-Score, Bollinger Bands Buy: Price < Lower Band (Z < -1.5)

📈 Results

  • Momentum performs best in trending markets (e.g., sustained bullish runs).
  • Mean Reversion excels in ranging markets (e.g., price bouncing between bands).
  • Combining both strategies could improve adaptability.

🤝 Contributing

Pull requests are welcome! For major changes, open an issue first.

📜 License

MIT © 2025 Albin James Maliakal


🔗 Relevant Links


SwitchGain – Trade smart, not hard! 🚀

About

SwitchGain is a Python-based algorithmic trading project implementing Momentum and Mean Reversion strategies on stock data. It automates signal generation using technical indicators (RSI, Bollinger Bands) and provides performance analytics.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published