Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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


                    #10
                    Hello,

                    It's been 5 years, and Instrument.MasterInstrument.RoundUpToTickSize(), which makes much sense is still MIA...

                    Any updates?

                    Comment


                      #11
                      Hello Shai Samuel,

                      SFT-2633 has not been implemented at this time.

                      Please note, we receive many requests and cannot reasonably implement all requested features or changes. Interest is tracked internally and if enough interest is tracked, it would be weighed against how feasible it would be to make those changes to consider implementing, so we cannot offer an ETA or promise of fulfillment.

                      When new features are implemented, they will be listed in the Release Notes page of the Help Guide. The ID number may be different than the internal feature request tracking ID, but the description of the feature will let you know if that feature has been implemented.

                      Release Notes - https://ninjatrader.com/support/help...ease_notes.htm
                      Chelsea B.NinjaTrader Customer Service

                      Comment


                        #12
                        As mentioned above, a reasonable workaround is Instrument.MasterInstrument.RoundDownToTickSize() + Instrument.MasterInstrument.TickSize

                        Thanks.
                        Multi-Dimensional Managed Trading
                        jeronymite
                        NinjaTrader Ecosystem Vendor - Mizpah Software

                        Comment

                        Latest Posts

                        Collapse

                        Topics Statistics Last Post
                        Started by rtwave, 04-12-2024, 09:30 AM
                        2 responses
                        20 views
                        0 likes
                        Last Post rtwave
                        by rtwave
                         
                        Started by tsantospinto, 04-12-2024, 07:04 PM
                        5 responses
                        68 views
                        0 likes
                        Last Post tsantospinto  
                        Started by cre8able, Today, 03:20 PM
                        0 responses
                        7 views
                        0 likes
                        Last Post cre8able  
                        Started by Fran888, 02-16-2024, 10:48 AM
                        3 responses
                        49 views
                        0 likes
                        Last Post Sam2515
                        by Sam2515
                         
                        Started by martin70, 03-24-2023, 04:58 AM
                        15 responses
                        115 views
                        0 likes
                        Last Post NinjaTrader_Jesse  
                        Working...
                        X