How can I code to check whether the last buy (or sell) order that I issued stopped out?

 

I am rephrasing this question, hoping to get an answer. How can I code to check whether the last buy (or sell) order that I issued stopped out? I am guessing that it is very simple.

Thanks.

 

History Pool contains your information.

OrderSelect() ticket or scan the tickets in this pool to map your order.

Have looksee about: OrderCloseTime(), OrderClosePrice(), OrderStopLoss()

this will allow you to make some comparisons... and decisions.

hth