HistoryOrderSelect not working for executed pending order - page 2

your pending triggered, it become Positions.

then you must use PositionSelectByTicket to check, not use HistoryOrderSelect.

Nguyen Nga:

your pending triggered, it become Positions.

then you must use PositionSelectByTicket to check, not use HistoryOrderSelect.


IMG you're right! Now it seems it works :) I'll do some extra checking but it seems this was the issue. Thanks!

Comments that do not relate to this topic, have been moved to "Pending orders issue".