Help in fixing this indicator

Then, someone would either need to decompile the .ex4 file (which is against the MetaTrader's EULA) or to build the MT5 indicator from scratch attempting to simulate the same behavior as the one for MT4 has, which is tremendously difficult.