• 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 Debayan Sen, Today, 01:50 AM
      0 responses
      1 view
      0 likes
      Last Post Debayan Sen  
      Started by eleven, Yesterday, 10:03 PM
      1 response
      9 views
      0 likes
      Last Post eleven
      by eleven
       
      Started by tvbecv, Yesterday, 09:23 PM
      0 responses
      8 views
      0 likes
      Last Post tvbecv
      by tvbecv
       
      Started by reedstickets, Yesterday, 08:07 PM
      0 responses
      8 views
      0 likes
      Last Post reedstickets  
      Started by timko, Yesterday, 07:39 PM
      0 responses
      5 views
      0 likes
      Last Post timko
      by timko
       
      Working...
      X