An algorithmic trading simulation and machine learning pipeline designed to predict 5-day directional momentum for Reliance Industries (RELIANCE.NS) using stationary technical features.
Context: This pipeline was engineered as a solution for a quantitative research selection task. The original constraints and problem statement can be found in /docs/Quant_Club_Problem_Statement.pdf.
This project utilizes a Random Forest Classifier to navigate the "Accuracy vs. Magnitude" paradox in financial modeling. By ruthlessly pruning non-stationary noise and enforcing chronological cross-validation, the model actively trades momentum regimes while decoupling from underlying asset drawdowns.
- Total Return: 57.12%
- Benchmark (Buy & Hold): ~30.00%
- Alpha Generated: +16.00% (Absolute)
- Annualized Sharpe Ratio: 0.56
Note: An extended 5-year robustness test (2021-2026) yielded a 100% absolute return, generating ~27% pure alpha over the extended benchmark.
- Language: Python
- Data Retrieval:
yfinance - Feature Engineering:
ta(Technical Analysis),numpy,pandas - Machine Learning:
scikit-learn(RandomForestClassifier, TimeSeriesSplit, GridSearchCV)
/notebooks: Contains the core Jupyter Notebook with data fetching, feature engineering, model training, and the simulated backtesting loop./docs: Contains the formal Quantitative Research Report and the original task problem statement.