I am viewing a 5 minute chart and want to process some special code when a new 1 minute bar is created. Is there a way or feature to accomplish this. Ideally the code would look like this...
if (getBarState(inv(1)) == BARSTATE_NEWBAR) {
... do something ...
}
if (getBarState(inv(1)) == BARSTATE_NEWBAR) {
... do something ...
}
Comment