Announcement

Collapse
No announcement yet.

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:

      World's leading screen capture + recorder from Snagit + Screencast by Techsmith. Capture, edit and share professional-quality content seamlessly.


      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 Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        558 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        324 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        545 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        547 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X