PROTECTED SOURCE SCRIPT

LSMAs

16
- Least squares moving average with smoothed signal trying to see if it is downtrend or uptrend.
- Another least squares moving average with shorter period to determine peaks and bottoms.
- Adjusting the shorter period according to market condition is enough for optimisation.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.