I'm not using setComputeOnClose, and need to do something for each tick based on the bar state. I'm using switch to check the bar state only once, then go to different processing steps, but base switch on values 1(BARSTATE_CURRENTBAR), 2(BARSTATE_ALLBARS) or 0(BARSTATE_NEWBAR). Is there any reason not to do this? It seems to work just fine and is a little faster for me.
Thanks.
Thanks.
Comment