OPEN-SOURCE SCRIPT

Linear Regression Crossover {DCAquant}

139
I couldn't properly calculate a polynomial regression in Pine Script. So for a workaround, I created a linear regression on 2 different lookback periods and marked the crossovers.

Trend City.

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.