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
Indicator Drawing Objects w/o removing indicator
Collapse
X
-
Hello habibalex,
Thank you for your note.
Drawing objects created by NS can ordinarily be set in the script to be manually removable by setting AllowRemovalOfDrawObjects = true in State == State.SetDefaults within your code. However, this doesn't seem to be the case for Draw.Region even when that's set to true. I'm checking with our development team to see if this is intentional or whether they need to take a closer look at it; however, it seems that Draw.Region drawing objects created by a script currently cannot be removed manually.
I'll let you know what our development team says.
Thanks for your patience; I look forward to assisting you further.
Kate W.NinjaTrader Customer Service
-
When AllowRemovalOfDrawObjects is true, will that also keep the drawn indicators in their correct states when the script is re-run? Ie: A draw region is placed automatically by NS. I manually move or change the color. Then I reload the NS. I'm expecting the color and new prices to stay there for that object and potentially a new one being created by the script.
Comment
-
Hello habibalex,
Thank you for your reply.
That would not be the case, no. This is because despite that you can modify or delete the object while the script is running, all drawing objects created by a script will be removed when a script is disabled. When you reload the NinjaScript, your modified drawing object would vanish and "reappear" in the original location, as the original was destroyed when the strategy was reloaded.
That being said, it's not looking like there's currently a way to remove that region entirely without removing the indicator itself from your chart. However, you could set the color for the region to Transparent from the Drawing Objects dialogue (Right Click on chart > Drawing Tools > Drawing Objects) if you just don't want to see it.
Please let us know if we may be of further assistance to you.Kate W.NinjaTrader Customer Service
Comment
-
Hello habibalex,
Thank you for your reply.
None that I am aware of, either supported or unsupported. However, I have added a vote for you to a current feature request to allow completely unlocked Drawing Objects to be created by NinjaScript, which would allow you to modify them and keep them on your chart after the script is removed. This request is being tracked under the number SFT-4061.
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
Please let us know if we may be of further assistance to you.Kate W.NinjaTrader Customer Service
Comment
-
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by foxtrott21, Today, 08:27 AM
|
0 responses
1 view
0 likes
|
Last Post
by foxtrott21
Today, 08:27 AM
|
||
Started by jaypelle3, Today, 08:26 AM
|
0 responses
1 view
0 likes
|
Last Post
by jaypelle3
Today, 08:26 AM
|
||
Started by linkcou, Today, 07:01 AM
|
2 responses
17 views
0 likes
|
Last Post
by bltdavid
Today, 08:25 AM
|
||
Started by jaypelle3, Today, 08:25 AM
|
0 responses
1 view
0 likes
|
Last Post
by jaypelle3
Today, 08:25 AM
|
||
Started by jaypelle3, Today, 08:22 AM
|
0 responses
2 views
0 likes
|
Last Post
by jaypelle3
Today, 08:22 AM
|
Comment