Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to fix truncated panel2 y-axis and data box?

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

    How to fix truncated panel2 y-axis and data box?

    I have a moving average-type indicator that I've plotted on panel1 and panel2. The instrument is the Euro FX futures contract which is quoted to 4 decimal places. The y-axis of the indicator is price.

    When plotted in panel1 the indicator value is displayed, as expected, to 4 decimal places in each of the y-axis of the chart, the data box, and an output log.

    However, when plotted in panel2, the y-axis of the chart and the data box are truncated to 2 decimal places while the output log remains correct at 4 decimal places.

    How do I get my 4 decimal places back? Otherwise I'm looking at a squiggly line on a chart with no relevant data.

    -BlueLou

    #2
    Hi bluelou,

    Mind if I ask which version of NinjaTrader you are running? Thanks.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Josh,
      I'm using 6.5.1000.3. I haven't figured out how to upgrade to the latest version just yet. Would an upgrade make a difference regarding this issue?

      Comment


        #4
        Potentially. I recommend the upgrade regardless though. You can download the latest version from our website: http://www.ninjatrader.com/webnew/download_download.htm

        If you can attach a simple as possible indicator demonstrating this scenario I would like to test this. Thanks.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Josh,
          The indicator is a proprietary DLL and it's not an easy read so it doesn't make sense to go down that path. I believe I've seen Plot commands in both Initialize and OnBarUpdate. Would putting this in OnBarUpdate make a difference. I can try that next.

          Here's how the Plot commands read:



          protectedoverridevoid Initialize()
          {
          Add(
          new Plot(Color.FromKnownColor(KnownColor.Aqua), PlotStyle.Line, "Plot0"));
          Add(
          new Plot(Color.FromKnownColor(KnownColor.White), PlotStyle.Line, "Plot1"));
          CalculateOnBarClose =
          true;
          Overlay =
          false;
          PriceTypeSupported = false;
          }

          Comment


            #6
            Hold off. I will test it on my end and let you know.
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              Unfortunately this is a limitation at the moment. When coding it will retain the proper decimal places for calculations, but for displaying it will only maintain the ticksize display if it is placed on the price panel.
              Josh P.NinjaTrader Customer Service

              Comment


                #8
                Josh,
                This seems like something that should have been fixed up a long time ago. Any idea when it might be fixed?

                -Lou

                Comment


                  #9
                  Unfortunately there is no ETA yet.

                  Comment


                    #10
                    Josh,
                    I wanted to make sure that we're talking about the same thing when you mentioned "ticksize display".

                    The Euro FX contract is quoted to 4 decimal places; e.g., 1.5422. When I use anything other than panel1 the display I'm getting on both the plot and the data box is truncated to 2 decimal places; i.e., 1.54

                    My understanding is that the "ticksize display" should be 1.5422 not 1.54. So, in fact, I'm not getting the ticksize display. This is precisely the problem. I'd like to receive what I believe you're calling the ticksize display, nothing more, nothing less.

                    -Lou

                    Comment


                      #11
                      Your understanding is correct. The "ticksize display" works for panel 0, but not for other panel (different formatting logic). However, I just added this to our list of issues to check into for NT7.

                      Comment


                        #12
                        Dierk,
                        Thank you for putting this on the NT7 list.

                        -Lou

                        Comment

                        Latest Posts

                        Collapse

                        Topics Statistics Last Post
                        Started by alifarahani, Today, 09:40 AM
                        6 responses
                        27 views
                        0 likes
                        Last Post alifarahani  
                        Started by Waxavi, Today, 02:10 AM
                        1 response
                        17 views
                        0 likes
                        Last Post NinjaTrader_LuisH  
                        Started by Kaledus, Today, 01:29 PM
                        5 responses
                        13 views
                        0 likes
                        Last Post NinjaTrader_Jesse  
                        Started by Waxavi, Today, 02:00 AM
                        1 response
                        12 views
                        0 likes
                        Last Post NinjaTrader_LuisH  
                        Started by gentlebenthebear, Today, 01:30 AM
                        3 responses
                        17 views
                        0 likes
                        Last Post NinjaTrader_Jesse  
                        Working...
                        X