A Kalman filter as a moving average: adaptive smoothing or just a fancier EMA?
Posted: Sun Nov 22, 2026 9:12 am
The Kalman filter turns up in trading discussions as a sort of upgraded moving average. It comes from engineering, where it is used to estimate the true state of something from noisy measurements, like tracking a vehicle's position from imperfect sensors. Applied to price, it treats each tick or close as a noisy measurement of an underlying "true" price and updates its estimate with each new bar.
What makes it interesting is that the weight it gives to each new observation depends on two settings: how noisy the measurements are assumed to be, and how much the underlying value is expected to change between bars. In the simplest one-dimensional version with fixed settings, the filter settles into behaving very much like an EMA with a particular smoothing constant. So in its basic form it is not as exotic as the name suggests.
The more interesting versions model velocity as well as level, so the filter tracks both where price is and how fast it is moving. That can reduce lag in trends, a bit like DEMA, but with the same risk of overshooting when the trend turns.
A few points worth considering before adding one to a scalping chart:
- The noise settings are effectively parameters, so a Kalman filter can be over-tuned to historical data just like any indicator.
- Many indicator versions online use fixed noise settings, which removes the adaptive part people are attracted to.
- Comparing it fairly means tuning a plain EMA to similar smoothness first, then seeing whether the Kalman version gives better turns or just a different-looking line.
Has anyone here tried a two-state (price and velocity) version on M5 data? I'm curious whether it gave anything that a well-chosen EMA didn't.
What makes it interesting is that the weight it gives to each new observation depends on two settings: how noisy the measurements are assumed to be, and how much the underlying value is expected to change between bars. In the simplest one-dimensional version with fixed settings, the filter settles into behaving very much like an EMA with a particular smoothing constant. So in its basic form it is not as exotic as the name suggests.
The more interesting versions model velocity as well as level, so the filter tracks both where price is and how fast it is moving. That can reduce lag in trends, a bit like DEMA, but with the same risk of overshooting when the trend turns.
A few points worth considering before adding one to a scalping chart:
- The noise settings are effectively parameters, so a Kalman filter can be over-tuned to historical data just like any indicator.
- Many indicator versions online use fixed noise settings, which removes the adaptive part people are attracted to.
- Comparing it fairly means tuning a plain EMA to similar smoothness first, then seeing whether the Kalman version gives better turns or just a different-looking line.
Has anyone here tried a two-state (price and velocity) version on M5 data? I'm curious whether it gave anything that a well-chosen EMA didn't.