Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator Values on Y Axis

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

    Indicator Values on Y Axis

    Hello,

    I have created an indicator and it seems to generate the correct values; however, these values are not being represented on the charting area. For example, I have declared the following:

    Code:
    [FONT=Fixedsys][SIZE=4]            Add(new Line(Color.Black, [B][COLOR=Blue]1.0[/COLOR][/B], "Base"));
                Add(new Line(Color.LightGray, [B][COLOR=Blue]1.0001[/COLOR][/B], "Level 1"));
                Add(new Line(Color.Red, [COLOR=Blue][B]1.0002[/B][/COLOR], "Level 2"));
                Add(new Line(Color.Black, [COLOR=Blue][B]1.001[/B][/COLOR], "Ceiling"));[/SIZE][/FONT]
    The lines show up appropriately in the technical indicator area, but any value on the y axis shows up as 1. How do i get the y axis to show the decimal values after the number 1?

    #2
    The price markers are rounded. Please add a plot of sorts to have it show more numbers.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      yes, i have added a plot, but numbers are still rounded. is there somewhere else that i need to change or add a plot?


      Code:
      [FONT=Fixedsys]        protected override void Initialize()
              {[COLOR=Blue]
                  Add(new Plot(Color.Blue, "PlotName"));[/COLOR]
                  CalculateOnBarClose    = true;
                  Overlay                = false;
                  PriceTypeSupported    = false;
                  Add(new Line(Color.Black, 1.0, "Base"));
                  Add(new Line(Color.LightGray, 1.0001, "Level 1"));
                  Add(new Line(Color.Red, 1.0002, "Level 2"));
                  Add(new Line(Color.Black, 1.001, "Ceiling"));
              }[/FONT]

      Comment


        #4
        Actually, this may not work. You will need to get the sig figs from the price panel. To do that you need to plot on the price panel.



        It is on our list.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          well, at least the actual values are not rounded off for the indicator. not sure what sig figs are, but it seems like it should be possible to have decimals on the y axis since other indicators use them as well; ie, macd.

          Comment


            #6
            Sig figs are significant figures. By default it is 2. 1.0001 is far off from 2 figures and as such is rounded to 1.00 which is then shown as 1.
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              i see, so the default indicators have access to the sig figs, but custom indicators do not.

              Comment


                #8
                Any indicator on the price panel has access to the sig figs. Any indicator not on the price panel does not.
                Josh P.NinjaTrader Customer Service

                Comment


                  #9
                  that still doesn't explain why some default indicators that are not on the price panel have multiple decimal capability. macd is not on the price panel like some moving average would be, but it can show a number like .000021 on the y axis.

                  anyway, for now quick fix i'll just multiply my indicator values by 10,000, that way i'll have some better readability.

                  Comment


                    #10
                    dargente,

                    This is already on our list of future considerations.
                    Josh P.NinjaTrader Customer Service

                    Comment


                      #11
                      ok, just trying to get better acquainted with the software.

                      thank you for your help and explanations Josh

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                      0 responses
                      581 views
                      0 likes
                      Last Post Geovanny Suaza  
                      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                      0 responses
                      338 views
                      1 like
                      Last Post Geovanny Suaza  
                      Started by Mindset, 02-09-2026, 11:44 AM
                      0 responses
                      103 views
                      0 likes
                      Last Post Mindset
                      by Mindset
                       
                      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                      0 responses
                      554 views
                      1 like
                      Last Post Geovanny Suaza  
                      Started by RFrosty, 01-28-2026, 06:49 PM
                      0 responses
                      552 views
                      1 like
                      Last Post RFrosty
                      by RFrosty
                       
                      Working...
                      X