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

How is that...?

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

    How is that...?

    Why if I apply this statement:

    Math.Round(High[1],5);

    I do receive 4 decimals instead of 5?

    While in my charts I see the price like: 1,.3752'2

    I mean how to get the 5th decimal then? and.. It shouldnt show in the chart the real price? I mean 1,37522 Instead of that strange 5th decimal?

    Belikewater

    #2
    Hello BelikeWater,

    That last decimal you see is the pip size and can be adjusted from Tools -> Options -> Data

    Lastly, running a simple Print(Math.Round(High[1], 5)); in my OnBaUpdate() was able to get all the decimals related to my price.
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      Dear Cal

      Thank you for your answer:

      This is my Tool/Options/Data Setup:

      Free online storage and sharing with Screencast.com. 2 GB of storage and 2 GB of bandwidth per month for free. We won't compress, alter or take ownership of your content.


      Still showing only 4 pips. I am doing something wrong?


      Thank you

      Belikewater

      Comment


        #4
        BelikeWater,

        Not sure, can you post the script that you are using and what instrument?
        Cal H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by rocketman7, Today, 01:00 AM
        0 responses
        1 view
        0 likes
        Last Post rocketman7  
        Started by wzgy0920, 04-20-2024, 06:09 PM
        2 responses
        27 views
        0 likes
        Last Post wzgy0920  
        Started by wzgy0920, 02-22-2024, 01:11 AM
        5 responses
        32 views
        0 likes
        Last Post wzgy0920  
        Started by wzgy0920, 04-23-2024, 09:53 PM
        2 responses
        74 views
        0 likes
        Last Post wzgy0920  
        Started by Kensonprib, 04-28-2021, 10:11 AM
        5 responses
        193 views
        0 likes
        Last Post Hasadafa  
        Working...
        X