Hi all. Confused...
On this page: https://docs.mql4.com/customind/indicatordigits the 8th line of code is:
I also have the (MQL4) source code for a Custom Indicator someone who knows what he's doing gave me a year or so ago, but whom I'm no longer in touch with (so can't ask him) and one of its lines also is:
I understand what the IndicatorDigits() function does, but where is this "Digits" coming from? It looks like it's a constant or property but it's not declared or defined in the source in either of those examples. I've searched this website and can't find anything that explains it.
I'd welcome some insight! 😊
Ah... found it, finally:
https://docs.mql4.com/predefined/digitsvar
Ok... never mind. Thanks 😉

- docs.mql4.com

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi all. Confused...
On this page: https://docs.mql4.com/customind/indicatordigits the 8th line of code is:
I also have the (MQL4) source code for a Custom Indicator someone who knows what he's doing gave me a year or so ago, but whom I'm no longer in touch with (so can't ask him) and one of its lines also is:
IndicatorDigits(Digits);
I understand what the IndicatorDigits() function does, but where is this "Digits" coming from? It looks like it's a constant or property but it's not declared or defined in the source in either of those examples. I've searched this website and can't find anything that explains it.
I'd welcome some insight! 😊