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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    128 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    73 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    116 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    109 views
    1 like
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    88 views
    0 likes
    Last Post CarlTrading  
    Working...
    X