Adding the indicator code in Initialize with RegressionChannel IndRC; defined just after the class declartion:
IndRC = RegressionChannel(25,1);
Code to read the indicator in OnBarUpdate
if(Close[0] > IndRC.Middle[0]) do something
I'm baffled. I've done this lots of times and when I try other indicators they all work, but the one I want; RegressionChannel, won't report anything but 0.
Thanks for the help.
Comment