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 judysamnt7, 03-13-2023, 09:11 AM
|
4 responses
57 views
0 likes
|
Last Post
by DynamicTest
Today, 08:25 PM
|
||
Started by ScottWalsh, Today, 06:52 PM
|
4 responses
36 views
0 likes
|
Last Post
by ScottWalsh
Today, 07:40 PM
|
||
Started by olisav57, Today, 07:39 PM
|
0 responses
7 views
0 likes
|
Last Post
by olisav57
Today, 07:39 PM
|
||
Started by trilliantrader, Today, 03:01 PM
|
2 responses
19 views
0 likes
|
Last Post
by helpwanted
Today, 07:25 PM
|
||
Started by cre8able, Today, 07:24 PM
|
0 responses
9 views
0 likes
|
Last Post
by cre8able
Today, 07:24 PM
|
Comment