Please help!! The highest price since the order is send??

 
I want to implement trailing stop into my transaction system. The trailing stop is based on the highest price, which the Euro/USD reached since the order is send (not for the whole Euro/USD chart). Do you have any idea how to receive the highest price for the period, since the order is send?? I tried following code:


int counted_bars=IndicatorCounted();
if (counted_bars>0) counted_bars--;
int limit=Bars-counted_bars;
for(int i=0; i<limit; i++){
double highest1 = High[iHighest(NULL,0,2,i,Point)] ;
}


From the syntax point of view it is ok, but it does not work in transaction system!!

Do you think this direction in coding is good??

Thanks in advance!!
 
simply monitor the price after you sendtyour order in your EA at each incoming tick with Close[0], or use the High[0]

something like :

if (OrderHasBeenSent==true && Close[0] > MyHighest) MyHighest = Close[0];

or

if (OrderHasBeenSent==true && High[0] > MyHighest) MyHighest = High[0];
Reason: