Hi,
When using a minute based bar chart for stocks, the
getBarState() flag is set to BARSTATE_NEWBAR when a new bar comes in. My question is:
Does the barstate continue to get set to BARSTATE_NEWBAR for every tick in the bar? That seems to be happening to me and I only want the code to execute on the first tick of a bar. If yes can one code around this? Thanks for any help you may be able to provide.
Regards
Jane
When using a minute based bar chart for stocks, the
getBarState() flag is set to BARSTATE_NEWBAR when a new bar comes in. My question is:
Does the barstate continue to get set to BARSTATE_NEWBAR for every tick in the bar? That seems to be happening to me and I only want the code to execute on the first tick of a bar. If yes can one code around this? Thanks for any help you may be able to provide.
Regards
Jane
Comment