Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Program to draw Global Rectangles?

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

    Program to draw Global Rectangles?

    I am trying to draw a rectangle (in NT7) using an IDrawObject that will attach to all charts with the same Instrument name. I get the rectangle to draw on the chart I put the indicator on, but it does not show on the others. When I go into the rectangles properties dialog box, I can click on the "attach to all charts" option and It will show on others, but when the rectangle is programattically updated on the main chart, it does not update on the other charts. Here's the code for drawing ...

    IRectangle rectangle = DrawRectangle("@Rec1", false, swingHigh1, Low[swingHigh1], -1, High[swingHigh1], Color.PaleGreen, Color.PaleGreen, 2);

    Thanks for any help on this!

    #2
    jhanrahan, welcome to the forums - creating global draw objects manually is unfortunately not possible currently, but already on our list for future consideration.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    152 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    89 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    131 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    127 views
    1 like
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    107 views
    0 likes
    Last Post CarlTrading  
    Working...
    X