Announcement

Collapse
No announcement yet.

Missed Events

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

  • Missed Events

    When RequestHistory is launched consecutively, say, 100 times, is it posssible for events to have been fired but not received because Excel is busy with UI or other actions (say Calculate)?

    Suppose this is in some symbol loop for 100 symbols:
    nCookie = esignal.RequestHistory(sSymbol, sInterval, btDAYS, nDays, -1, -1)

    I remember the cookies in a collection while firing above. I expect events to occur 100 times and be received by:
    Public Sub esignal_OnBarsReceived(ByVal lHandle As Long)

    The handler gets the bars, does some calculations and frees the handle.

    Unfortunately, I do not seem to be receiving 100 events. What's happening?

    Bill

  • #2
    We do not recommend firing RequestHistory in a consecutive manner without any wait time in between. What you can do is to make history request one at a time. Basically, fire one request, wait for all the data to come back for that request and then fire another request.

    Comment

    Working...
    X