Monitor price after I have been stopped out, for possible re entry

 

HI,

I normaly place a BUY STOP and SELL STOP orders away from current price (both with stop loss orders) , and walk away from the computer, till next trading day.

For a BUY STOP order, what I want to do is find the highest price after I have been stopped out ( Stopped out by stop loss order or trailing stop ). So from the time the stop was activated till say 30 minutes after this time. So say stopped out at 2300GMT, there for time range would be 2300 to 2330 GMT. Find the high price, and when current price approaches the high level send an email/alert to allow me to consider re entry into the market.

I guess I need to do this, so after a order is closed,(1) do I have to go to the order history data find the most recent closed order, (2) get the time of this closing add 30- minutes then scan this time frame for price.

I assume order tickets are in order of there creation, 10001, 10002, 10003.

Is there any code about of getting information off the last most recent order closed like LastOrderClosed() ?????

Any ideas

Reason: