Can OnTick() miss incoming ticks?

Created at 15 Aug 2014, 18:58
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
AlexanderRC's avatar

AlexanderRC

Joined 04.02.2014

Can OnTick() miss incoming ticks?
15 Aug 2014, 18:58


Is it possible that OnTick() handler in cBot misses some incoming tick if OnTick() still executes when the tick arrives? 

Also I have seen a situation that when viewing two identical 1-tick charts in two separate instances of cTrader, a tick was missing in one instance and present in another. Are there are kind of throttling in cServer when it sends (or does not send) ticks?


@AlexanderRC
Replies

Spotware
18 Aug 2014, 10:06

Is it possible that OnTick() handler in cBot misses some incoming tick if OnTick() still executes when the tick arrives? 

Our platform puts all incoming ticks to the queue. When we handle items from the queue we apply all collected ticks to MarketSeries, but invoke OnTick handler only for last tick. Therefore, OnTick handles only latest known ticks.

Also I have seen a situation that when viewing two identical 1-tick charts in two separate instances of cTrader, a tick was missing in one instance and present in another.

Tick chart shows all received ticks. Do you compare two instances of cTrader from the same broker?

Are there are kind of throttling in cServer when it sends (or does not send) ticks?

No, there is no throttling in cServer.


@Spotware

AlexanderRC
18 Aug 2014, 15:16

RE:

Spotware said:

Also I have seen a situation that when viewing two identical 1-tick charts in two separate instances of cTrader, a tick was missing in one instance and present in another.

Tick chart shows all received ticks. Do you compare two instances of cTrader from the same broker?

Yes, cTrader was from the same broker and both instances were usung the same account. But that was observed around half a year ago. Unfortunately, I do not have a screenshot.


@AlexanderRC

Spotware
18 Aug 2014, 16:14

RE: RE:

AlexanderRC said:

Spotware said:

Also I have seen a situation that when viewing two identical 1-tick charts in two separate instances of cTrader, a tick was missing in one instance and present in another.

Tick chart shows all received ticks. Do you compare two instances of cTrader from the same broker?

Yes, cTrader was from the same broker and both instances were usung the same account. But that was observed around half a year ago. Unfortunately, I do not have a screenshot.

Next time when you observe this problem please press Shift+Ctrl+Alt+T in both platforms. It will send us troubleshooting information.


@Spotware