OPEN-SOURCE SCRIPT

Regression Channel Trend Detection

This is a regression channel that uses ichimoku to determine trend. The sensitivity is customizable. The centerline will change color according to the trend detected by ichimoku, and each line can act as support/resistance. The bands of the channel also change colors according to how far price is getting away from them. If you notice in this example, the lower band is turning orange when the price is getting too far away from it, suggesting that it may have risen too fast and too soon. This is still in testing so feel free to comment with any suggestions or fixes.
Ichimoku CloudLinear Regressionregression-trend-channel

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer