How can I achieve this?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Displaying a Non-Double Value in Databox
Collapse
X
-
Displaying a Non-Double Value in Databox
I've got various DataSeries that are not prices and so not of the type double. I need to debug something and would like to display some of these series in the databox so I can figure out what is going on.
How can I achieve this?Tags: None
-
Hello reach4thelasers, and thank you for your question. The easiest way to populate a DataBox with this information would be to set up another dataseries for "drawing" to the DataBox, and then filling this with double representations of your data. For example, if you were keeping a series of strings, you could
Similarly, with integers, you could cast these values to a double.Code:MySeries[0] = "20.00"; MyOutputSeries[0] = Double.Parse(MySeries[0]);
If you would like the DataBox to produce values other than a double, you would need to create an add-on which accomplishes this.
Please let us know if there are any other ways we can help.Jessica P.NinjaTrader Customer Service
-
Thanks Jessica. Its actually not a numerical value that I want to display, so casting isn't going to work. Its hard to understand why Ninjatrader gives us type-rich Data-series to work with using the Series<T> Generic, but without a way to to actually view the Series.
I think I will make an addon as I've spent 2 days stuck on a bug caused by multiple data-series getting out of sync with each other. And I think that knocking a databox together that can display them would save time.
Is there an automation ID for the DataBoxPanel? I've inspected the databox class hierarchy and I think I know what to do.
Incidentally is there any way to find out automation IDs for myself? I tried Snoop, but it throws an exception because it doesn't own the thread.
Thank you!
Kevin
Comment
-
I typically point people to the advice my colleague Jesse provides in this forums post, as far as finding automation IDs on one's own.
Since you reported a tool not working for you, I have decided to record a short video, where I investigate the Data Box for automation IDs. This video contains several automation IDs within it.
World's leading screen capture + recorder from Snagit + Screencast by Techsmith. Capture, edit and share professional-quality content seamlessly.
Regarding generic output, I recommend using the Print command, and the New -> NinjaScript Output Window. This will be much more free-form than the information in the Data Box.Jessica P.NinjaTrader Customer Service
Comment
-
Jessica!! Thanks so much for the video. Very helpful. I'm a back-end developer so a lot of the WPF/desktop stuff is new to me. I didn't know about the inspect tool or even have the Windows SDK installed.
I am going to have a look now to see if I can do anything with the databox! I will keep you apprised.
Thanks again!
Kevin
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
601 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
347 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
103 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
559 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
558 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment