Announcement

Collapse
No announcement yet.

Rounding Pivot Point

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

  • Rounding Pivot Point

    I downloaded the daily pivot points.efs available on the board. The question I have is it possible to round the pivots?? For example, Support1 for the ES today is 1284.08, and this is not a tick value since they move in .25 values. So i guess im asking is it possible to tell the efs to round that support one to 1284 even??

    Thanks!

  • #2
    I didn't look at that particular efs but here is one way to round up or down:

    Round down = 1284.08 - 1284.08 mod .25

    Round up = Round down + .25

    You'll have to look up the modulo function; it's probably in the math library.

    There may even be rounding functions that take parameters but I don't know of any. Also you don't want to hard code the increment (.25), but pass it in as a parameter.

    Comment


    • #3
      Rounding solution

      go down to Dec 7 on this link.
      stevehare2003 wrote a nice utility for this

      Comment

      Working...
      X