How would I go about coding this.
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
Text Box / Header
Collapse
X
-
Text Box / Header
I would like a strategy to create a large text box, or header on the top margin that displays text based on certain conditions met.
How would I go about coding this.Tags: None
-
Hello Kubera2024,
Thank you for your note.
You could use the following method, DrawTextFixed, passing TextPosition.TopLeft in for the syntax for TextPosition.
I was able to find a indicator sample on the forum which displays text in the upper left of the chart you could reference as a sample,
Please let us know if you need further assistance.Alan P.NinjaTrader Customer Service
-
What would the code look like to display only when the current state of conditions are true. I'm getting even past historical states displayed.
Comment
-
-
I made a set of conditions, if all are true it writes on the screen. But the conditions toggle between false and true so it writes both onto the same part of the screen. I would like it to write only the most recent signal.
Comment
-
Hello Kubera2024,
I would suggest passing the DrawTextFixed method a string value of nothing when the condition is not true.
For example,
Code:if(true) DrawTextFixed("tag1", "Blah Blah", TextPosition.TopLeft); else DrawTextFixed("tag1", "", TextPosition.TopLeft);
Please let us know if you need further assistance.Alan P.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by PaulMohn, Today, 02:06 AM
|
0 responses
1 view
0 likes
|
Last Post
by PaulMohn
Today, 02:06 AM
|
||
Started by Mindset, Today, 01:27 AM
|
0 responses
4 views
0 likes
|
Last Post
by Mindset
Today, 01:27 AM
|
||
Started by EB Worx, 03-07-2023, 05:05 AM
|
4 responses
97 views
1 like
|
Last Post
by cls71
Today, 01:17 AM
|
||
Started by patricia70, 11-23-2020, 10:17 AM
|
17 responses
546 views
1 like
|
Last Post
by PaulMohn
Today, 01:01 AM
|
||
Started by Jltarrau, 04-28-2024, 10:18 PM
|
1 response
14 views
0 likes
|
Last Post Today, 12:49 AM |
Comment