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
Rounding in Data Box
Collapse
X
-
Rounding in Data Box
This question is about the rounding calculations that apply to the Data Box. When using an EMA on the Russell Future - the EMA is rounded to the tenth. (ex: 658.1). What rule do you use when rounding this calculation - (5up/4dn (ex: 658.14 is rounded down to 658.1 & 658.17 is rounded up to 658.2) or truncated (658.178 is rounded to 658.1). This applies to instruments that only have a single decimal I would like to automate my calculation and I use the value displayed in the Data Box for my rules. Thank youTags: None
-
Hi thepcmd !
When indicator is on panel 1 (panel with bars), then
the values of the indicator in the databox are rounded to the ticksize of the instrument. Russel future has ticksize 0.1 -> values are rounded to the first digit after the decimal point.
If indicator is on a panel > 1 (own indicator panel), there is an different rounding logic inplace, depending on the absolute value for the indicator. In case of a price level of 600 points, the values are rounded to 0.01.
Kind regards,
ChristianLast edited by NinjaTrader_Christian; 10-13-2008, 06:51 AM. Reason: explaning different logic for indicator panelChristianSenior Software Developer
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by TraderG23, 12-08-2023, 07:56 AM
|
9 responses
382 views
1 like
|
Last Post
by Gavini
Today, 12:29 AM
|
||
Started by oviejo, Today, 12:28 AM
|
0 responses
1 view
0 likes
|
Last Post
by oviejo
Today, 12:28 AM
|
||
Started by pechtri, 06-22-2023, 02:31 AM
|
10 responses
125 views
0 likes
|
Last Post Today, 12:03 AM | ||
Started by judysamnt7, 03-13-2023, 09:11 AM
|
4 responses
59 views
0 likes
|
Last Post
by DynamicTest
Yesterday, 08:25 PM
|
||
Started by ScottWalsh, Yesterday, 06:52 PM
|
4 responses
36 views
0 likes
|
Last Post
by ScottWalsh
Yesterday, 07:40 PM
|
Comment