Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Display integer value in DataBox

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

    Display integer value in DataBox

    hi
    I want to display information per each bar in chart.
    I want this information to be displayed in the DataBox.
    I succeeded to do it , using AddPlot , transparent color and ShowTransparentPlotsInDataBox = true;
    However the information is displayed as decimal numbers .
    how I convert the display format to integer ?

    if it can not be done - please consider this as development request
    Last edited by doron; 03-12-2016, 10:06 AM.

    #2
    Originally posted by doron View Post
    hi
    I want to display information per each bar in chart.
    I want this information to be displayed in the DataBox.
    I succeeded to do it , using AddPlot , transparent color and ShowTransparentPlotsInDataBox = true;
    However the information is displayed as decimal numbers .
    how I convert the display format to integer ?

    if it can not be done - please consider this as development request
    Like this?

    What kind of # are you plotting? Something with decimals?

    Have you tried rounding your #s? Math.Round?

    I'm using doubles and have no problem displaying as integers in the databox...
    Attached Files

    Comment


      #3
      hi
      thx for your help
      attached here a sample indicator to demonstrate the problem
      Attached Files

      Comment


        #4
        Originally posted by doron View Post
        hi
        thx for your help
        attached here a sample indicator to demonstrate the problem
        That was a tricky one. Doesn't make sense.

        I changed from Transparent to a colored line, and everything was in 999.00.

        I commented out :

        Code:
        //ShowTransparentPlotsInDataBox = true;

        Hey, it's in whole #s!!

        I then changed back to Brushes.Transparent.

        Nothing in the databox now!!! grrr

        I put the line back in:

        Code:
                      ShowTransparentPlotsInDataBox = true;
        And now it shows in the databox and isn't in 999.00, but whole #s.

        What the heck!?!!

        I also switched to Values[][] instead.. but I don't think that made a difference - as it was doing it before.



        Code:
                        AddPlot(Brushes.Transparent, "Vol1");
                        AddPlot(Brushes.Transparent, "Vol2");
                        ShowTransparentPlotsInDataBox = true;
        Code:
                Values[0][0] = Volume[0];
        	Values[1][0] = 0;
        I definitely would support a way to use whole numbers when appropriate.

        I'm going to restart my NT8 and see if anything resets.

        My indicator has never had a problem, although I'm plotting lines that aren't transparent.

        Comment


          #5
          Originally posted by doron View Post
          hi
          thx for your help
          attached here a sample indicator to demonstrate the problem
          Upon restarting

          If you set this to false it works better....


          Code:
          IsOverlay							= false;

          Then after it is on the new panel override it back to the main one.

          So it appears there is a bug or inconsistency some where in NT8.

          Comment


            #6
            Hello doron,

            Thanks for you post.

            You can use the FormatPriceMarker() to accomplish this.

            Please see: https://ninjatrader.com/support/help...ricemarker.htm
            Paul H.NinjaTrader Customer Service

            Comment


              #7
              hi
              thx i tried it - it works fine.
              suppose the indicator plots in databox two variables. how you assign to each variable a different format ?

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by bill2023, Yesterday, 08:51 AM
              8 responses
              43 views
              0 likes
              Last Post bill2023  
              Started by yertle, Today, 08:38 AM
              6 responses
              25 views
              0 likes
              Last Post ryjoga
              by ryjoga
               
              Started by algospoke, Yesterday, 06:40 PM
              2 responses
              24 views
              0 likes
              Last Post algospoke  
              Started by ghoul, Today, 06:02 PM
              3 responses
              16 views
              0 likes
              Last Post NinjaTrader_Manfred  
              Started by jeronymite, 04-12-2024, 04:26 PM
              3 responses
              46 views
              0 likes
              Last Post jeronymite  
              Working...
              X