{ DrawTextFixed("Status", "OK to trade"+"\n" +myMktPosition, TextPosition.TopRight);
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
clearing text from .TopRight
Collapse
X
-
clearing text from .TopRight
This code works ok initially. But when i change the text later (same tag), some of this text remains, and the new text partially covers it up, making it unreadable. How do i clear it?
{ DrawTextFixed("Status", "OK to trade"+"\n" +myMktPosition, TextPosition.TopRight);Tags: None
-
That should not happen if you are using the same tag. Are you sure you are not calling it in another location with some more drawing elsewhere? Maybe even a different tag?
What you can try is calling RemoveDrawObject() prior to the second call and see if you can clear it out that way.Josh P.NinjaTrader Customer Service
-
Still having a problem removing the old draw object.. both draw objects are superimposed, I would expect when i hit <f5> to restart the strategy, the old object should be deleted
v 7.,01
The following code is in OnStartUp
RemoveDrawObject("BLStatus");
statusBL = plFactor+" "+myAtmML;
//DrawTextFixed("BLStatus", statusBL, TextPosition.BottomLeft);
DrawTextFixed("BLStatus", statusBL, TextPosition.BottomLeft, Color.White, FontMed, Color.Yellow, Color.White, 0);
It does not matter which of the 2 DrawTextFixed statements i use, the problem of superimposed msgs remains.
BLStatus is not ref'd anywhere else in code
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by zstheorist, Today, 07:52 PM
|
0 responses
7 views
0 likes
|
Last Post
by zstheorist
Today, 07:52 PM
|
||
Started by pmachiraju, 11-01-2023, 04:46 AM
|
8 responses
150 views
0 likes
|
Last Post
by rehmans
Today, 06:44 PM
|
||
Started by mattbsea, Today, 05:44 PM
|
0 responses
6 views
0 likes
|
Last Post
by mattbsea
Today, 05:44 PM
|
||
Started by RideMe, 04-07-2024, 04:54 PM
|
6 responses
33 views
0 likes
|
Last Post
by RideMe
Today, 05:31 PM
|
||
Started by tkaboris, Today, 05:13 PM
|
0 responses
6 views
0 likes
|
Last Post
by tkaboris
Today, 05:13 PM
|
Comment