in Ontick, ordertype don't change when pending position become open.
I am finally get change.
ulong ticket = OrderGetTicket(0);
return OrderGetDouble(ORDER_PRICE_OPEN) == 0;
It does, however in MT4, OP_BUYSTOP becomes a OP_BUY.
I see.so, is my way not bad?
I'm using demo account.
kentarohorie: My question is about mql5.
Forum on trading, automated trading systems and testing trading strategies
how can I detect changing of pending position to open in Ontick
Alain Verleyen, 2018.02.07 13:21