EA in multiple frame

 

Hi all

I have a problem that when i attach the same EA to different time frame i found that , for example , the EA open a trade in the M30 and the same EA at M15 close it ! I wonder how can i solve this problem. i have only the ex4 file.

Thank you for advance

 
agarwalsharma:
Hi all

I have a problem that when i attach the same EA to different time frame i found that , for example , the EA open a trade in the M30 and the same EA at M15 close it ! I wonder how can i solve this problem. i have only the ex4 file.

Thank you for advance

If the EA is well writen, you should have "Magic", or "MagicNumber" or something like that as input parameter. If it's the case, just put different number for each timeframe. If it's not the case, ask who has write (sell) the EA.

 

Thank you Michel. Yes it has a magic number.

Reason: