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 charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    56 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    143 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    160 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    96 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    276 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X