High(iHighest) of a more specific period of time

 

2011.04.29 20:40edit | delete

Hello!

Please, somebody can help me to define "High(iHighest)" more specificly?

The following I can find in this Forum:

double highestPriceAfterBuy = High[iHighest(NULL, 0, MODE_HIGH, iBarShift(NULL, 0, OrderOpenTime()), 0)];



I need the High(iHighest) after closing Order ID 1. So I think this should be:

double highestPriceAfterClose = High[iHighest(NULL, 0, MODE_HIGH, iBarShift(NULL, 0, OrderCloseTime()), 0)];



1. But how can I say, that MT4 has to check the OrderID in this frame?

2. How can I define the time periode more specificly? E.a. I would need "OrderCloseTime + 20 minutes"?

3. How could I say High(Highest) since a specific time, e.a. "18:34"?



Thank You very much for Your help!