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
DrawTextFixed and zorder
Collapse
X
-
I'm not quite clear on what you're saying -- am I still to use DrawTextFixed? It seems as if the interface just exposes whether the zorder can be changed, and it does not allow it to be set, but maybe I'm wrong on this. Can you show a brief example of drawing fixed text, and then using what you say to make it go to the back of the chart?
Comment
-
JoshDance, you cannot set an explicit ZOrder to use - you can just set the ZOrder of the object to be separate of the one used for the indicator script -
Please see the property SeparateZOrder.
Enhancing ZOrder support via programming is on our list of feedback.BertrandNinjaTrader Customer Service
Comment
-
OK Bertrand, let's approach it this way.
Here's my code in OnStartUp():
Code:ITextFixed obj = DrawTextFixed("mytext","Test",TextPosition.Center,Color.Gray,new Font("Arial",48),Color.Empty,Color.Empty,5); obj.SeparateZOrder = true;
What code will accomplish what I want?
Comment
-
-
Here's the promised update : we clarified and unfortunately a separate ZOrder for DrawTextFixed is not possible as it's differently implemented as other drawing objects we offer and could not be selected individually as object. A workaround would be using the more general DrawText() here.
Have a good upcoming weekend,BertrandNinjaTrader Customer Service
Comment
-
z-order for DrawTextFixed
Hi,
Further to the below query from a couple of years ago, could you confirm if there has been any further development of Z-order on drawing objects (eg DrawTextFixed) within NT7?
I too would like to have the bars appear in front of the text on a chart (programmatically).
many thanks!
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by rjbtrade1, 11-30-2023, 04:38 PM
|
2 responses
80 views
0 likes
|
Last Post
by DavidHP
Today, 08:12 AM
|
||
Started by Spiderbird, Today, 12:15 PM
|
1 response
6 views
0 likes
|
Last Post Today, 12:34 PM | ||
Started by FrazMann, Today, 11:21 AM
|
2 responses
6 views
0 likes
|
Last Post Today, 12:38 PM | ||
Started by lorem, Yesterday, 09:18 AM
|
5 responses
18 views
0 likes
|
Last Post Today, 12:29 PM | ||
Started by cmtjoancolmenero, Yesterday, 03:58 PM
|
12 responses
42 views
0 likes
|
Last Post Today, 12:09 PM |
Comment