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

RoundToTickSize()

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

    RoundToTickSize()

    Please write how the RoundToTickSize() method is implemented in the ninjatrader.

    #2
    Hello,

    Thank you for the post.

    You can find a sample of using RoundToTickSize in the following link: https://ninjatrader.com/support/help...oundToTickSize

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      hi Jesse
      i want to see a code RoundToTickSize().
      How the RoundToTickSize() method is implemented in the ninjatrader?, but NO how implemented this method in my code indicator

      Comment


        #4
        Hello Danila,

        That is an internal function so the code is not exposed to view.

        Please let me know if I may be of additional assistance.
        JesseNinjaTrader Customer Service

        Comment


          #5
          hi Jesse
          that's why I'm asking.
          am writing in Java outside the ninjatrader environment.
          but I use ninjatrader infrastructure. the code in my program needs to understand how you have it implemented.
          Because I get different data when building ashi bars.
          my version is as follows:

          public static double round(final double price) { return price % 1 == 0 ? price : Math.round(price / .25) * .25; }
          but I need to understand how ninjatrader is implemented. it can be a bottleneck when creating bars.

          Comment


            #6
            Hello Danila,

            Unfortunately I couldn't provide any insight on that topic as I don't know what that code may look like. Because that is an internal function we don't have access to the code to provide that information.


            Please let me know if I may be of additional assistance.
            JesseNinjaTrader Customer Service

            Comment


              #7
              hi, Jesse how close this post?

              Comment


                #8
                Hello Danila,

                Posts don't close, you just would stop replying if you don't need any further assistance.


                Please let me know if I may be of additional assistance.
                JesseNinjaTrader Customer Service

                Comment


                  #9
                  ok, Jesse. Thanks

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by trilliantrader, Today, 03:01 PM
                  0 responses
                  2 views
                  0 likes
                  Last Post trilliantrader  
                  Started by pechtri, 06-22-2023, 02:31 AM
                  9 responses
                  122 views
                  0 likes
                  Last Post NinjaTrader_ChelseaB  
                  Started by frankthearm, 04-18-2024, 09:08 AM
                  16 responses
                  67 views
                  0 likes
                  Last Post NinjaTrader_Clayton  
                  Started by habeebft, Today, 01:18 PM
                  1 response
                  7 views
                  0 likes
                  Last Post NinjaTrader_ChelseaB  
                  Started by benmarkal, Today, 12:52 PM
                  2 responses
                  19 views
                  0 likes
                  Last Post benmarkal  
                  Working...
                  X