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

Data Box

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

    Data Box

    I have a indicator and it's plot is displayed in the Data Box. I would like to change 1 thing if Possible

    1). The Value shows a Decimal

    How can I change format of the Value so that it doesn't show any decimals.

    Thank you for your Time
    EK
    Last edited by Emerald King; 07-08-2009, 10:31 PM.

    #2
    Emerald King, thanks for the post - you can work with Math.Round to round your value to a decimal.

    Rounds a value to the nearest integer or to the specified number of fractional digits.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      allow me to clarify

      My value is already an int with no decimal but when it is displayed in the data box it shows up with .00 after every value.

      What I want to know is how to modify the format of the Data Box to only show the int value.

      Thanks
      EK
      Attached Files

      Comment


        #4
        Thanks EK, in this case you can try moving the indicator to another panel, as the price panel (1) rounding is tied to the instruments ticksize.
        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by helpwanted, Today, 03:06 AM
        1 response
        10 views
        0 likes
        Last Post sarafuenonly123  
        Started by Brevo, Today, 01:45 AM
        0 responses
        8 views
        0 likes
        Last Post Brevo
        by Brevo
         
        Started by aussugardefender, Today, 01:07 AM
        0 responses
        5 views
        0 likes
        Last Post aussugardefender  
        Started by pvincent, 06-23-2022, 12:53 PM
        14 responses
        242 views
        0 likes
        Last Post Nyman
        by Nyman
         
        Started by TraderG23, 12-08-2023, 07:56 AM
        9 responses
        386 views
        1 like
        Last Post Gavini
        by Gavini
         
        Working...
        X