Back To Projects

Backtesting and Machine Learning for a Self-Developed Futures Trading Strategy

Anant S.

This study investigates whether the poor backtesting performance of a discretionary futures trading strategy stems from important subconscious rules that were never formally documented. Testing ten years of Nasdaq-100 and S&P 500 futures data showed that adding an previously unwritten market-structure rule substantially improved performance, while machine learning found short-term price direction largely unpredictable but volatility expansion moderately predictable.


Having traded futures discretionary for about a year as most in this position I noticed that written rules would not reproduce in results. The usual explanation is that a trader's memory is fallible. I wanted to investigate another: the incompleteness of the written rules since the real most important rules are subconscious, applied without being noticed. I have tried to encode my strategy for Nasdaq-100 and S&P 500 futures exactly as I have written it, matched it against ten years of one-minute prices from 7.07 million bars. When traded it lost money: compared to break even probability 33.3%, 31.7% of trades were profitable with expectancy of -0.175R per trade over 205 trades. I have tried to switch parameters and none of the 24 of them resulted in profit. I looked at the only section of specification written without any measurable definition and what it depicted was the market structure or session-structure model: Accumulation-Manipulation-Distribution, that states whether to trade a day or not. Having added it without altering all other inputs resulted in trading 53.0 % of trades profitably with +0.480R of expectancy on 742 trades, positive on all five years of testing. In a separate analysis I have had a look at 300 101 samples through machine learning methods where it resulted in unpredictable short term price direction and predictable movement (expansion of volatility) with 57.6 % of hits against the base probability of 48.2%. The one rule I have never bothered to write down mattered most.

Explore More!

Source Code
Anant S.
Odysseas Drosis

Related Projects

Predicting Fake Job Listings from Real Ones using Machine Learning Models

The main way this problem is going to be solved is through the creation of models that can predict whether these job listings are real or fake.
Ronit M.
Mentored by Hassan Azmat
Using Neural Networks to Predict U.S. Corporate Profits on Electronic Goods

The goal of this project is to train two neural network AI models: a Multi-Layer Perceptron (MLP) neural network and a Long Short-Term Memory (LSTM) neural network, to predict U.S. corporate profits on electronic goods into the future.
Will K.
Mentored by Ana Sofia Muñoz Valadez
Predicting Shoe Prices Using Machine Learning Algorithms

This paper investigates the use of machine learning algorithms, particularly Support Vector Regression, to accurately predict shoe prices based on factors like material, color, brand, type, gender, and size, using a dataset of 5000 entries.
Akshar S.
Mentored by John Basbagill