Arnaud Legoux Moving Average (ALMA) is one of the least lagging moving average by nature.
This script builds two ALMA line, Fast and Slow, and to check their crossing over to generate Buy / Sell Signals.
The drawback of Moving average crossing strategy is the too many crossing during a range trading, therefore, a third ALMA is used to show the trend of the ticker's price as a reference.
The default value for the Trend ALMA is 70 bars, it is due to the quick response of the Arnaud Legoux MA.
The Trend ALMA is plotted in dotted line for reference only, it does not affect the Buy/Sell signal generate from the crossing of the Fast and Slow ALMA lines.