EA that can stop/exit other EA?
-
Hello!
I would like to create an EA with fxdreema that stops a other EA (only ex4, i have no mql-code) e.g. if the equity is below XY.
How can i do this?
Thank you!
-
so you would need to go with a custom code:
close a certain chart id (with the ea attached) if equity is below xy -
I think that few people asked something like this before,, but I don't know if there are any functions to do that, I never tried to solve this problem. Or, maybe there was a way to load another EA, but for the termination I don't know.
-
@beatking
Thank you. How could i do this :)?
-
can it somehow enable/disable autotrading ?
if one ea does it , it will affect all
-
To make the EA become SAD Face.
You need this :#include <WinUser32.mqh>
extern bool DisableAllEAs = TRUE;
void DisableEA() {
keybd_event(17, 0, 0, 0);
keybd_event(69, 0, 0, 0);
keybd_event(69, 0, 2, 0);
keybd_event(17, 0, 2, 0);
}int start() {
if (DisableAllEAs == TRUE) {
DisableEA();
return (0);
}
.
.
.
.}
found this , dont know how to use it or if it actually will work -
Here is how the code of the "Delay" block works in the studio - http://prntscr.com/ig6otk This is the only block where I use .dll and the #import code can be seen at the bottom. Normally I don't want to write code that uses .dll file