Dear coders,
I would like to know how to integrate the following into an EA:
As soon as the initial account balance is reduced by amount X, all open trades should be closed immediately, i.e.
If {actual accountbalance = initial accountbalance - X} THEN {close all open trades}
Could someone please translate this into MQL4?
Thank U
I would like to know how to integrate the following into an EA:
As soon as the initial account balance is reduced by amount X, all open trades should be closed immediately, i.e.
If {actual accountbalance = initial accountbalance - X} THEN {close all open trades}
Could someone please translate this into MQL4?
Thank U