Announcement

Collapse
No announcement yet.

Hooks1.RequestHistory("MRVC",'D",btDAYS,30,-1 ,-1);

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

  • Hooks1.RequestHistory("MRVC",'D",btDAYS,30,-1 ,-1);

    Hi,

    I have been trying to use the API to get history for a stock
    I am calling
    Hooks1.RequestHistory("MSFT",'D",btDAYS,30,-1 ,-1);

    and it seems to return 30 bars but all except the first are zero

    25.88,25.92,25.73,25.74,64489920
    0,0,0,0,0
    0,0,0,0,0
    0,0,0,0,0
    0,0,0,0,0
    0,0,0,0,0
    0,0,0,0,0
    0,0,0,0,0
    ...

    I do set the events and they are being called.

    I have tried the same call from both
    .Net
    delphi

    and I am getting the same results.

    Any ideas?
    is there something that I did not activate with the subscription? (I did purchased the API)
    is there something has changed in the API and I just don't know where to find the new docs?

    thanks
    Avishai

  • #2
    My guess is you are calling GetBar using positive indices (e.g. GetBar(handle, 0), GetBar(handle, 1), GetBar(handle, 2)). If that is the case, use negative numbers as eSignal uses them to denote history (e.g. GetBar(handle, 0), GetBar(handle, -1), GetBar(handle, -2)).

    Cheers... George

    Comment


    • #3
      thanks

      years programming, 3 days of tests, and of course, it is -1 and not 1

      you are right it does work

      cheers
      avishai

      Comment

      Working...
      X