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 CarlTrading, 03-31-2026, 09:41 PM
          1 response
          79 views
          1 like
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          40 views
          0 likes
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          63 views
          2 likes
          Last Post CaptainJack  
          Started by CarlTrading, 03-30-2026, 11:51 AM
          0 responses
          63 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 03-30-2026, 11:48 AM
          0 responses
          54 views
          0 likes
          Last Post CarlTrading  
          Working...
          X