QuoteDislikedvoid analyseOrders()
{
numberOfSells=0; numberOfBuys=0;
profitBuyAndSell=0;
sellLots=0; buyLots=0;
profitBSell=0; bsum=0;
for (int k=0; k<OrdersTotal(); k++)
{
res = OrderSelect(k,SELECT_BY_POS,MODE_TRADES);
if (OrderMagicNumber()==MagicNumber && OrderSymbol()==Symbol())
{
if (OrderType()==OP_SELL || OrderType()==OP_BUY)
profitBuyAndSell=profitBuyAndSell+OrderProfit();
if (OrderType()==OP_SELL) {
profitBSell=profitBSell+OrderProfit();
sellLots=sellLots+OrderLots();
numberOfSells++;
}
if (OrderType()==OP_BUY) {
bsum=bsum+OrderProfit();
buyLots=buyLots+OrderLots();
numberOfBuys++;
}
}
}
}
BSum, profitBSell are =0 after the loop.... very strange for me....
Vucking good EA coder... https://t.ly/AZjRM
#14 All Time Return:
398.5%