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
Databox display
Collapse
X
-
Databox display
I have an integer that acts like an Id based on information from the bar. Everything works as expected with the exception that the value in the data box is displayed with a decimal (the value is always an integer) which is not fatal but is annoying. Is it possible to format this calculated value as an integer in the same manner as the Volume indicator (i.e. as a whole number with no decimal point)? -
It is a simple calculation of the number of minutes between two date time values - the current bar's time and a historical time. I use it to align events over a large number of systems. So if you can display literally any integer in the data box that would be all I need.
Comment
-
Chris, how do you have IntPlotExample[ defined? If set my plot values to an int series, I get a message saying cannot convert to NinjaTrader.NinjaScript.Series<double> which makes sense but I am not sure how I get from Values[0] (a double) to Id[0] (an int). I am getting hung up on the plot variable definition (not the AddPlot itself, just the variable declaration)
Comment
-
Hi Scott, that name is a little misleading because Plots will always be Series<double> objects under the hood. I attached my example here if you would like to take a look. Im assuming the calculation you are doing in your script is coming out as a double value.
Kind regards,
-ChrisLAttached FilesChris L.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by reynoldsn, Yesterday, 07:11 PM
|
2 responses
12 views
0 likes
|
Last Post
by reynoldsn
Today, 01:14 PM
|
||
Started by manueldecastro, Today, 10:26 AM
|
2 responses
11 views
0 likes
|
Last Post Today, 01:06 PM | ||
Started by i2ogu3, Yesterday, 11:31 PM
|
3 responses
21 views
0 likes
|
Last Post Today, 01:02 PM | ||
Decrease the size of the RegionHIghLightY on each tick when the price touches it
by cmtjoancolmenero
Started by cmtjoancolmenero, 04-29-2024, 03:40 PM
|
23 responses
70 views
0 likes
|
Last Post Today, 12:58 PM | ||
Started by reynoldsn, Yesterday, 04:40 PM
|
3 responses
14 views
0 likes
|
Last Post Today, 12:58 PM |
Comment