Announcement

Collapse
No announcement yet.

Changing tick index base

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Changing tick index base

    Using the ActiveX C++ Desktop API:

    It appears that the indexing base of ticks within histories can change at any time, even within the course of a call to the API itself, from within the ActiveX message loop. This makes the API essentially unusable, since I can never deterministically know what tick I will receive when using GetGetTimeSalesBar().

    Any thoughts, anyone?

  • #2
    I have brought this up in the past as well. I personally really dislike arrays whose contents could slide around at any moment. For this reason I have requested (at least the option for) absolute bar indexes where zero is the oldest bar and you get the index of the newest bar with GetBarCount() - 1. Then you can do your loop and if new data is added during the loop, no problem.

    Comment

    Working...
    X