Is there a way to get the tick size of the underlying (i.e., 0.25 for ES #F) without creating a series (too inefficient and I can't "grab" the value for use in a script).
I found the attached efs that correctly plots the tick size to the output window but it creates a series using min() so it produces many other price values.
In effect I haven't been able to use the tick size by any means I tried (like .getValue(0) or getValue(-!)).
Thanks in advance for any help.
Wayne
I found the attached efs that correctly plots the tick size to the output window but it creates a series using min() so it produces many other price values.
In effect I haven't been able to use the tick size by any means I tried (like .getValue(0) or getValue(-!)).
Thanks in advance for any help.
Wayne
PHP Code:
var nBarCounter = 0;
var z = null;
function main(){
if ( getBarState() == BARSTATE_NEWBAR ) {
nBarCounter ++;
}
if (getCurrentBarIndex()<-3 && nBarCounter>3) z=Min_Move();
return z+" ";
}
var mMove=1000;
function Min_Move(){
var cDelta = Math.abs(close(0)-close(-1));
if (cDelta) mMove = Math.min(cDelta,mMove);
// debugPrintln(mMove);
return mMove
}
Comment