int start()
{ int sum=0;
int ticket[];
double profit[];
for(int i=0;i<OrdersTotal();i++)
{
int a=OrderSelect(i,SELECT_BY_POS,MODE_TRADES);
if(OrderSymbol()=="AUDCAD")
{ ticket[sum]=OrderTicket();
profit[sum]=OrderProfit();
sum++;
}
}
for(i=0;i<=sum;i++)
{
Print("Order ",i,ticket," ",profit);
}
return (0);