PROTECTED SOURCE SCRIPT

LSMA ATR

5 389
This indicator combines the Linear Regression Moving Average (LSMA) with the Average True Range (ATR) to detect trend directions and potential reversals. The LSMA is used to determine the trend direction based on its slope, while the ATR, smoothed by a Simple Moving Average (SMA), provides dynamic bands around the LSMA.

Uptrend: Occurs when the LSMA slope is positive and the price is above the LSMA plus a multiple of the smoothed ATR.

Downtrend: Occurs when the LSMA slope is negative and the price is below the LSMA minus a multiple of the smoothed ATR.

Bar Colors: Bars are colored green for an uptrend and red for a downtrend.

The indicator also plots the upper and lower ATR bands around the LSMA to visually represent potential areas of price reversals or trend continuation.

免責聲明

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.