I would like to return an array from my function, how can I do that?
Look!
int GetOrdresVente(){
int ordrevente;
int Tabordresvente[];
for(int j = OrdersTotal() - 1; j >= 0 ; j--){
if(OrderSelect( j, SELECT_BY_POS ) == true){
if(OrderSymbol() == Symbol()){
if(OrderType() == OP_SELL ){
ordrevente = OrderTicket();
ArrayResize( Tabordresvente, ArraySize( Tabordresvente ) + 1);
Tabordresvente[ArrayResize( Tabordresvente, ArraySize( Tabordresvente ) - 1 )] = ordrevente;
}
}
}
}
return Tabordresvente;
}
Thanks for replies!