← All indicators and concepts

Least squares MA

A straight line fitted through the last n candles, read at the last one.

Instead of averaging, it fits the best straight line through the window and takes its end point. That makes it react to the direction of the move, not only to its level.

In TradeXtool

Gate: Least squares MA(25) is rising.

Watch out

A fitted line extends the recent slope. Right after a sharp turn it points the old way for a few candles.

No indicator predicts the market on its own. Build the rule, then test it on years of history with fees included. Try TradeXtool free for 14 days.