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

 

in Ontick, ordertype don't change when pending position become open.

 

I am finally get change.


ulong ticket = OrderGetTicket(0);

OrderSelect(ticket);

return OrderGetDouble(ORDER_PRICE_OPEN) == 0;

 
kentarohorie:

in Ontick, ordertype don't change when pending position become open.

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

It does, however in MT4, OP_BUYSTOP becomes a OP_BUY.

 
2018/02/08 00:16:14 Completed #2770442 Romsterk1364
 
Are you using a netted account or hedging?
 
Alain Verleyen:
An order type never changes, when triggered it becomes a position and get closed.

I see.so, is my way not bad?

 
SanjayBalraj:
Are you using a netted account or hedging?

I'm using demo account.

 
My question is about mql5.
 

kentarohorie:
My question is about mql5.

Already answered.