Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Draw rectangle in plot

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

    Draw rectangle in plot

    Hi,

    Is it possible to draw any non-line items in a plot, so not overlayed on price?

    I would like to draw a rectangle in a new plot below the price window.

    #2
    Hi siroki, for a true rectangle you would need to use the DrawRectangle method - https://www.ninjatrader.com/support/...wrectangle.htm

    The plotstyles themselves would Bar, Block, Cross, Dot, Hash, HLine, Line, Square and the Triangle Variants.

    Comment


      #3
      Thanks for your answer. Yes, I know I have to use the DrawRectangle method and I've used it before in Overlay situations. But I'm still quite unfamiliar with the whole Plot thing. I know how to draw a line in a new plot by ways of using a number a plotting it. But I'm not sure how to call the DrawRectangle (or any other non-line object for that matter) in the new plot.

      Comment


        #4
        So you then rather mean the custom method overriding the defaults where you work via C# graphics directly?

        We would have limited documentation here available, but for example the CustomPlotSample shipped with NT uses a rectangle as well (graphics.Rectangle).

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        558 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        324 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
        545 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        547 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X