Is it possible to fire OnBar() event every 2.5 second
Created at 12 Sep 2024, 02:24
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.
PanagiotisCharalampous
12 Sep 2024, 09:25
Hi there,
No you cannot. However you can modify your timer and accommodate multiple purposes.
Best regards,
Panagiotis
@PanagiotisCharalampous