Hi, I’m new to this community and impressed with the knowledge base. I want to scan for prices that have fallen below the Linear Regression Trendline while it is trending up and add them to a watchlist. To that end I have composed the following script for a scan. It is very inaccurate. Hope someone can guide me to make it better.
LinearRegTrendline() > LinearRegTrendline()[10]
and
close[1] < LinearRegTrendline()
LinearRegTrendline() > LinearRegTrendline()[10]
and
close[1] < LinearRegTrendline()