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 Rapine Heihei, Today, 08:19 PM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by Rapine Heihei, Today, 08:25 PM
        0 responses
        6 views
        0 likes
        Last Post Rapine Heihei  
        Started by f.saeidi, Today, 08:01 PM
        1 response
        9 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by Rapine Heihei, Today, 07:51 PM
        0 responses
        8 views
        0 likes
        Last Post Rapine Heihei  
        Started by frslvr, 04-11-2024, 07:26 AM
        5 responses
        98 views
        1 like
        Last Post caryc123  
        Working...
        X