Announcement

Collapse
No announcement yet.

minimum price variation

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • minimum price variation

    Hi,

    Does anyone know a clean technique in converting a number to conform the minimum price variation of a symbol.

    For example, in ES (Emini S&P) if myprice=1480.11, and the minimum price variation is 0.25, then myprice would have to be converted to either 1480.00 or 1480.25. Is there an easy to do the conversion?

    Thank you in advance.

    W.

  • #2
    William
    See the solution provided by Steve Hare in this post
    Alex

    Comment


    • #3
      Thanks, Alex.

      FYI. I think the Rnd.Up and Rnd.Down are reversed.

      W.

      Comment

      Working...
      X