Ray longMA = Draw.Ray(this,"200 SMA",10,SMA(Close,200)[0],0,SMA(Close,200) [0],Brushes.RoyalBlue);
Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
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.htmPaul H.NinjaTrader Customer Service
-
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.Paul H.NinjaTrader Customer Service
Comment
-
Originally 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.Paul H.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by johntraderuser2, Today, 02:34 AM
|
0 responses
6 views
0 likes
|
Last Post Today, 02:34 AM | ||
Started by IanS00, 03-27-2024, 11:24 AM
|
2 responses
12 views
0 likes
|
Last Post Today, 02:00 AM | ||
Started by Mariawilcoxi, Today, 01:32 AM
|
0 responses
4 views
0 likes
|
Last Post
by Mariawilcoxi
Today, 01:32 AM
|
||
Started by gleichnerany, Today, 01:17 AM
|
0 responses
5 views
0 likes
|
Last Post
by gleichnerany
Today, 01:17 AM
|
||
Started by WHICKED, 03-27-2024, 12:33 PM
|
4 responses
47 views
0 likes
|
Last Post Today, 12:28 AM |
Comment