Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Tick Precision

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

    Tick Precision

    In your Sample Strategy on Order Update you quote
    Code:
             We use (7 * (TickSize / 2)) to denote 4 ticks because of potential precision issues with doubles. Under certain
                conditions (4 * TickSize) could end up being 3.9999 instead of 4 if the TickSize was 1. Using our method of determining
                4 ticks helps cope with the precision issue if it does arise. */​
    Is it best practice to always do TickSize/2 for every time we calculate a stop, target or amendment on an order?

    thank you

    #2
    Hello, thanks for writing in. This would be the best way to calculate the value if you need to calculate a Tick value.

    Comment


      #3
      You can also use RoundToTickSize().
      eDanny
      NinjaTrader Ecosystem Vendor - Integrity Traders

      Comment


        #4
        Ok thank you. Does roundtoticksize() do this ?
        I assume it does but it would be nice to have it confirmed.

        Comment


          #5
          Hi Mindset, that is correct, using RoundToTickSize() will also work.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by kinfxhk, 07-14-2026, 09:39 AM
          0 responses
          18 views
          0 likes
          Last Post kinfxhk
          by kinfxhk
           
          Started by kinfxhk, 07-13-2026, 10:18 AM
          0 responses
          60 views
          0 likes
          Last Post kinfxhk
          by kinfxhk
           
          Started by kinfxhk, 07-13-2026, 09:50 AM
          0 responses
          43 views
          0 likes
          Last Post kinfxhk
          by kinfxhk
           
          Started by kinfxhk, 07-13-2026, 07:21 AM
          0 responses
          47 views
          0 likes
          Last Post kinfxhk
          by kinfxhk
           
          Started by kinfxhk, 07-11-2026, 02:11 AM
          0 responses
          38 views
          0 likes
          Last Post kinfxhk
          by kinfxhk
           
          Working...
          X