Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Displaying trendline and indicators
Collapse
X
-
Displaying trendline and indicators
I not sure if this is possible but hoping for help with this. How do you allow indicators, and trendlines to show up on multiple windows? For example I have the daily and 1 min side by side. Drawing lines or placing indicators does not go to the other. Is there a way to enable this?Tags: None
-
There are overloads to set IsGlobal to true for various drawing objects. For instance see the last two overloads at: https://ninjatrader.com/support/help.../draw_line.htm.
There is not an inbuilt functionality to copy indicators to another window but you could save a chart template (or even make it the default) and apply the template to your other windows so you don't have to set them all up from scratch.
-
Yes. If you're drawing them manually, in the line's properties (right-click on the line and choose Properties), click the dropdown under General for "Attach to" and choose the second option which reads "all charts". If you're drawing them programmatically with NinjaScript, use the overloads like I referenced above so you can set IsGlobal to true.
Comment
-
No, but this has been requested, in that it's been asked if it could be made possible for an indicator to set manually drawn lines to IsGlobal mode (which is the same as attaching to "all charts"). See also: https://forum.ninjatrader.com/forum/...ines-as-global. If that request were granted, you could add an indicator to your chart that picks up when you draw anything and sets them to global.Originally posted by gear2d View PostThank you again Bruce. Is there a way to have this done each time I manually draw (in place of having to do the above each time, which to be honest, is an inconvenience)?
It should be possible now to write an indicator that watches for user drawn lines and then adds ITS OWN line that is global that matches your line. But that's a second line added by the indicator, not changing YOUR line which is what the request was about.Last edited by QuantKey_Bruce; 04-30-2023, 02:40 PM.
Comment
-
Hello gear2d,
Thanks for your post.
QuantKey_Bruce is correct in stating that you could use the IsGlobal overload set to true to draw objects globally from a NinjaScript. For example:
Draw.Line(NinjaScriptBase owner, string tag, bool isAutoScale, int startBarsAgo, double startY, int endBarsAgo, double endY, bool isGlobal, string templateName)
Draw.Line(): https://ninjatrader.com/support/help.../draw_line.htm
If the drawings are being manually drawn on the chart, you could change the 'Attach to' property to '<Instrument> all charts' by right-clicking on the drawing, choosing Properties, clicking the drop-'Attach to' drop-down menu, and choose the option "<Instrument> all charts".
See this help guide page: https://ninjatrader.com/support/help...s__ob.htm#Unde rstandingLocalVsGlobalDrawingObjects
I have added your vote to the feature request QuantKey_Bruce mentioned. This request is being tracked under the number SFT-948.
As with all feature requests, interest is tracked before implementation is considered, so we cannot offer an ETA or promise of fulfillment. If implemented, it will be noted in the Release Notes page of the Help Guide.
Release Notes — https://ninjatrader.com/support/help...ease_notes.htm<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Today, 05:17 AM
|
0 responses
44 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
126 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
65 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
42 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
46 views
0 likes
|
Last Post
|

Comment