Hi,
I have a question about storing the CurrentBarIndex and use it in the future.
Is this possible?
Typical case is when a condition is detected now (say, a pivot) and I want to refer to this bar info/data later, but don't know when and I don't know which data/info I will use (close, ADX, MACD, or ???).
I assume that the Index of that bar changes as new bars come in (I am talking about real time situation not after hours accademic testing, when indexes are fixed).
Also, updating Bar Index on NEW_BAR is not a good solution as I can have a number of such bars.
Anyone can help? Greatly appreciated.
Thanks,
Mihai
I have a question about storing the CurrentBarIndex and use it in the future.
Is this possible?
Typical case is when a condition is detected now (say, a pivot) and I want to refer to this bar info/data later, but don't know when and I don't know which data/info I will use (close, ADX, MACD, or ???).
I assume that the Index of that bar changes as new bars come in (I am talking about real time situation not after hours accademic testing, when indexes are fixed).
Also, updating Bar Index on NEW_BAR is not a good solution as I can have a number of such bars.
Anyone can help? Greatly appreciated.
Thanks,
Mihai
Comment