The author of the code is here on this site, namely @Mladen Rakic. Have a look at his many publications in the CodeBase. You may find the MQL5 version already available.
The following link is a search request for CodeBase publications by him, with the keyword "DMI".
The following link is a search request for CodeBase publications by him, with the keyword "Wilder".
I found an old indicator online which I would like to convert in mt5, I tried by myself, however they give me different results and after days of testing I'm not able to find the right solution. I attach the two files.
Thank you for your help!