I am writing a routine that will cycle through all the bars and store information about certain bars. I've written this in other trading packages, and I simply store the bar index of these bars and then access them when I need to. In EFS it seems you can't do this, but rather you have to access that bar as an offset.
Does anyone have a suggestion on how to best approach this?
Should I just write a routine that will call getCurrentBarIndex() and then store that value for these bars that I need to store. then when I need to access that info, simple call a routine that will subtract the currentbarindex minus that stored value. This would then give me the offset I need and then access that bar.
Seems a funny way to do it, but only thing I can think of at this late hour.
thoughts?
Todd
Does anyone have a suggestion on how to best approach this?
Should I just write a routine that will call getCurrentBarIndex() and then store that value for these bars that I need to store. then when I need to access that info, simple call a routine that will subtract the currentbarindex minus that stored value. This would then give me the offset I need and then access that bar.
Seems a funny way to do it, but only thing I can think of at this late hour.
thoughts?
Todd
Comment