Digits?

 

Hi all.  Confused... 

On this page: https://docs.mql4.com/customind/indicatordigits the 8th line of code is: 

IndicatorDigits(Digits+2);

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! 😊 

IndicatorDigits - Custom Indicators - MQL4 Reference
IndicatorDigits - Custom Indicators - MQL4 Reference
  • docs.mql4.com
IndicatorDigits - Custom Indicators - MQL4 Reference
 
Detnator:

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 😉 

Digits - Predefined Variables - MQL4 Reference
Digits - Predefined Variables - MQL4 Reference
  • docs.mql4.com
Digits - Predefined Variables - MQL4 Reference