Announcement

Collapse
No announcement yet.

API TIme & Sales problem!!

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

  • API TIme & Sales problem!!

    Hi there, i have a problem with calling the get_GetTimeSalesBar() function in the event handler function below:

    ---------------------------------------------------------------
    private void esignal_OnTimeSalesChanged(int lHandle)
    {
    IESignal.TimeSalesData tsd;
    int numOfRTBars = 0, numOfBars = 0, diff = 0;

    numOfRTBars = esignal.get_GetNumTimeSalesRtBars(lHandle);
    numOfBars = esignal.get_GetNumTimeSalesBars(lHandle);
    diff = (numOfRTBars - currentRow) * -1;

    for( int i = diff; i <= 0; i++)
    {
    tsd = esignal.get_GetTimeSalesBar(lHandle,i);
    .....
    }
    ...
    }
    ---------------------------------------------------------------
    It seems that the function never returns the tsd object, in fact when debugging it never returns at all so that no code past this function call is ever executed.

    This behaviour is the same in c# and VB.
    running Win 2000 SP4
    eSignal 7.5 (build 628)

    The same code is working on Win XP.

    Regards
    .....
    (help)
    Last edited by rajrahman; 01-07-2004, 04:42 AM.

  • #2
    I'm not immediately sure why you are having this problem. I use the GetTimeSalesBar functional constantly and have not had a problem. I currently run it in a C++ app, but I shouldn't think that would matter. If you want me to try and run your code, you could create the smallest source code project that still displays the error and email it to me to try.

    Comment

    Working...
    X