• 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

Request for RoundUpToTickSize

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

    Request for RoundUpToTickSize

    You have

    Instrument.MasterInstrument.RoundDownToTickSize which rounds down.

    Instrument.MasterInstrument.RoundToTickSize which is incorrectly documented as rounding up, when in fact it rounds to the nearest.

    But you're missing RoundUpToTickSize.

    I'd like to request this missing method.

    Thanks

    #2
    Originally posted by bubblegum View Post
    You have

    Instrument.MasterInstrument.RoundDownToTickSize which rounds down.

    Instrument.MasterInstrument.RoundToTickSize which is incorrectly documented as rounding up, when in fact it rounds to the nearest.

    But you're missing RoundUpToTickSize.

    I'd like to request this missing method.

    Thanks
    When I need to do this, I round down, then I add a tick?
    RJay
    NinjaTrader Ecosystem Vendor - Innovative Trading Solutions

    Comment


      #3
      Hello bubblegum,

      I will submit a feature request on your behalf for the NinjaTrader Development to consider adding an Instrument.MasterInstrument.RoundUpToTickSize() method. Once I have a tracking ID for your request I will forward this to you.

      Regarding the behavior of Instrument.MasterInstrument.RoundToTickSize(), I will test this and if the behavior is not the expected behavior, I will request that the documentation be changed.

      I appreciate your patience.
      Chelsea B.NinjaTrader Customer Service

      Comment


        #4
        Hello bubblegum,

        I've received an ID for your request.

        A quick note, Instrument.MasterInstrument.RoundToTickSize() will round values equal to or less than 5 down and will round values greater than 5 up.

        (5.00000001 would be rounded up)

        This means the midpoint of 5 is used for the rounding.


        Your request for a Instrument.MasterInstrument.RoundUpToTickSize() method is being tracked with ID# SFT-2633.

        Please note it is up to the NinjaTrader Development to decide if and when a request will be implemented.

        We appreciate you taking the time to make this feature request. Please let me know of any other suggestions or requests you have for NinjaTrader.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_ChelseaB View Post
          Hello bubblegum,

          I've received an ID for your request.

          A quick note, Instrument.MasterInstrument.RoundToTickSize() will round values equal to or less than 5 down and will round values greater than 5 up.

          (5.00000001 would be rounded up)

          This means the midpoint of 5 is used for the rounding.


          Your request for a Instrument.MasterInstrument.RoundUpToTickSize() method is being tracked with ID# SFT-2633.

          Please note it is up to the NinjaTrader Development to decide if and when a request will be implemented.

          We appreciate you taking the time to make this feature request. Please let me know of any other suggestions or requests you have for NinjaTrader.
          That seems to make no sense. Did you mean "0.5", rather than "5"?

          Comment


            #6
            Hi koganam,

            I should have detailed that a bit more by specifying the tick size.

            If the tick size was 1.0, then 5.00000001 would round to 6.0.
            If the tick size was 0.1, then 5.00000001 would round to 5.0.

            If the tick size was 0.1, then 1.05 would round to 1.0.
            While 1.051 would round to 1.1.
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              Originally posted by NinjaTrader_ChelseaB View Post
              Hi koganam,

              If the tick size was 1.0, then 5.00000001 would round to 6.0.
              If the tick size was 0.1, then 5.00000001 would round to 5.0.
              This make no sense.
              If tick size = 1.0, 5.000000001 should round down since the 5.000000001 = 5 ticks + .000000001.

              If tick size = 0.1, 5.000000001 should round down since the 5.000000001 = 5 points + .000000001.

              Rounding to tick size should always round up at the 1/2 tick.

              If tick size = 0.1, 5.100000001 should round down since the 5.100000001 = 5 points + 1 tick + .000000001, the .000000001 being less that 1/2 tick.

              If tick size = 0.1, 5.150000001 should round up since the 5.150000001 = 5 points + 1 tick + .050000001, the .050000001 being more than 1/2 tick.

              How would this have changed ?
              eDanny
              NinjaTrader Ecosystem Vendor - Integrity Traders

              Comment


                #8
                Hello eDanny,

                You are right..

                With the tick size as 1.0, 5.0000001 would round down. 5.50000001 would round up.

                I've muddled this thread up pretty bad..

                Thanks for jumping in there to clarify so anyone reading this thread isn't hopelessly confused.
                Chelsea B.NinjaTrader Customer Service

                Comment


                  #9
                  Heh heh, no problem bud.
                  eDanny
                  NinjaTrader Ecosystem Vendor - Integrity Traders

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by sohailashraf, Yesterday, 10:18 PM
                  0 responses
                  4 views
                  0 likes
                  Last Post sohailashraf  
                  Started by jjnc2006, Yesterday, 07:36 PM
                  0 responses
                  11 views
                  0 likes
                  Last Post jjnc2006  
                  Started by futurenick, Yesterday, 06:26 AM
                  1 response
                  12 views
                  0 likes
                  Last Post nkhoi
                  by nkhoi
                   
                  Started by NinjaCustomer, Yesterday, 12:29 PM
                  2 responses
                  10 views
                  0 likes
                  Last Post NinjaCustomer  
                  Started by Steve L, Yesterday, 11:32 AM
                  0 responses
                  9 views
                  0 likes
                  Last Post Steve L
                  by Steve L
                   
                  Working...
                  X