Suppose I draw my own volume pane like this:
CODE:
Please log in to see this code.
The volume pane is shown with decimals to ten thousandths.
How can I change the code so that I can get rid of the decimals?
Size:
Color:
Volume is a double like any DataSeries so you can't truncate the series just for output, for example. There are 3 global preferences that affect the number of decimals one way or another:
1. Preferences > Advanced Options > Decimal Places
2. Symbol Info Manager > Decimals
3. Bars.FormatValue
Size:
Color:
The "Advanced Options" is exactly what I wanted but it changes not only the custom volume pane but also all other panes.
That's why I wanted to control from the code to change the decimal place only on that pane.
I wished if ChartPane.Decimals did it but apparently not.
Any other option?
Size:
Color:
QUOTE:
The "Advanced Options" is exactly what I wanted but it changes not only the custom volume pane but also all other panes.
Volume in a
custom pane is nothing different as explained above so it's not going to be treated differently from other series:
QUOTE:
Volume is a double like any DataSeries so you can't truncate the series just for output, for example. There are 3 global preferences that affect the number of decimals one way or another:
Size:
Color:
Please consider supporting custom decimal property setting for ChartPane object.
Size:
Color:
For the VolumePane (not for a custom pane), you can use
CODE:
Please log in to see this code.
Size:
Color:
Any technical reason for it not working to a custom pane?
Size:
Color:
Not being the developer, I can only speculate.
Size:
Color: