The maximum profit seem doesn't work
Ok, you are trying to tell the EA to close orders a when in profit && in loss? :)
void CloseBal() { if(AccountEquity()<=MinEquity || AccountEquity()>= AccountBalance()+ Maxprofit ) { for(int i=0; i<OrdersTotal(); i++) {
The maximum profit seem doesn't work