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

To add comments, please log in or register
kentarohorie
19
kentarohorie  

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

kentarohorie
19
kentarohorie  

I am finally get change.


ulong ticket = OrderGetTicket(0);

OrderSelect(ticket);

return OrderGetDouble(ORDER_PRICE_OPEN) == 0;

Alain Verleyen
36033
Alain Verleyen  
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.
whroeder1
17949
whroeder1  
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.

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

I see.so, is my way not bad?

kentarohorie
19
kentarohorie  
SanjayBalraj:
Are you using a netted account or hedging?

I'm using demo account.

kentarohorie
19
kentarohorie  
My question is about mql5.
Alain Verleyen
36033
Alain Verleyen  

kentarohorie:
My question is about mql5.

Already answered.

To add comments, please log in or register