Is it possible to fire OnBar() event every 2.5 second

Created at 12 Sep 2024, 02:24
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

Is it possible to fire OnBar() event every 2.5 second
12 Sep 2024, 02:24


I can see the smallest granularity for a time bar in cTrader is 1 minute.

Can I get OnBar() event 2.5 second?

I know there is OnTimer() event which I can set to fire every 2.5 second but I already used it for another purpose.

 


@ys2310
Replies

firemyst
17 Sep 2024, 00:55 ( Updated at: 17 Sep 2024, 05:17 )

Yes. You can have multiple timers.

https://ctrader.com/forum/cbot-support/24285/

 


@firemyst