Concept
MLMA
MLMA is a Trend concept. The Library holds 2 implementations, each one a working definition you can pull into Quant.
Machine Learning Moving Average. LuxAlgo
Top MLMA indicators
2 total
What is the MLMA?
MLMA stands for Machine Learning Moving Average: a smoothing line whose value comes from fitting a statistical learning model to recent prices instead of applying a fixed weighting scheme. Where an SMA weights every bar equally and a WMA fixes a linear ramp, an MLMA typically runs kernel regression over the lookback window, often with a radial basis function kernel, a construction closely related to Gaussian process regression, and plots the model's fitted estimate of the underlying value bar by bar. The output behaves like a flexible weighted average: smooth, locally adaptive, and able to bend with curvature that fixed-weight averages round off. Implementations commonly add bands derived from the model's uncertainty or residual dispersion.
Machine learning here means a fitted model, not foresight. The line is still a function of past prices, so it lags at turns like any smoother, and the flexibility cuts both ways: a model that bends easily can overfit the window it sees. The other engineering concern is repainting: kernel fits that weight a centered window revise their recent history as new bars arrive, so historical plots can flatter what was actually tradeable. Repaint-safe engineering restricts the fit to one-sided, causal windows and finalizes values on bar close.
How traders use it
- In the standard moving-average roles: slope or color for trend bias, price's side of the line for regime, and crossovers against a faster line for timing.
- As an adaptive envelope: the model's uncertainty bands frame how stretched price is from the fitted mean, supporting reversion and breakout reads that fixed-percentage envelopes handle crudely.
- As a smoothness upgrade in existing systems: swapping a fixed-weight average for a kernel-based one where the goal is less lag for a given smoothness, verified on closed-bar behavior.
Related concepts · Moving-average lineage
Concept family
Trend
100 concepts mapped · 88 in the Library
MLMA FAQ
Is a Machine Learning Moving Average really machine learning?
In the statistical sense, yes. Kernel regression and Gaussian process regression are standard nonparametric learning methods, and the line is a fitted model rather than a fixed formula. What it is not is predictive intelligence: it estimates the local mean of past prices, it does not learn where the market goes next, and it lags at turns like any average.
Does the MLMA repaint?
It depends on construction. A fit that weights bars on both sides of each point revises recent values as new data arrives, which repaints the plot and flatters backtests of its signals. Causal versions that use only bars up to the current one, evaluated on close, do not repaint. Check which type an implementation uses before trusting its historical signals.
Build MLMA your way.
Quant writes, tests, and refines it with you — then it runs on LuxAlgo charting or ports to TradingView.

