Announcement

Collapse
No announcement yet.

BarsChanged Not working

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

  • BarsChanged Not working

    Hi,

    I use Delphi 7 to call the eSignal Desktop API under XP SP3.
    eSignal version: 10.5.1678.1175

    After the following RequestHistory:
    TmpSigHandle := MainFm.eSignal.RequestHistory['IBM','2',btBars,20,-1,-1] , BarsReceived fires correctly.

    However, although the market is active and TmpSigHandle is
    not released,
    BarsChanged never fires and BarsReceived never fires again.

    TIA,

    fald

  • #2
    It is my understanding that events will not fire if the history is already available in the local cache.

    Maybe you should use IsHistoryReady to check?

    Read the section called "Making a History Request" in eSig's MS Word document entitled "Developing with eSignal -- Desktop API Edition."

    You can find that document here, listed as eSignal Developer Reference.doc:



    George

    Comment


    • #3
      Just re-read the section "Making a History Request" to refresh my memory, and I believe the information in that section will address your problem.

      Seems that BarsReceived will only fire on the initial history request, and BarsChanged will only fire on subsequent history requests, but neither one will fire if the history is already available in the local cache.

      That's the way I read it, anyway. Take a look and see what you think.

      George

      Comment


      • #4
        Thanks George, I'll try that and let you know.

        Comment

        Working...
        X