OPEN-SOURCE SCRIPT

Positive Channel Breakdown Scanner

116
To scan for stocks breaking down from a positive (ascending) channel, the most effective approach in Pine Script is to use Linear Regression. This allows the script to mathematically calculate the "best fit" trendline for a specific lookback period and then identify when the price closes below the lower deviation band.

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.