|
Hi
You might want to revise this line...
total = OrdersTotal();
as it returns ALL open orders not just the ones associated with your EA. Better to check for orders in the same currency and having the same magic number otherwise it throws your logic out.
Just an FYI
Good luck
Lux
|