Calculation of ADX

 
Good afternoon. Does anyone know how MT5 calculates the ADX indicator step by step?
The results that MT5 returns for ADX (14) for EURUSD in H1 (for example) does not correspond (at least in my calculations) with the theoretical calculation of the ADX in spreadsheets.

If someone knows which procedure uses the indicator, I would appreciate it if you share it.
By tear, the code is too advanced for me to extract from there.

Regards!
 
There are two version, just look into their code: \MQL5\Indicators\Examples\ADX.mq5  and  \MQL5\Indicators\Examples\ADXW.mq5
 
Carl Schreiber:
There are two version, just look into their code: \MQL5\Indicators\Examples\ADX.mq5  and  \MQL5\Indicators\Examples\ADXW.mq5

i will look. Thank you!

Reason: