• 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 vasagoo, Today, 06:21 AM
      1 response
      16 views
      0 likes
      Last Post NinjaTrader_Kate  
      Started by newuser, Today, 08:37 AM
      1 response
      5 views
      0 likes
      Last Post NinjaTrader_Kate  
      Started by bc24fl, Today, 06:51 AM
      1 response
      4 views
      0 likes
      Last Post NinjaTrader_Jim  
      Started by U0000999, Yesterday, 05:17 AM
      1 response
      16 views
      0 likes
      Last Post NinjaTrader_Kate  
      Started by asmmbillah, Today, 05:03 AM
      6 responses
      34 views
      0 likes
      Last Post asmmbillah  
      Working...
      X