Hi,
using the demo file (vbsample) for a spot of 'while it's quiet testing' I've been trying to collect info on ticks, one example using
lHistoryHandle = esignal.RequestHistory(sSymbol, "10T", btDAYS, 2, -1, -1)
I then use the supplied:-
If esignal.IsHistoryReady(lHistoryHandle) = True Then
FillHistory
End If
and have slightly modified the formatbardata function to add in
sRet = sRet + ", " + Str$(item.dTickAsk)
sRet = sRet + ", " + Str$(item.dTickBid)
sRet = sRet + ", " + Str$(item.dTickTrade)
(item being a bardata structure if you recall from the demo file)
to the existing bar data info. I don't get any tick info at all, I can get 1 minute bars etc but none of the returned bars have anything except zeroes for tickask, tickbid or ticktrade. Testing the bardata.bfFlags doesn't return a value of bfBIDASK or bfTRADE for any of the data retrieved.
I'm obviously doing something really simple and wrong, the original version of formatbardata includes a comment line of
' this is capapble of doing raw ticks, just not formatting the data out.
- which would suggest there's some problem with this simple approach, but I can't see any alternative means of grabbing the data for ticks. Anybody spot my obvious mistake?
Dave
using the demo file (vbsample) for a spot of 'while it's quiet testing' I've been trying to collect info on ticks, one example using
lHistoryHandle = esignal.RequestHistory(sSymbol, "10T", btDAYS, 2, -1, -1)
I then use the supplied:-
If esignal.IsHistoryReady(lHistoryHandle) = True Then
FillHistory
End If
and have slightly modified the formatbardata function to add in
sRet = sRet + ", " + Str$(item.dTickAsk)
sRet = sRet + ", " + Str$(item.dTickBid)
sRet = sRet + ", " + Str$(item.dTickTrade)
(item being a bardata structure if you recall from the demo file)
to the existing bar data info. I don't get any tick info at all, I can get 1 minute bars etc but none of the returned bars have anything except zeroes for tickask, tickbid or ticktrade. Testing the bardata.bfFlags doesn't return a value of bfBIDASK or bfTRADE for any of the data retrieved.
I'm obviously doing something really simple and wrong, the original version of formatbardata includes a comment line of
' this is capapble of doing raw ticks, just not formatting the data out.
- which would suggest there's some problem with this simple approach, but I can't see any alternative means of grabbing the data for ticks. Anybody spot my obvious mistake?
Dave
Comment