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 Haiasi, 04-25-2024, 06:53 PM
              2 responses
              16 views
              0 likes
              Last Post Massinisa  
              Started by Creamers, Today, 05:32 AM
              0 responses
              0 views
              0 likes
              Last Post Creamers  
              Started by Segwin, 05-07-2018, 02:15 PM
              12 responses
              1,785 views
              0 likes
              Last Post Leafcutter  
              Started by poplagelu, Today, 05:00 AM
              0 responses
              3 views
              0 likes
              Last Post poplagelu  
              Started by fx.practic, 10-15-2013, 12:53 AM
              5 responses
              5,407 views
              0 likes
              Last Post Bidder
              by Bidder
               
              Working...
              X