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 NullPointStrategies, 03-13-2026, 05:17 AM
          0 responses
          82 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          150 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          79 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          52 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          59 views
          0 likes
          Last Post TheRealMorford  
          Working...
          X