Refresh bar just before new bar start

Created at 19 Jan 2023, 16:41
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!
WM

wmclennan77

Joined 29.06.2021

Refresh bar just before new bar start
19 Jan 2023, 16:41


Hi,

I am looking for a solution to a problem I am having with an indicator, it needs to reload the chart basically 2 or 3 seconds before the new bar forms.

Is this in any way possible?

Thanks.


@wmclennan77
Replies

firemyst
25 Jan 2023, 06:21

Probably not, because there's no way to know when a new bar is going to start. A new bar forms on the first tick after the previous bar closes. It could take half a second, or 10 seconds (depending on the time of day and symbol) on when that next tick will come in to cause a new bar to open up.


@firemyst