Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

DrawText on panel 2

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

    DrawText on panel 2

    Hi

    Is it possible to draw text on panel 2 or any other panel than the main panel?

    Thanks

    Pete

    #2
    Pete, unfortunately this is not currently possible.
    AustinNinjaTrader Customer Service

    Comment


      #3
      Originally posted by DionysusToast View Post
      Hi

      Is it possible to draw text on panel 2 or any other panel than the main panel?

      Thanks

      Pete
      You can draw either in the panel that your indicator is in, in which case you must use
      Code:
      DrawOnPricePanel = false;
      in the Initialize() method, or you will be drawing on the price chart by default.

      Comment


        #4
        Pete, koganam is correct. I should've clarified my response - the indicator can draw either on the main panel or whatever panel it is currently on, but not any of the other panels.
        AustinNinjaTrader Customer Service

        Comment


          #5
          drawing on the indicator panel

          Has anyone seen a situtation where when drawing on the indicator panel then drawing on the price panel then drawing back in the indicator panel doesn't work...

          example...
          // Draw on the price panel...
          DrawDot("Hdot" + CurrentBar.ToString(), true, HighBar, High[HighBar] + (TickSize*MDF), Color.Yellow);

          // draw on the indicator panel
          DrawOnPricePanel = false;
          DrawDot("IHdot" + CurrentBar.ToString(), true, HighBar, Indicator[HighBar], Color.Yellow);
          DrawOnPricePanel = true;

          // however then draw a line....
          // draw on the price panel
          DrawLine("H"+ThisBar.ToString()+NextBar.ToString() , true, ThisBarAgo, High[ThisBarAgo] + (TickSize*MDF), NextBarAgo, High[NextBarAgo] + (TickSize*MDF), DLC, DSD, DLW);
          DrawArrowDown("ID" + CurrentBar.ToString(), true, ThisHigh-1, High[ThisHigh-1] + (TickSize*MDF), DLC);

          DrawOnPricePanel = false;
          DrawLine("IH"+ThisBar.ToString()+NextBar.ToString( ), true, ThisBarAgo, Indicator[ThisBarAgo], NextBarAgo, Indicator[NextBarAgo], DLC, DSD, DLW);
          DrawOnPricePanel = true;

          This second drawing of the line draws on the price panel

          I have found that it works fine (as expected) on NT6.5.1000.16 but not on NT6.5.1000.19

          Any hints, anyone? your response is greatly appreciated!

          - David

          Comment


            #6
            They broke it, and now say that it was never intended to work that way anyway.

            Comment

            Latest Posts

            Collapse

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