Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Draw on Price panel

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

    Draw on Price panel

    I have some code from NT6.5 that is not working.

    Is there a change in NT7?

    The code should put the VS information on the price panel. The code is in an indicator in panel 1.

    Thanks

    Code:
    			DrawOnPricePanel = true;
    				string text = string.Format("VS:{0}", VPS);
    			DrawTextFixed("vpm", text, TextPosition.BottomLeft, Color.Black, largeFont, Color.Yellow, Color.Yellow, 0);
    			DrawOnPricePanel = false;

    #2
    Please describe what exactly you feel is not working. Thank you.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Josh View Post
      Please describe what exactly you feel is not working. Thank you.
      Sorry I thought I did but I was not as specific.

      The code is supposed to put the VS information on the Price panel at the lower left.

      The code puts the VS info in the indicator panel at the lower left.

      In NT6.5 this code puts the VS in the Price Panel as expected.

      I figured maybe the code has changed in NT7.

      Thanks,

      Comment


        #4
        DavidHP,

        I see. Please try putting the DrawOnPricePanel code inside the Initialize() method.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Ok I put the code in the inside the Initialize() method.

          The only thing that happens is that ALL the text goes to the Price Panel.

          In NT6.5 the code will draw the VS in the price panel and another item will be in the Indicator panel. This doe not happen in NT7.

          I modified this code from the one created by NT Josh on this thread:



          That indicator works as expected in NT6.5. Hi is on the Price Panel and Bye is in the indicator panel.

          In NT7 both Hi and Bye are in indicator panel. If I put the code in the initialize() section then the Hi and Bye are both in the Price Panel.

          Is there a way to call the tag and tell it where to be placed?

          Thanks.

          Comment


            #6
            DavidHP,

            We will take a look and get back to you at a later point in time.
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              DavidHP,

              Development has informed me that this may have worked in 6.5, but will not due to an overhaul in 7 charting objects. Please note that the technique was never officially supported in 6.5 and this property was suppose to only be used as an Initialize() property.
              Josh P.NinjaTrader Customer Service

              Comment


                #8
                Same problem here.

                So the conclusion is with version 7 an indicator can only draw either into the price panel or into its own panel?
                There are quite a few indicators out there which use this feature, this means they all become crippled with version 7.
                Any suggestions from the Ninja team?

                Comment


                  #9
                  Originally posted by toulouse-lautrec View Post
                  Same problem here.

                  So the conclusion is with version 7 an indicator can only draw either into the price panel or into its own panel?
                  There are quite a few indicators out there which use this feature, this means they all become crippled with version 7.
                  Any suggestions from the Ninja team?
                  At this time it is a limitation however, we do have this on our list and will look back into it after we have removed some high priority issues off our list. Thanks for understanding.
                  RayNinjaTrader Customer Service

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                  0 responses
                  607 views
                  0 likes
                  Last Post Geovanny Suaza  
                  Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                  0 responses
                  353 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by Mindset, 02-09-2026, 11:44 AM
                  0 responses
                  105 views
                  0 likes
                  Last Post Mindset
                  by Mindset
                   
                  Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                  0 responses
                  560 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by RFrosty, 01-28-2026, 06:49 PM
                  0 responses
                  561 views
                  1 like
                  Last Post RFrosty
                  by RFrosty
                   
                  Working...
                  X