After I installed Esignal v.10.0, IsHistoryReady gets value true immediately after function RequestHistory is called even if the data is not ready. In the example below, NumOfBars always shows 0 after upgrade but worked fine before. Is this a fault or am I doing something wrong?
HistHandle = eSignal.RequestHistory("QQQQ", "1", btBARS, 1000, -1, -1)
If HistHandle > 0 Then
For VäntLoop = 1 To 1800
If eSignal.IsHistoryReady(HistHandle) Then
NumOfBars = eSignal.GetNumBars(HistHandle)
msgbox NumOfBars
Exit For
End If
Sleep 100
Next
End If
eSignal.ReleaseHistory HistHandle
HistHandle = eSignal.RequestHistory("QQQQ", "1", btBARS, 1000, -1, -1)
If HistHandle > 0 Then
For VäntLoop = 1 To 1800
If eSignal.IsHistoryReady(HistHandle) Then
NumOfBars = eSignal.GetNumBars(HistHandle)
msgbox NumOfBars
Exit For
End If
Sleep 100
Next
End If
eSignal.ReleaseHistory HistHandle
Comment