Would anyone in this forum be willing to create a Zip file for this task?
Linear Regression ATR Bands Formula
In summary the indicator is:
ATR Band High = Linear Regression of low price + a multiple of Average True Range
ATR Band Low = Linear Regression of high price - a multiple of Average True Range
ATR Mid Price = Linear Regression of close prices
Formula from another platform:
indicator Linear_Regression_ATR_Bands ;
input period = 20, Width = 1.764 ;
draw line_mid("Mid ATR"), line_upper("Upper ATR"), line_lower("Lower ATR");
vars tmp(series);
begin
line_mid := linreg(close,period) ;
tmp := Width * SMA(truerange(), 55) ;
line_upper := linreg(Low,period) + tmp;
line_lower := linreg(High,period) - tmp;
end
Many Thanks, for your help.

Comment