Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.
    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 DJ888, Today, 10:57 PM
        0 responses
        6 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by MacDad, 02-25-2024, 11:48 PM
        7 responses
        158 views
        0 likes
        Last Post loganjarosz123  
        Started by Belfortbucks, Today, 09:29 PM
        0 responses
        7 views
        0 likes
        Last Post Belfortbucks  
        Started by zstheorist, Today, 07:52 PM
        0 responses
        7 views
        0 likes
        Last Post zstheorist  
        Started by pmachiraju, 11-01-2023, 04:46 AM
        8 responses
        151 views
        0 likes
        Last Post rehmans
        by rehmans
         
        Working...
        X