How can I detect changing of pending position to open in Ontick


In Ontick, Why ordertype don’t change when pending position become open?

I am finally get change.

ulong ticket = OrderGetTicket(0);


return OrderGetDouble(ORDER_PRICE_OPEN) == 0;

An order type never changes, when triggered it becomes a position and get closed.

It does, however in MT 4 , OP_BUYSTOP becomes a OP_BUY.

2018/02/08 00:16:14 Completed #2770442 Romsterk1364

Are you using a netted account or hedging?

I, is my way not bad?

I’m using demo account.

My question is about mql5.