Forex EA simple coding question [closed]
- by Evgeny
I simply want to close all open orders in my EA when equity reaches -250$. I found an EA online that closes all orders. It has one CloseAll() function that closes all orders. So I copied it to my EA and called it in start() function like that:
if(AccountBalance()-AccountEquity()< -250)
CloseAll();
But EA works as usual, not restarting. If any programmer would point me in the right direction that would be great.