• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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 - http://www.ninjatrader.com/support/h...wrectangle.htm

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

    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).
        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by PG7940, Today, 04:26 AM
        0 responses
        2 views
        0 likes
        Last Post PG7940
        by PG7940
         
        Started by marcus2300, Today, 02:25 AM
        0 responses
        2 views
        0 likes
        Last Post marcus2300  
        Started by drpapp, 01-24-2019, 06:57 AM
        5 responses
        69 views
        0 likes
        Last Post pjsmith
        by pjsmith
         
        Started by plydcv, Today, 12:40 AM
        0 responses
        3 views
        0 likes
        Last Post plydcv
        by plydcv
         
        Started by Sh00tHerMcGavin, Yesterday, 07:39 PM
        0 responses
        4 views
        0 likes
        Last Post Sh00tHerMcGavin  
        Working...
        X