Bitcoin Return Direction Prediction

  • 0 Rating
  • 0 Reviews
  • 5 Students Enrolled

Bitcoin Return Direction Prediction

I designed and built an end-to-end algorithmic trading framework using Logistic Regression, XGBoost, and Bidirectional LSTM models to forecast daily price movements. My work covered the entire quantitative pipeline: engineering complex technical and macroeconomic features, and writing the execution logic complete with fractional Kelly position sizing and Triple-Barrier risk management. To ensure the strategy's real-world viability, I validated the system through rigorous walk-forward backtesting, ultimately proving its statistical edge and outperformance against a standard buy-and-hold baseline.

  • 0 Rating
  • 0 Reviews
  • 5 Students Enrolled
  • Free
Tags:



Courselet Content

2 components

Requirements

  • Numpy, Pandas, Scipy, Scikit-learn, TensorFlow, XGBoost, Optuna, yfinance, Matplotlib, Seaborn Data Sources (yfinance tickers): BTC-USD, ETH-USD, ^GSPC, SPY, DX-Y.NYB, ^VIX, GLD, GC=F, TLT, BITO

General Overview

Description

Project: Bitcoin Return Direction Prediction

  • Data & Feature Engineering: Built a robust pipeline to aggregate Bitcoin OHLCV data, macroeconomic indicators (S&P 500, DXY), and sentiment indices. Engineered 20+ advanced features, including volatility regimes, cross-asset correlations, and rolling momentum.

  • Machine Learning Architecture: Developed an L2-regularized logistic regression baseline, an XGBoost ensemble gated by ADX-based regime detection, and a bidirectional LSTM with 4-head attention to capture non-linear temporal dynamics.

  • Algorithmic Execution & Risk: Designed dynamic risk management using Triple-Barrier logic (ATR-based stop-loss and take-profit) alongside fractional Kelly position sizing. Programmed protective overlays, including a forced "loss cooldown" mechanism to protect equity during market reversals.

  • Backtesting & Validation: Executed strict walk-forward cross-validation with expanding windows and purge gaps to eliminate look-ahead bias. Successfully demonstrated positive alpha and superior risk-adjusted returns (Sharpe, Calmar) against a standard buy-and-hold benchmark.

Recommended for you

blog
Last Updated 22nd February 2025
  • 1
blog
Last Updated 10th December 2023
  • 5
blog
Last Updated 14th November 2023
  • 0
  • 0
blog
Last Updated 22nd September 2023
  • 5
  • Free
blog
Last Updated 6th September 2023
  • 7
  • Free
blog
Last Updated 19th July 2023
  • 0
  • 0
blog
Last Updated 16th June 2023
  • 5
blog
Last Updated 7th January 2023
  • 5
  • Free
blog
Last Updated 23rd August 2024
  • 5
blog
Last Updated 19th November 2023
  • 7
blog
Last Updated 27th February 2025
  • 5
  • Free
blog
Last Updated 7th November 2022
  • 13
  • Free

Meet the instructors !

instructor
About the Instructor

I wanna be a instructure, please.

instructor
About the Instructor

I wanna be a instructure, please.