First Order Ticket is always "2"

To add comments, please log in or register
osterchrisi
17
osterchrisi  

Why is it that any first order I open always has ticket number "2"?

I open my orders with this (relevant) code:

#include <Trade\Trade.mqh>
CTrade trade;

void onTick(){
        trade.Sell(lotsize, Pair1, BidPair1, ShortSL, ShortTP, "1S");
        trade.Buy(lotsize, Pair1, AskPair1, LongSL, LongtTP, "1B");
}

Anyone knows?

amando
2882
amando  
Bcs 1 is the deposit
osterchrisi
17
osterchrisi  
Aha! Makes sense. And there is no ticket #0?
To add comments, please log in or register