I am trying to return a .25 increment (to the nearest .25 tick price) on a Math.round function of another study. I know that the standard function rounds only to a .50 increment, as follows:
nShort = Math.round(nClose - nStudy);
I've tried to set the .25 throughout the formula to no avail.
Can anyone help with a seemingly simple fix?
Thanks much,
Jody
nShort = Math.round(nClose - nStudy);
I've tried to set the .25 throughout the formula to no avail.
Can anyone help with a seemingly simple fix?
Thanks much,
Jody
Comment