Thank you.
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
Mini Data Box
Collapse
X
-
Mini Data Box
Currently the Mini Data Box is only displayed for 1 bar when the middle mouse button is held down. Is there a way for me to incorporate it into an indicator so that I can display it for more than 1 bar in different locations, and leave it on the chart until I close it?
Thank you. -
Line Breaks for Drawtext
This is a slightly different question but related, so I will ask it here. Is there a way for me to include line breaks in DrawText? I have the following line in my code:
DrawText (TagdiffV + CurrentBar, diffV.ToString(), 0, Low[0] - 2 * TickSize, Color.Red);
I would like to add other varibles to the ToString part. It seems to work if I just add them as follows: diffV.ToString + AltV.ToString etc, but it places them in a line next to each other on the chart. I would like them to appear on separate lines in a similar manner to the Mini Data Box. Is there a way to code these line breaks in NT?
Thanks.
Comment
-
Thanks for your response Partick_H. That works if I just want to see the words on the charts, but if the words are variables for calculations, I do not see the figures. If I remove the quotes it will not compile. Is there a way where "Hello" = 250 and "There" = 2 (after internal calculations) for me to see both figures on separate lines?
Comment
-
Originally posted by GeorgeW View PostThis is a slightly different question but related, so I will ask it here. Is there a way for me to include line breaks in DrawText? I have the following line in my code:
DrawText (TagdiffV + CurrentBar, diffV.ToString(), 0, Low[0] - 2 * TickSize, Color.Red);
I would like to add other varibles to the ToString part. It seems to work if I just add them as follows: diffV.ToString + AltV.ToString etc, but it places them in a line next to each other on the chart. I would like them to appear on separate lines in a similar manner to the Mini Data Box. Is there a way to code these line breaks in NT?
Thanks.Code:diffV.ToString() + "\n" + AltV.ToString()
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Workspaces
by pibrew
Started by pibrew, Today, 06:10 PM
|
0 responses
4 views
0 likes
|
Last Post
by pibrew
Today, 06:10 PM
|
||
Started by pibrew, 04-28-2024, 06:37 AM
|
2 responses
17 views
0 likes
|
Last Post
by pibrew
Today, 06:06 PM
|
||
Started by Philippe56140, 04-27-2024, 02:35 PM
|
7 responses
56 views
0 likes
|
Last Post
by kevinenergy
Today, 06:03 PM
|
||
Started by arunkumar3, 08-25-2023, 12:40 PM
|
3 responses
169 views
0 likes
|
Last Post
by Trader2024!
Today, 05:59 PM
|
||
Started by DJ888, 04-26-2024, 10:57 PM
|
2 responses
17 views
0 likes
|
Last Post
by DJ888
Today, 05:44 PM
|
Comment