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
Drawings stuck on chart NT7
Collapse
X
-
Thanks Patrick.
I figured out my problem.
I was overloading the dispose function while not removing those drawings in that function
-
Hello trader3419,
Thank you for your patience.
In testing your DrawRay() syntax, the object is removed when the indicator is removed. Attached is my test, are you performing anything different such as looping through the IDrawObjects or anything else?Attached Files
Leave a comment:
-
Here is an example
DrawRay("tag7",false,0, entryprice,1,entryprice, Color.White,DashStyle.Dash,1);
Leave a comment:
-
Hello trader3419,
Can you provide the lines of code for each object?
Leave a comment:
-
I use only DrawRay() and DrawText()
These objects get stuck on the chart after I change my indicator settings
Why isn't it disposing of the old drawing objects?
Leave a comment:
-
Hello trader3419,
Thank you for your post.
Upon a reload of NinjaScript after altering settings it should recalculate just as reloading historical data would force the instrument to recalculate
Do you use specific tag strings for each drawing tool? Can you provide an example of a drawing tool method in your code that does not change after changing the settings in the indicator?
I look forward to your response.
Leave a comment:
-
Drawings stuck on chart NT7
I have an indicator which draws horizontal lines on the chart
and when I go to change my indicator settings the lines should dissapear
but they just get stuck on the chart and the only way to get rid of them is to
reload historical data.
Any ideas on a fix?Tags: None
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by hazylizard, Today, 08:38 AM
|
3 responses
10 views
0 likes
|
Last Post Today, 09:12 AM | ||
Started by geddyisodin, Today, 05:20 AM
|
2 responses
18 views
0 likes
|
Last Post
by geddyisodin
Today, 08:44 AM
|
||
Started by Max238, Today, 01:28 AM
|
5 responses
47 views
0 likes
|
Last Post
by Max238
Today, 08:30 AM
|
||
Started by giulyko00, Yesterday, 12:03 PM
|
3 responses
13 views
0 likes
|
Last Post Today, 08:26 AM | ||
Started by habeebft, Today, 07:27 AM
|
1 response
16 views
0 likes
|
Last Post Today, 08:08 AM |
Leave a comment: