Linear Regression Channel Indicator and Bands?
Creation Date: 2/15/2017 3:54 PM
profile picture

I am trying to create a strategy using regression channel but there is no 'Regression Channel' (Linear Regression Channel' indicator
Linear regression is used to calculate a best fit line for the price data. In addition an upper and lower band is added by calculating the standard deviation of prices from the regression line.
I need the regression channel indicator to allow me to have variables for number of bars(periods) and std deviation and also when I use the indicator in a strategy I need to be able to specify upper, lower, or mid line; or have 3 indicators: Regression Channel-Upper, Regression Channel-Lower, Regression Channel-Mid
Any help would be appreciated.
profile picture


Wealth-Lab has Linear Regression indicator which can be used to build the StdDev bands (or most other type of bands for that matter) around it. This simple example a start for your strategy:

Please log in to see this code.