I want to print the values of account balance, equity etc. on my chart.
How can I print them with thousand separators, for example like 12,920.12 or like 12 920.12 (Metatrader uses this format on its terminal tab) on my chart with the Comment() function or with any other function you will advise?
Thanks.
All good things are already in the Forum:

- 2011.08.19
- www.mql5.com
All good things are already in the Forum:
Thank you.
I want to print the values of account balance, equity etc. on my chart.
How can I print them with thousand separators, for example like 12,920.12 or like 12 920.12 (Metatrader uses this format on its terminal tab) on my chart with the Comment() function or with any other function you will advise?
Thanks.
object creati kullanın daha kolay.
object creati kullanın daha kolay.
This is an English language forum.
Please only post in English.
object creati kullanın daha kolay.
With label objects, at the end, you have to end with a formatted string as well. So, I don't think that there will be any difference.
The reference cited in the original answer below was wrong. There is a built in function for this, which is exactly what kaiser suggests below: toLocaleString So you can do:
(1234567.89).toLocaleString('en') // for numeric input parseFloat("1234567.89").toLocaleString('en') // for string input
The function implemented below works, too, but simply isn't necessary.

- www.mql5.com
- The reference is not wrong. There are multiple ways of doing things.
- There is no build in function for that. You are referencing a library that does not exist in MT4 by default.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I want to print the values of account balance, equity etc. on my chart.
How can I print them with thousand separators, for example like 12,920.12 or like 12 920.12 (Metatrader uses this format on its terminal tab) on my chart with the Comment() function or with any other function you will advise?
Thanks.