garroshub/Quant_Sector_Rotation_Strategy
A sophisticated quantitative trading strategy leveraging momentum and volatility signals for ETF sector rotation, enhanced with LLM-powered strategy analysis.
Quant Sector Rotation Strategy ๐
A sophisticated quantitative trading strategy leveraging momentum and volatility signals for ETF sector rotation, enhanced with LLM-powered strategy analysis.
๐ Try It Now!
Experience the strategy in action: Quant Sector Rotation App
๐ Strategy Overview
This project implements a systematic sector rotation strategy using ETFs, combining momentum signals with intelligent risk management. The strategy employs a unique "Moving Average Energy" indicator for momentum measurement and incorporates VIX-based position sizing.
๐ฏ Key Features
- MA Energy Indicator: Proprietary momentum indicator using multiple timeframe moving averages, normalized by price volatility
- Dynamic Risk Management: VIX-based position sizing with adaptive thresholds
- LLM Strategy Review: AI-powered performance analysis and strategy behavior insights
- Interactive Dashboard: Real-time strategy monitoring and backtesting visualization
๐ Backtest Results (2010-2024)
- Annual Return: 18.5%
- Sharpe Ratio: 1.45
- Information Ratio: 0.82
๐ ๏ธ Technical Architecture
-
Signal Generation
- Multi-timeframe MA Energy calculation
- Cross-asset momentum comparison
- Volatility normalization
-
Risk Management
- VIX-based position sizing
- Trailing stop implementation
- Maximum drawdown control
-
Strategy Review
- LLM-powered strategy behavior analysis
- Historical context integration
- Performance attribution
๐ฆ Installation
git clone https://github.com/garroshub/Quant_Sector_Rotation_Strategy.git
cd Quant_Sector_Rotation_Strategy
pip install -r requirements.txt๐ Quick Start
streamlit run app.py๐ Dashboard Features
-
Strategy Parameters
- MA windows customization
- Risk thresholds adjustment
- Universe selection
-
Performance Analytics
- Rolling window analysis
- Risk metrics visualization
- Position history tracking
-
AI Strategy Review
- Strategy behavior analysis
- Performance attribution
- Improvement suggestions
๐ค Contributing
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐ง Contact
GitHub: @garroshub
โญ Star History
Disclaimer: This strategy is for educational purposes only. Past performance does not guarantee future results. Always do your own research and consider your risk tolerance before trading.