I'm drawing a regression channel on a price series using Draw.RegressionChannel(), but then getting the data for the same from RegressionChannel() in order to do calculations. It occurred to me when I added this to a chart with several hundred bars, that it takes quite a long time to calculate and draw the channels. By using the 2 different calls, I am likely doubling the amount of work as the calculation is likely being done twice.
Is there a way for me to use draw.regressionchannel() and simply retrieve the last values for the upper and lower channel, like I could with the series from RegressionChannel() ?
Thanks.
Comment