A set of built-in variables in the barstate namespace allow your script to detect different properties of the bar on which the script is currently executing. One of them is barstate.isconfirmed. barstate.isconfirmed is true on all historical bars and on the last (closing) update of a realtime bar.
It can be useful to avoid repainting by requiring the realtime bar to be closed before a condition can become true.
What is the AmiBroker AFL alternative for such variable?
I have gone through the entire function library of AmiBroker AFL but found nothing. Regards.