Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Producing Global Draw.Rectangle Object using the "RepeaterV2.2"

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

    Producing Global Draw.Rectangle Object using the "RepeaterV2.2"

    Hello,
    From the Ecosystem file I downloaded, is it possible to create a global rectangle using "@" or some other syntax within the Ninjascript?
    I tried this (to no avail):
    Line 699:
    Code:
    @Draw.Rectangle (this, label[i], false, CurrentBar - beginBar[i], startStopPrice[i,1], 0, startStopPrice[i,2], showOutline[i] ? brushColor[i] : Brushes.Transparent, brushColor[i], opacity[i]);
                                    ​
    compiles but doesn't appear to work with other linked instruments (with "Show global draw objects" checked)
    Thanks for any help you can provide.

    #2
    Hello zeller4,

    Thank you for your inquiry.

    You can use the Draw.Rectangle syntax that includes an argument for isGlobal.

    Draw.Rectangle(NinjaScriptBase owner, string tag, int startBarsAgo, double startY, int endBarsAgo, double endY, bool isGlobal, string templateName)

    Draw.Rectangle(NinjaScriptBase owner, string tag, DateTime startTime, double startY, DateTime endTime, double endY, bool isGlobal, string templateName)

    Draw.Rectangle() - https://ninjatrader.com/support/help..._rectangle.htm

    Please let us know if you have any other questions.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    646 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    367 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    107 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    569 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    573 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X