Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
RoundToTickSize()
Collapse
X
-
Hello,
Thank you for the post.
You can find a sample of using RoundToTickSize in the following link: https://ninjatrader.com/support/help...oundToTickSize
I look forward to being of further assistance.
-
hi Jesse
that's why I'm asking.
am writing in Java outside the ninjatrader environment.
but I use ninjatrader infrastructure. the code in my program needs to understand how you have it implemented.
Because I get different data when building ashi bars.
my version is as follows:
public static double round(final double price) { return price % 1 == 0 ? price : Math.round(price / .25) * .25; }
but I need to understand how ninjatrader is implemented. it can be a bottleneck when creating bars.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
90 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
137 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
68 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
120 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
71 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment