Just convert EA (Expert Adviser) from MT4 Trading platform to work on MT5 Trading platform.
MT4 has MQL4 language that need to be converted to MQL5 language.
copy the code from MQL4 metaeditor to MT5 metaeditor.
Run it on the MT5 metaeditor to find no error.
I will back-tested to check if its working properly.