• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Round to Nearest Tick

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

    Round to Nearest Tick

    In using double math, I'll sometimes get a number I'd like to display but it is between actual Ticks. Is there a method I can use which will round to the nearest tick?

    #2
    imported post

    Please try
    Bars.Instrument.MasterInstrument.Round2TickSize(va lue)
    DierkNinjaTrader Customer Service

    Comment


      #3
      imported post

      Thanks,
      I almost could have guessed that!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by mtamaku, Today, 09:19 AM
      0 responses
      1 view
      0 likes
      Last Post mtamaku
      by mtamaku
       
      Started by traderMNQ, Today, 09:00 AM
      2 responses
      6 views
      0 likes
      Last Post traderMNQ  
      Started by jransom, Today, 09:08 AM
      0 responses
      2 views
      0 likes
      Last Post jransom
      by jransom
       
      Started by Irukandji, Today, 08:27 AM
      1 response
      15 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by brunoviveiros, Today, 08:18 AM
      0 responses
      5 views
      0 likes
      Last Post brunoviveiros  
      Working...
      X