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 proptradingshop, Yesterday, 11:30 AM
        9 responses
        30 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by NRITV, Today, 09:05 AM
        1 response
        11 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by xiinteractive, Today, 08:29 AM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_Clayton  
        Started by DT215, 08-08-2023, 11:03 AM
        3 responses
        445 views
        0 likes
        Last Post NinjaTrader_Clayton  
        Started by Thomas79, Today, 08:14 AM
        1 response
        11 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Working...
        X