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 sjsj2732, Yesterday, 04:31 AM
        0 responses
        26 views
        0 likes
        Last Post sjsj2732  
        Started by NullPointStrategies, 03-13-2026, 05:17 AM
        0 responses
        283 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        280 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        131 views
        1 like
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        90 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Working...
        X