Thank you.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
"Attach To" property for indicator drawn objects
Collapse
X
-
"Attach To" property for indicator drawn objects
I would like to request the "Attach To" property that is available on manual draw objects to also be available on draw objects created by code.
Thank you.Tags: None
-
Attaching a created object to a chart, not an indicator (chart)
When I use the method DrawRectangle or DrawLine to create a rectangle and/or line it creates the object on the chart and attaches it to (Attach to) the indicator which created it (logically). Is there a way to create these objects (rectangles and lines) which ARE NOT attached to the indicator but only attached to the chart & data series? Or, is there a way to alter the “Attach to” parameter from within NinjaScript?
The reason I do not want the object attached to the indicator is because I may want to manually delete the object. Currently, when I try to manually delete the object, I get a warning which states, “The object was drawn by an indicator or strategy. Removing this object will also remove the indicator/strategy which created this object”
Comment
-
PnlPaul,
You cannot adjust the settings of the attach to via NinjaScript. However, you can remove certain objects but this will need to be done in the script. You would not be able to do this manually when the draw objects are place by an indicator.
Let me know if I can be of further assistance.Cal H.NinjaTrader Customer Service
Comment
-
I have an Indicator which drawns Fibo Retracements. This fibo object becomes attached to the indicator, so when I'm reloading indicators it's getting refreshed as well.
When I open object drawn by indicator, "Attach To" field is inavtice (greyed out).
What I want is to draw Fibo retracements figure with my indicator and then attach this figure to current chart instead of indicator.
Is it possible to do?
Thanks.
Comment
-
Hello soulrider,
There is not a supported method of drawing an object with an indicator and this not being attached to the indicator.
Also I am not aware of an unsupported method of doing this.
If you know that NeoHarmonics has a method to achieve this, I recommend contacting NeoHarmonics and seeing if they will provide you with this unsupported code.Chelsea B.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
164 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
319 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
246 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
350 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
179 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|


Comment