when sending an order with mql4.OrderSend or trying to get a ticket of an already opened order via mql4.OrderSend I am only receiving the ticket "0".
Not sure what I am doing wrong. Simple sample code:
int ticket = mql4.OrderSend(mql4.Symbol(), mql4.OP_SELL, 0.1,0,0,0);
int orders = mql4.OrdersTotal();
for(int i = 0; i < orders; i++)
Print("order ticket: ",mql4.OrderTicket());