Linear Regression Band - Second Standard Deviation

Hi,

I would like to request the ability to add a second standard deviation level to the Linear Regression Band tool.

I have a workaround by laying one LRBAND over another to get 1 & 2 standard deviations but I would be much easier to have this in one tool particularly when moving the LRBAND around a chart.

Thanks

Tim

@ Tim,

I think you should try the Trailing linear regression tool. This provides the STD. If you want 2 levels, create 2 of them and set the second one at 4 for std dev.

@Optuma,

Is it possible to script the bands of the trailing linear reg using LRSLOPE()?
For instance, I would like to find stocks ONLY inside the regression channel. Possible?

Thanks
Marc

I don’t understand why this is not working:

slope= LRSLOPE(BARS=100);
STD1=STD(MULT=2.00, BARS=100, TYPE=Average Plus Deviation, );
close() > STD1(slope)

It’s because STD1 is a variable, not a function. Try this, but the condition will always be true because the STD value will be small.

slope=LRSLOPE(BARS=100); 
close() > STD(slope, BARS=100, MULT=2.00, TYPE=Average Plus Deviation)

I’m not sure what you are trying to achieve, so please post on the scripting forum. We’ll reply there if it’s easy, if not then we can arrange a consultation.