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 Mindset, 04-21-2026, 06:46 AM
          0 responses
          88 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          135 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          68 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by cmoran13, 04-16-2026, 01:02 PM
          0 responses
          119 views
          0 likes
          Last Post cmoran13  
          Started by PaulMohn, 04-10-2026, 11:11 AM
          0 responses
          69 views
          0 likes
          Last Post PaulMohn  
          Working...
          X