Clarification on timing of OnBar events

Created at 09 Nov 2020, 12:52
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!
CT

ctid2032775

Joined 03.05.2020

Clarification on timing of OnBar events
09 Nov 2020, 12:52


Hi Panagiotis,

i am not 100% sure if this question was answered before as I didn't find a completely matching answer...

If a cBot is running on a M1 chart and processing of an OnBar event takes longer then one minute (let's say 5 minutes) - what happens with the bars opened in the meantime?

  • Are those events added to a queue and triggered later (i. e. delayed)?
  • Or is every OnBar event a separate thread?
  • Or are those bars just skipped and the next bar opened after the process was finished triggers the next OnBar event?
  • Or is it handled in a different way?

Many thanks and best regards,
Christian


@ctid2032775
Replies

PanagiotisCharalampous
09 Nov 2020, 14:10

Hi Christian,

If the previous OnBar event has not been processed yet, then the new one is ignored.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous