How can I control showing the digits to the right of the decimal, but for ONLY specific buffers, not all?
what about casting the double or float to integer or long?
for(int i = 0; i < rates_total; i++) { val = (int)close[i]; }
That's exactly why I have the question. I have some buffers set to display what amount to integers, so I don't want to see 5 zeros to the right of the decimal when they'll never contain any values in those places.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
So far, all I'm aware of is:
which suppresses the decimal portion of ALL the buffer readouts in an indicator.
How can I suppress only specific buffers that I already know ahead of time will have no decimal values, making them integers (in effect).
I'd like to get rid of all those unnecessary zeros.
Anyone know how to do this?