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 CaptainJack, 05-29-2026, 05:09 AM
        0 responses
        212 views
        0 likes
        Last Post CaptainJack  
        Started by CaptainJack, 05-29-2026, 12:02 AM
        0 responses
        121 views
        0 likes
        Last Post CaptainJack  
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        145 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        227 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        188 views
        0 likes
        Last Post CarlTrading  
        Working...
        X