Refresh bar just before new bar start
Created at 19 Jan 2023, 16:41
WM
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.
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