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 CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    213 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    126 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
    229 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    190 views
    0 likes
    Last Post CarlTrading  
    Working...
    X