This is probably a softball question (at least I hope it is), but when you call "CurrentBar", the current bars int value is returned (i.e., first bar on chart is 0 and next is 1 and next is 2 etc).
If I wanted to call the previous bar number, is "CurrentBar[1]" the correct way to do that?
For instance, I am trying to record the previous bar into a list. Therefore, would my code be something like this:
listSignalBar.Add(CurrentBar[1]);
or something like this:
listSignalBar.Add(CurrentBar - 1);
Thanks,
Aventeren
Comment