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
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.JesseNinjaTrader Customer Service
-
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
-
Hello Danila,
Unfortunately I couldn't provide any insight on that topic as I don't know what that code may look like. Because that is an internal function we don't have access to the code to provide that information.
Please let me know if I may be of additional assistance.JesseNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by rdtdale, Yesterday, 01:02 PM
|
2 responses
15 views
0 likes
|
Last Post
by rdtdale
Today, 07:54 AM
|
||
Started by TradeSaber, Today, 07:18 AM
|
0 responses
7 views
0 likes
|
Last Post
by TradeSaber
Today, 07:18 AM
|
||
Started by PaulMohn, Today, 05:00 AM
|
0 responses
9 views
0 likes
|
Last Post
by PaulMohn
Today, 05:00 AM
|
||
Started by ZenCortexAuCost, Today, 04:24 AM
|
0 responses
6 views
0 likes
|
Last Post Today, 04:24 AM | ||
Started by ZenCortexAuCost, Today, 04:22 AM
|
0 responses
3 views
0 likes
|
Last Post Today, 04:22 AM |
Comment