PureBytes Links
Trading Reference Links
|
To List;
Can someone help with the code that accomplishes the following rounding:
For Long:
A) If price is above the .5 level go to next .5 and add .1 Thus, if
price is 920.75 new price should be 921.60.
B) If price is below the .5 level go to next .5 and add .1 Thus, if
price is 920.25 new price should be 920.60
Thanks in advance for any help.
Barry Silberman
|