Need coding help on arrow popup

My indicator draws arrow only when the candle is closed(i.e after confirmation). Can anyone help me to draw arrow on the new bar instead closed bar. Please advise
Udhaya Kumar:
My indicator draws arrow only when the candle is closed(i.e after confirmation). Can anyone help me to draw arrow on the new bar instead closed bar. Please advise

Hello, you need a function to implement to test if it is a new bar or not. You can use datetime property

Marius Ovidiu Sunzuiana:

Hello, you need a function to implement to test if it is a new bar or not. You can use datetime property

Thank you i will check that