Hi,
Would you so kind to help me to find a bug? I am not a programmer so I need some help.
I tested with good results funnyo's Triple ZigZag EA and now I would like to be enable the "BasketProfitLoss" function. Unfortunately, the EA's has written two error's. Here you can find it. The error's note: "CloseBuyOrders - function is not defined" and "CloseSellOrders - function is not defined". Would you check it, please?
Thank you for your helping in advance!!!
Tom
//|---------basket profit loss
if(BasketProfitLoss)
{
double CurrentProfit=0,CurrentBasket=0;
CurrentBasket=AccountEquity()-AccountBalance();
if(CurrentBasket>maxEquity)maxEquity=CurrentBasket ;
if(CurrentBasket<minEquity)minEquity=CurrentBasket ;
if(CurrentBasket>=BasketProfit||CurrentBasket<=(Ba sketLoss*(-1)))
{
CloseBuyOrders(Magic);
CloseSellOrders(Magic);
return(0);
}
}



Reply With Quote
