Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
How can I set an indicators scale resolution (number of digits)
Collapse
X
-
Tags: None
-
Hello wjadevries, thanks for your post.
We have the FormatPriceMarket override where you can format the price marker of the indicator:
Unfortunately, there is no supported way to format the price scale, It would need to be overlayed onto the primary panel to get the same price formatting.
Best regards.
-
It seems like this function isn't called in my indicator.
I've put a Print(price) in it, but it doesn't'show up in the output.
Comment
-
Hello wjadevries, thanks for your reply.
Did you add the method override at the class level? This method should go outside of OnBarUpdate at the class level:
protected override void OnBarUpdate()
{
//...
}
public override string FormatPriceMarker(double price)
{
// Formats price marker values to 4 decimal places
return price.ToString("N4");
}
Comment
-
yep, it's where you say.
But it doesn't get called..
PS: my indicator is in a separate panel, not in the price chart.
Comment
-
Ah, now I understand why it's not called.
I've set DisplayPriceMarkers = false, because I don't want the price marker to show up.
But I DO want the prices in the scale to be formatted differently.
Maybe I wasn't clear enough.
Is it possible to change the formatting of the prices in the (left or right) scale area?
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
50 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
69 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
36 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
97 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
60 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment