int start()
{ double Pbuy,Psell;
for(int i=0;i<OrdersTotal();i++)
{ int a=OrderSelect(i,SELECT_BY_POS,MODE_TRADES);
if(OrderType()==OP_BUY)
{
Pbuy=Pbuy+OrderProfit();
}
if(OrderType()==OP_SELL)
{
Psell=Psell+OrderProfit();
}
}
Print("Profit BUY : ",Pbuy);
Print("Profit SELL : ",Psell);
return (0);
}