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 with DrawTextFixed Output
Collapse
X
-
RyanM,
Thanks a lot for that, it works great.
One last question: is there a way to remove those tags MANUALLY as well?
My strategy also draws small arrows on the chart and I can remove them manually whenever I need to, but with the tags it doesn't work
Thanks a lot for your help, much appreciated.
Comment
-
You can set in your strategies Initialize() method:AllowRemovalOfDrawObjects = true;
It will allow manual removal of these.Ryan M.NinjaTrader Customer Service
Comment
-
I understand what you're saying and I obviously don't doubt it, but it is strange then that I'm able to remove the small arrows that my strategy generates since they're obviously also attached to the strategy (and the strategy remains enabled although I remove arrows from time to time).
Comment
-
Do you mean the plot executions when strategy fills orders? There is a UI control for this, but this is not related at all to drawing objects placed by strategy code.
If you mean something different, I'm happy to give your strategy a run here to see what the differences may be.Ryan M.NinjaTrader Customer Service
Comment
-
RyanM,
I don't mean plot executions but arrows that are drawn by my custom strategy when there's a trading signal (as per my conditions).
You can replicate this with the following sample code (AllowRemovalOfDrawObjects is set to true).
Instead of my own conditions I simply use a green candle as the signal to draw an arrow:
if (Close[0] >Open[0]
{
DrawArrowUp("Long" + CurrentBar, false, 0, Low[0]- 2*(TickSize), Color.Black);
}
Once the arrow is drawn you can remove it without removing the strategy.
The same thing doesn't work though with DrawTextFixed and its tags.
Thanks
Comment
-
I see - thanks for the reply. I had overlooked that property AllowRemovalOfDrawObjects, and it looks to do exactly what you want. I've corrected previous post for accuracy - thanks again.Ryan M.NinjaTrader Customer Service
Comment
-
I see what you mean, and have sent to our development team to consider a change for this in a future version. This has been assigned tracking id # 1490. Thanks for the feedback.Last edited by NinjaTrader_RyanM1; 01-25-2012, 09:19 AM.Ryan M.NinjaTrader Customer Service
Comment
-
You're welcome. Have a great day as well. This has been assigned tracking id # 1490.Last edited by NinjaTrader_RyanM1; 01-25-2012, 09:19 AM.Ryan M.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by CortexZenUSA, Today, 12:53 AM
|
0 responses
1 view
0 likes
|
Last Post
by CortexZenUSA
Today, 12:53 AM
|
||
Started by CortexZenUSA, Today, 12:46 AM
|
0 responses
1 view
0 likes
|
Last Post
by CortexZenUSA
Today, 12:46 AM
|
||
Started by usazencortex, Today, 12:43 AM
|
0 responses
5 views
0 likes
|
Last Post
by usazencortex
Today, 12:43 AM
|
||
Started by sidlercom80, 10-28-2023, 08:49 AM
|
168 responses
2,265 views
0 likes
|
Last Post
by sidlercom80
Today, 12:05 AM
|
||
Started by Barry Milan, Yesterday, 10:35 PM
|
3 responses
12 views
0 likes
|
Last Post Yesterday, 11:58 PM |
Comment