Highest Candel

 

Hi all!

I wanna search for the highest price since i opened my position.

https://www.youtube.com/watch?v=S7AiX4Qyvws

Like he is doing but from current price/candel to my last open price. Can anyone help?

 
iHighest from the open time to the current time.
 
Marco vd Heijden:
iHighest from the open time to the current time.

Thank you. How do i set the last open time tho? Thats what i have been looking for.

 
Marco vd Heijden:
iHighest from the open time to the current time.

I have Gotten this far.


double MFE;

   double High[];

   double Start;

   Start=HistoryDealGetInteger(trans.deal,DEAL_ENTRY);

   ArraySetAsSeries(High,true);

   CopyHigh(_Symbol,PERIOD_M1,0,Start,High);

   MFE= ArrayMinimum(High,0,Start);

   

   Comment ("MFE: ",MFE);

Reason: