I notice you're asking about using (MetaTrader 4 executables) in MT5 (MetaTrader 5).
#include <Trade/Trade.mqh> CTrade trade; trade.Buy(0.1, Symbol(), 0, 0, "My EA"); How To Use Ex4 File In Mt5
You cannot convert a compiled .ex4 file directly to .ex5. You must have the original source code file. Convert MetaTrader 4 (MT4) Indicators to MetaTrader 5 (MT5) I notice you're asking about using (MetaTrader 4
This is important because EX4 files are "closed source." You cannot open them to read the logic inside; you can only run them. This protects the intellectual property of the developer. How To Use Ex4 File In Mt5
Have a specific EX4 file you’re struggling to convert? Consult the official MQL5 documentation or hire a verified programmer from the MQL5 Freelance service — never trust random decompilers with your trading capital.