OPEN-SOURCE SCRIPT

LSMA Crossover

This is a simple script designed to help filter out bad trades. LSMA is a trend king and by using the 21,200 and 1000 length lines traders can get a clear view of where price action is travelling. This indicator is the perfect companion to the LSMA Wave Rider indicator. Once a pullback is discovered (price action crosses under blue or white line) Traders can use LSMA Wave Rider to locate perfect entry point.
Least Squares Moving Average follows these rules:
When price crosses over it signals a bull trend.
When price crosses under it signals bear trend.
When price stays close or on the line sideways action is to be expected.
The direction of the line shows the direction of the trend.

snapshot
Here is an example of finding good trades. Price action pulls below white or blue line.

snapshot
Another example of what a pullback looks like.

snapshot
This example shows how to find trend using crossovers.

snapshot
Another example how trend can be found but by using line direction.

LSMA Wave Rider can be found here:
LSMA Wave Rider

backBOOMcrossoverfilterLeast Squares Moving Average (LSMA)Moving AveragespullpullbacktrendTrend Analysis

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


Also on:

Disclaimer