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 rdtdale, Yesterday, 01:02 PM
                  2 responses
                  15 views
                  0 likes
                  Last Post rdtdale
                  by rdtdale
                   
                  Started by TradeSaber, Today, 07:18 AM
                  0 responses
                  7 views
                  0 likes
                  Last Post TradeSaber  
                  Started by PaulMohn, Today, 05:00 AM
                  0 responses
                  9 views
                  0 likes
                  Last Post PaulMohn  
                  Started by ZenCortexAuCost, Today, 04:24 AM
                  0 responses
                  6 views
                  0 likes
                  Last Post ZenCortexAuCost  
                  Started by ZenCortexAuCost, Today, 04:22 AM
                  0 responses
                  3 views
                  0 likes
                  Last Post ZenCortexAuCost  
                  Working...
                  X