.
Announcement
Collapse
No announcement yet.
Tick counter per bar?
Collapse
This topic is closed.
X
X
-
bc
In an EFS declare a global variable (ie outside of function main) and set it to 1 as follows
PHP Code:var vCounter = 1;
PHP Code:vCounter++;
if(getBarState()==BARSTATE_NEWBAR){
vCounter=1;
}
drawTextRelative(1,1,vCounter, Color.blue, null, Text.RELATIVETOTOP, "Arial", 12, "counter");
Alex
Comment