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

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 hurleydood, 09-12-2019, 10:45 AM
                      14 responses
                      1,092 views
                      0 likes
                      Last Post Board game geek  
                      Started by cre8able, Yesterday, 04:16 PM
                      1 response
                      14 views
                      0 likes
                      Last Post NinjaTrader_Gaby  
                      Started by cre8able, Yesterday, 04:22 PM
                      1 response
                      13 views
                      0 likes
                      Last Post NinjaTrader_ChelseaB  
                      Started by stafe, 04-15-2024, 08:34 PM
                      5 responses
                      28 views
                      0 likes
                      Last Post NinjaTrader_ChelseaB  
                      Started by StrongLikeBull, Yesterday, 04:05 PM
                      1 response
                      12 views
                      0 likes
                      Last Post NinjaTrader_Gaby  
                      Working...
                      X