Print("Account equity = ",AccountEquity());
You will need to have somebody create an if statement using the above statement (modified), and incorporate it into the program attached. Then you would have a program that if(AccountEquity() < 50.00 - Example) it proceeds to close all the positions. If it is above 50.00, the program stops the logic flow to the below attached program to close everything. If you are running the 4 major currencies, this ea would have to run on a 5th graph. I am not a programmer, but with some help by another programmer like codeguru, you may achieve the program you desire. Because I shared this with you, I would like to ask that you share the finished program with me, and possibly others on this forum. Good luck on the program modification.
ddiebold@sbcglobal.net
Dave
<><<