Using MS Access, I bulk send out requests for all the data I want at one time and then check ishistoryready. If not, I wait for the OnBarsChanged or OnBarsReceived to fire and then check ishistoryready. The example code I'm using is at the bottom of this post...
The problem I am having is that I request information for
BO H2004,D
BO K2004,D
BO Q2004,D
BO N2004,D
BO Z2004,D
but the OnBarsReceived event is only firing for Q and Z. When I exclude Q and Z from the list, no events fire.
Do you have any ideas what might be wrong? I was wondering if there was a licensing issue working here; however, I can pul up those earlier charts just fine in the esignal client.
Also, the esignal.RequestHistory method does return valid handles for the earlier contracts.
Thanks!
HistHandles(lngCurrentCommand) = esignal.RequestHistory(ESigSymbol, ESigDuration, IESignal.btBARS, NUM_ADDT_BARS_TO_REQUEST + lngNumBars, -1, -1)
If esignal.IsHistoryReady(HistHandles(i)) Then
ProcESigRst HistHandles(ioo)
End If
Loop
End Sub
Public Sub esignal_OnBarsChanged(ByVal lHandle As Long)
If esignal.IsHistoryReady(lHandle) Then ProcESigRst lHandle
End Sub
Public Sub esignal_OnBarsReceived(ByVal lHandle As Long)
If esignal.IsHistoryReady(lHandle) Then ProcESigRst lHandle
End Sub
The problem I am having is that I request information for
BO H2004,D
BO K2004,D
BO Q2004,D
BO N2004,D
BO Z2004,D
but the OnBarsReceived event is only firing for Q and Z. When I exclude Q and Z from the list, no events fire.
Do you have any ideas what might be wrong? I was wondering if there was a licensing issue working here; however, I can pul up those earlier charts just fine in the esignal client.
Also, the esignal.RequestHistory method does return valid handles for the earlier contracts.
Thanks!
HistHandles(lngCurrentCommand) = esignal.RequestHistory(ESigSymbol, ESigDuration, IESignal.btBARS, NUM_ADDT_BARS_TO_REQUEST + lngNumBars, -1, -1)
If esignal.IsHistoryReady(HistHandles(i)) Then
ProcESigRst HistHandles(ioo)
End If
Loop
End Sub
Public Sub esignal_OnBarsChanged(ByVal lHandle As Long)
If esignal.IsHistoryReady(lHandle) Then ProcESigRst lHandle
End Sub
Public Sub esignal_OnBarsReceived(ByVal lHandle As Long)
If esignal.IsHistoryReady(lHandle) Then ProcESigRst lHandle
End Sub
Comment