pbohm
You are most welcome.
FWIW there a couple of changes I would suggest you apply to that script. In line 15 replace if(getBarState()==BARSTATE_NEWBAR){
with if(getBarStateSymbol("$tick")==BARSTATE_NEWBAR){
and in line 29 replace var c = close(0, "$tick");
with var c = close(0, sym("$tick"));
These changes use the new EFS2 functions and will ensure the correct syncronization between the charted symbol and $TICK.
Alex
Comment