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 hdge4u, 04-29-2024, 12:23 PM
        5 responses
        28 views
        0 likes
        Last Post MisterTee  
        Started by llanqui, 01-25-2024, 06:15 PM
        9 responses
        64 views
        0 likes
        Last Post MisterTee  
        Started by tradingnasdaqprueba, 05-07-2024, 03:42 AM
        16 responses
        65 views
        0 likes
        Last Post tradingnasdaqprueba  
        Started by Vulgoth_t_Destroyer, 05-09-2022, 04:45 PM
        55 responses
        5,461 views
        0 likes
        Last Post BartMan
        by BartMan
         
        Started by DawnTreader, 05-08-2024, 05:58 PM
        16 responses
        52 views
        0 likes
        Last Post DawnTreader  
        Working...
        X