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 GLFX005, Today, 03:23 AM
        0 responses
        1 view
        0 likes
        Last Post GLFX005
        by GLFX005
         
        Started by XXtrader, Yesterday, 11:30 PM
        2 responses
        11 views
        0 likes
        Last Post XXtrader  
        Started by Waxavi, Today, 02:10 AM
        0 responses
        6 views
        0 likes
        Last Post Waxavi
        by Waxavi
         
        Started by TradeForge, Today, 02:09 AM
        0 responses
        12 views
        0 likes
        Last Post TradeForge  
        Started by Waxavi, Today, 02:00 AM
        0 responses
        2 views
        0 likes
        Last Post Waxavi
        by Waxavi
         
        Working...
        X