No data feed with OnBar()

Created at 20 Feb 2023, 20:16
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!
YS

ys2310

Joined 03.12.2021

No data feed with OnBar()
20 Feb 2023, 20:16


Hi,

I'm checking if my minute OnBar() event is occuring at the right timing by doing 

Print(Server.Time);

From the log, I notice there are times when OnBar() event is not occuring.

For example, in the following screen shot, you can see the timestamp after 21/02/2023 00:59:01.171 

is 21/02/2023 01:02:02/693 where 01:00:00, 01:01:00 timestamp are missing.

Is this some kind of bug of cTrader or something? 

and How can we prevent this from happening?

Thank you very much

 


@ys2310
Replies

PanagiotisChar
21 Feb 2023, 09:13

Hi there,

OnBar is triggered then the next bar's tick arrives. If a certain bar received no ticks then the OnBar will not be triggered.

Aieden Technologies

Need help? Join us on Telegram

Need premium support? Trade with us

 


@PanagiotisChar