DislikedHi, Ronald,
Thanks for writing the ea. Could you put in the following code into your ea?
Inserted Code[font=Arial]if(AccountFreeMargin()<(1*Lots)){ Print("We have no money. Free Margin = ", AccountFreeMargin()); return(0);[/font]
I found the ea is still trying to open positions even after it runs out of money.
Ignored