Check if newTick event is raised while processing the previous one.
Check if newTick event is raised while processing the previous one.
18 Feb 2019, 18:03
Is it possible to catch the new tick event when you're still processing the previous Tick
Or to cancel processing when an new tick is raised?
Replies
Shares4UsDevelopment
19 Feb 2019, 09:44
Hi Panagiotis.
You're up early!
Thats's good to hear. I like the flexibility of the platform.
Then the next question pops up.
How to do that or where can i find the docu about a new tick event in cTrader.
Best rgds,
Ton
@Shares4UsDevelopment
PanagiotisCharalampous
19 Feb 2019, 12:11
Hi Ton,
After checking further with the product team, my previous answer was not accurate. The way it works at the moment is that if a tick arrives before the execution of the previous OnTick() method is finished, then the tick will be ingored. Could you tell us more about what are you trying to achieve? Maybe we can provide an alternative solution.
Best Regards,
Panagiotis
@PanagiotisCharalampous
Shares4UsDevelopment
19 Feb 2019, 12:40
RE:
Hi Panagiotis.
Thanks for asking the dev giys.
I thougth i was missing ticks sometimes.
The only thing i want to achieve is not missing a tick.
Maybe i should set my 'heavy work' in a seperate thread.
Maybe a 'onNewTick" event would be nice in a future release.
Best rgds,
Ton
@Shares4UsDevelopment
PanagiotisCharalampous
19 Feb 2019, 12:44
Hi Ton,
I would propose that as well. If you have heavy work going on in OnTick(), maybe you can consider a new thread.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
19 Feb 2019, 09:37
Hi Ton,
In principle it is possible. However you will need to develop the relevant checks in your OnTick() function to check for this occurence and the relevant actions to cancel you processing.
Best Regards,
Panagiotis
@PanagiotisCharalampous