how can I detect changing of pending position to open in Ontick
I am finally get change.
ulong ticket = OrderGetTicket(0);
OrderSelect(ticket);
return OrderGetDouble(ORDER_PRICE_OPEN) == 0;
in Ontick, ordertype don't change when pending position become open.
It does, however in MT4, OP_BUYSTOP becomes a OP_BUY.
I see.so, is my way not bad?
Are you using a netted account or hedging?
I'm using demo account.
kentarohorie:
My question is about mql5.
Already answered.
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
An order type never changes, when triggered it becomes a position and get closed.
in Ontick, ordertype don't change when pending position become open.