Ray longMA = Draw.Ray(this,"200 SMA",10,SMA(Close,200)[0],0,SMA(Close,200) [0],Brushes.RoyalBlue);
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Global Draw Objects
Collapse
X
-
Hello ,
Thanks for your post.
You would need to use the Draw.Ray() method overload with the IsGlobal bool set to true. Here is one overload: Draw.Ray(NinjaScriptBase owner, string tag, int startBarsAgo, double startY, int endBarsAgo, double endY, bool isGlobal, string templateName) Note that to use the global mode you would need an existing ray drawing template with the ray characteristics (Color, width, line type) predefined or use the system default by using an empty string for the template name.
Reference: http://ninjatrader.com/support/helpG.../?draw_ray.htm
-
Hello drmartell,
Thanks for your reply.
The feature request has been assigned as SFT-948, "Allow drawing objects to be set to "Global" via NS "
Thank-you for your suggestion.
Edit: 3/28/17 12:16 - Changed SFT number for one that covers all draw objects global status.Last edited by NinjaTrader_PaulH; 03-28-2017, 12:18 PM.
Comment
-
Hey Paul, if you would be so kind as to either modify the existing SFT and/or add an additional one, thatOriginally posted by NinjaTrader_Paul View PostThe feature request has been assigned as SFT-2093, "Allow Draw.Ray set to Global via NS".
Allows changing of Any DrawObjects (manual or script) Global setting via NS...
This really applies to all drawobjects, not just the ray...
Thanks
Comment
-
Hi -=Edge=-,
Thanks for adding in.
I've dug into the feature requests and found that one already exists that covers all draw objects. it is SFT-948, "Allow drawing objects to be set to "Global" via NS". We will add your vote for this.
drmartell - Will remove the SFT for just the draw ray and add your vote to SFT-948. (I will change my post below to show SFT-948.
Thanks again for your suggestions and interest in improving NinjaTrader8.
Edit, changed ns objects to draw objects in first line.Last edited by NinjaTrader_PaulH; 03-28-2017, 12:23 PM.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
595 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
343 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
103 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
556 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
554 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment