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
-
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.htmBrandon H.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Taddypole, 04-26-2024, 02:47 PM
|
1 response
12 views
0 likes
|
Last Post Today, 12:10 PM | ||
Started by futtrader, 04-21-2024, 01:50 AM
|
6 responses
58 views
0 likes
|
Last Post
by futtrader
Today, 11:54 AM
|
||
Started by sgordet, Today, 11:48 AM
|
0 responses
4 views
0 likes
|
Last Post
by sgordet
Today, 11:48 AM
|
||
Started by Trader146, Today, 11:41 AM
|
0 responses
5 views
0 likes
|
Last Post
by Trader146
Today, 11:41 AM
|
||
Started by jpapa, 04-23-2024, 07:22 AM
|
2 responses
22 views
0 likes
|
Last Post
by rene69851
Today, 11:39 AM
|
Comment