Re: Forecasting indicators for MT4
Posted: Fri Jan 16, 2026 2:23 am
So to practically use this for trading, we have to just look at the current slope of the prediction line as an indication or where the price is predicted to go. Is that right or is there another way to work with this? As far as I see the indicator doesn't really show me the current state of the market, if the market is trending up or down or is ranging, although in theory, that's what it is capable of doing.Banzai wrote: Thu Jan 15, 2026 5:58 am Hidden Markov Model (HMM) trading strategy
It’s far more powerful than most retail traders realize.
A Hidden Markov Model (HMM) trading strategy
is a way to let the market tell you what regime it is in
instead of you guessing with indicators.
It answers one core question:
“Is the market trending, ranging, or transitioning right now?”
and it updates that belief every candle using probability.
What an HMM actually is (in trading terms)
An HMM assumes:
You can’t see the true market state
…but you can see price, volume, volatility, momentum.
Each candle produces observations:
- Return
- Volatility
- Range
- Momentum
The model updates:
- Volume
“Given what I just saw, what is the probability we are in each state?”
That’s why it is called Hidden Markov.
Why HMM beats indicator stacking
Indicators are all:
- Looking at different things
- On different time horizons
HMM solves that.
- Without knowing the market regime
Instead of:
“RSI is oversold, MACD crossed, Stoch crossed, Fib is hit”
You get:
“We are in a 78% probability trending-down regime”
So:
- In trend → you only use pullbacks
- In range → you only fade extremes
Indicators become servants, not decision makers.
- In chaos → you do nothing
How HMM works in a trading system
A real HMM strategy has 3 layers:
Layer 1 — Regime detection (HMM)
Every candle:Layer2.pngCode: Select all
P(Trend Up) P(Trend Down) P(Range) P(High Vol)
Layer 3 — Your indicators
Now your RSI, Stoch, MACD are only used inside the correct regime.
Example:
- If HMM says trend down
- Stoch overbought → sell
If HMM says range
- MACD pullback → sell
This removes 70% of bad trades instantly.
- Stoch extremes → fade
You can change the blue line to light gray line.