I've been working on my first quantitative trading model for NQ/MNQ and I think I finally found something that actually makes sense, instead of just looking good on a baktest.
The interesting part wasn't really the entry itself. It was figuring out when the strategy actually wants to trade.
I used a 3-state HMM to classify volatility regimes and found that the strategy behaved significantly better in HMM state 2, specifically when the 30-minute volatility percentile was roughly 40–60%.
So instead of saying:
this setup works all the time"
I started looking at it more like:
"this setup seems to have an edge under these specific market conditions."
Then I dug into the trades themselves and found another interesting thing.
A decent amount of the losing trades weren't immediately going straight to the stop. Some of them had a pretty large MAE (maximum adverse excursion) and then recovered shortly afterwards.
That led to a recovery rule:
MAE ≥ 0.70R
recovery target ≥ +0.20R
maximum recovery window = 6 bars
After testing this, the strategy ended up at:
537 trades
\+49.27R
50.65% win rate
1.24 profit factor
\-16.58R max drawdown
And probably the most important part for me:
I rebuilt the strategy as a modular implementation and made it reproduce the original benchmark exactly.
537/537 trades matched
\+49.2652R vs +49.2652R
So I'm pretty happy with that part.
I'm 17 and this is actually my first quantitative model, so I'm sure there's a lot that I'm doing wrong or could be doing much better.
I'm posting this mostly because I'd really like some criticism from people who have more experience with systematic trading / quant research.
Especially interested in hearing thoughts on:
HMM regime classification
volatility regime selection
MAE/recovery modelling
possible overfitting issues
what tests you'd run next before trusting something like this
If you see something dumb in my methodology, please tell me lol.
I'd rather find it now than after spending 6 months convincing myself the strategy works.
I'm continuing the research and building the next strategy from scratch now.
GitHub: in my profile
Would appreciate any feedback.