dont trade if more than 1 expert

 

pls i want to ask is it possible to remove automatically remove an EA from mt4 if more than one

ea attached with different name expert

something like ExpertRemove() if another EA is detected...

or return(0) if more than 1 expert attached....thanks

 
You can only attach one EA to any one chart. Don't open multiple charts with the same symbol.
 
whroeder1:
You can only attach one EA to any one chart. Don't open multiple charts with the same symbol.
Thanks for your reply @whroeder,all I need do is restrict copy EA from duplicating trade from an EA from same chart..that's why I ask ,cause I try to do it with Expertremove() it look like not possible...
 

Hi

when your EA run, code it creat one file, and open file.

if other EA run, it can not open the file, then EA stop work.

 
Trinh Dat:

Hi

when your EA run, code it creat one file, and open file.

if other EA run, it can not open the file, then EA stop work.


@Trinh Date this your example is mt5 code structure,

I only mean mt4 file code structure..thanks.

Reason: