Expert Advisor from MT5 to MT4

 

Hi,

 

I have an expert advisor on mt5 that is doing well, now i have the version for mt4 and i put in the same variables and it behaves totally different. Is there any way to save the one from mt5 to mt4 or to convert it?

 

Thanks! 

 
if it doesnt behave exactly the same there is probably a code issue.
 
Why don't you use a trade copier? I know it is not ideal , but it might be the easiest thing to do.
If not, review your code. There must be a bug.
 
toto.parasca:

I have an expert advisor on mt5 that is doing well, now i have the version for mt4 and i put in the same variables and it behaves totally different. Is there any way to save the one from mt5 to mt4 or to convert it?

Compare trades made by both EAs one by one and try to figure out what causes the difference. Make sure quotes, timezones and other environment which may has effect are the same. There are too many nuances that may be important, from hedge mode in MT5 account and to code implementation details.
Reason: