Switch EA's on and off individually

 

hi,


is there a script or a MT4 extension that allows one to switch an Expert Advisor on and off per sheet ?

like right cklick on the EA icon and/or a keyboard shortcut for the selected sheet - would be a great feature if integrated in mt4 by itself ;)


cheers - ahab666

 

yes one of the missing points on mt4. you cannot enable/disable per sheet individually. you can do some trick inside your EA and make a function like



bool iseaactive()

{

if (ObjectFind('disabled')==-1) { return (false); }

return (true);


}

.

.

int start

{

if (iseactive==false) { return(0); }

.

// your code here


return(0);


}



what you have todo is to create an object e.g a horizontal line and name it "disabled".



this idea is raw and spontan. But that way may work

Reason: