Entry manual exit auto with EA

 
Hi all,

how I can set EA that identify th trade manually and exit automatically?
 
Manual trades have a Magic Number of "0", so just scan for those!
 
No filtering on your OrderSelect loop means your code is incompatible with every EA (including itself on other charts and manual trading.) Symbol Doesn't equal Ordersymbol when another currency is added to another seperate chart . - MQL4 forum
 

Insering Magic Number = 0 means that I can insert the manul order from smartphone and the EA recognize the trade and insert SL and TP with EA.

Correct? 

Reason: