OPEN-SOURCE SCRIPT
Updated

Linear regression slope as SAR

7 566
This model calculate the slope of the linear regression and give you the uptrend or the down trend of the slope

red line are downtrend and green line are up trend
using len 1 you can make it longer or shorter (I put it on length of 40 but you can change that to what ever you want )
Similar to SAR it can give us the trends of buy and sell only by doing it by the linear way

try longer length to see if it smooth the signal

4 hour graph
snapshot
Release Notes
add color zone for berish and bullish area as option

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.