Just curious how data is threaded. For example, say we have a function that does this:
tsbar1 = esignal.GetTimeSalesBar(handle, 0);
tsbar2 = esignal.GetTimeSalesBar(handle, 0);
Is it possible that tsbar1 and tsbar2 contain different data? If the esignal app receives a bar inbetween the two calls, what happens? I have to imagine that the esignal app is running its data collection thread separately from our ActiveX app, can't imagine it otherwise really. So how do we know this problem can't occur?
I guess the real issue is how data still coming in after calls to GetNumTimeSalesRtBars and GetNumTimeSalesBars and calls to GetTimeSalesBar is handled, but I'm just using the above example to illustrate. I can envision "skipping" over some bars on a very fast mover like ES.
Maybe I'm being paranoid, but I am still curious.
tsbar1 = esignal.GetTimeSalesBar(handle, 0);
tsbar2 = esignal.GetTimeSalesBar(handle, 0);
Is it possible that tsbar1 and tsbar2 contain different data? If the esignal app receives a bar inbetween the two calls, what happens? I have to imagine that the esignal app is running its data collection thread separately from our ActiveX app, can't imagine it otherwise really. So how do we know this problem can't occur?
I guess the real issue is how data still coming in after calls to GetNumTimeSalesRtBars and GetNumTimeSalesBars and calls to GetTimeSalesBar is handled, but I'm just using the above example to illustrate. I can envision "skipping" over some bars on a very fast mover like ES.
Maybe I'm being paranoid, but I am still curious.
Comment