Thank you for your reply.
I'm not quite certain what you're trying to achieve here:
bM1Close = Closes[10][myBarsAgoValue];
bM2Close = Closes[10][myBarsAgoValue];
Closes[10][myBarsAgoValue] would give you the Close price of a 10th additional data series at a index equal to the value of myBarsAgo value. Is this intentional?
Also, CurrentBars[10] would give you the current bar number of the 10th dataseries. I am also unsure if this is intentional.
Please clarify if possible; I look forward to assisting you further.
Comment