Sector Rotation Strategy

Published:

A quantitative sector rotation strategy that generates signals from 49 industry portfolios and trades them through sector ETFs. The pipeline runs end to end: data processing, signal generation, backtesting, factor analysis, and risk reporting.

View on GitHub


How it works:

  • Seven alpha signals: momentum, mean reversion, volatility, quality, macro regime, regime adaptive, and defensive
  • Signal weights and model hyperparameters tuned with Optuna against the Sharpe ratio
  • Factor model combining Fama-French 5, PCA factors from industry returns, and macro indicators
  • Backtesting with volatility targeting, position limits, drawdown protection, and transaction costs
  • Stress tested across the COVID crash, the 2022 inflation shock, and the 2008 financial crisis