I am custom method created for that (like `if (TickSize== 0.1) digits=2;`...) , but i am interested if there exists anything simpler...
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
How to get digits of current chart/underlying?
Collapse
X
-
How to get digits of current chart/underlying?
Is there any builtin function/constant (like TickSize), which says what is the precision (digits after dot) for the given chart?
I am custom method created for that (like `if (TickSize== 0.1) digits=2;`...) , but i am interested if there exists anything simpler...Tags: None
-
TazoTodua,
It looks like the only way to change the price 'precision' on the chart is by changing the TickSize of the instrument manually.
I do see that there is already a feature request to create an NinjaScript method to set the tick size for the y-axis of a chart panel, so I went ahead and added a vote on your behalf. The internal tracking number for this feature request is SFT-621. Please reference this internal tracking number if you ever have questions regarding this feature request.
Let me know if there is anything else I can do to assist.
Josh G.NinjaTrader Customer Service
Comment
-
NinjaTrader_JoshG no, you really misunderstand what i asked, i absolutely not related with ticksize or changing it or axis-es... I just asked, if i can get how many decimals does current chart have, where is the indicator applied?
Is there any Method or Pre-defined variable for that?
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by kujista, Today, 06:23 AM
|
2 responses
6 views
0 likes
|
Last Post
by kujista
Today, 08:08 AM
|
||
Started by f.saeidi, Today, 08:03 AM
|
0 responses
4 views
0 likes
|
Last Post
by f.saeidi
Today, 08:03 AM
|
||
Started by cre8able, 04-17-2024, 04:16 PM
|
7 responses
64 views
0 likes
|
Last Post Today, 08:01 AM | ||
Started by Aviram Y, 08-09-2023, 09:04 AM
|
11 responses
299 views
0 likes
|
Last Post
by arjandezeeuw
Today, 08:00 AM
|
||
Started by Christopher Leggit, 02-15-2024, 09:00 AM
|
3 responses
47 views
0 likes
|
Last Post
by rdtdale
Today, 07:57 AM
|
Comment