Linear Regression Channel Indicator and Bands?
Author: business1000@gmail.com
Creation Date: 2/15/2017 3:54 PM
profile picture

business1000@gmail.com

#1
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

Eugene

#2
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:

CODE:
Please log in to see this code.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).