Skip to content

chicago-joe/Iceberg-Order-Prediction-Algorithm-Quantitative-Trading-with-ML

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📊 Machine Learning for Quantitative Trading: Iceberg Order Prediction

View Live Site Binder GitHub Stars

📋 Overview

This repository contains comprehensive research on applying machine learning to predict iceberg order execution in quantitative trading. My work demonstrates how ML can transform trading strategies by extracting predictive signals from market microstructure data.

🔍 Key Research Findings

  • Predictive Power: My models achieve 67% precision in predicting whether detected iceberg orders will be filled or canceled
  • Counter-Intuitive Discovery: Shorter training windows (just two time periods) consistently outperform longer historical datasets across all tested algorithms
  • Model Comparison: Systematic evaluation of XGBoost, LightGBM, Random Forest, and Logistic Regression models with surprising results

📑 Research Papers

This paper presents a novel method for predicting iceberg order execution using an XGBoost-based model:

  • Analysis of market microstructure patterns to identify execution signals
  • Implementation of time-series cross-validation to prevent look-ahead bias
  • Translation of prediction probabilities into actionable trading decisions
  • Feature importance analysis revealing key market predictors

My newest research challenges conventional wisdom in financial machine learning:

  • Systematic approach to hyperparameter optimization for ML models in trading
  • Comprehensive comparison of model types across extensive parameter spaces
  • Surprising discovery that shorter training windows consistently outperform longer datasets
  • Evidence that recent market data contains more predictive value than extended history
  • Practical optimization strategies for trading applications

📊 Model Reports

Detailed optimization results for various algorithms:

🧠 Key Innovations

  • Side-Relative Feature Transformations: Converting raw market features into consistent signals for both buy and sell orders
  • Custom Trading Metrics: Trading-specific performance measures that balance precision and minimum recall thresholds
  • Time-Series Validation: Implementation that respects temporal boundaries in financial data
  • Adaptive Confidence Bands: Translating probability outputs into dynamic trading decisions

🚀 Getting Started

  • Use the Binder links above to explore the notebooks interactively without local setup
  • Visit the full documentation site for comprehensive details

📈 Trading Implications

My research offers significant implications for trading system design:

  • Frequent Retraining: Prioritize frequent model retraining on recent data over accumulating larger historical datasets
  • Regularization Focus: Parameters controlling model complexity are critical for robust performance
  • Market Microstructure: Order book positioning relative to key levels provides powerful predictive signals
  • Confidence-Based Execution: Leverage prediction probabilities to make nuanced trading decisions

👨‍💻 About the Author

Joseph Loss - Quantitative Developer

🔗 Citation

If you use this research in your work, please cite:

Loss, J. (2025). Machine Learning for Quantitative Trading: Iceberg Order Prediction.
https://github.com/chicago-joe/Iceberg-Order-Prediction-Algorithm-Quantitative-Trading-with-ML

Star this repo and join me in exploring the best of quantitative trading!