Highest Candel

To add comments, please log in or register
Tweeker
54
Tweeker  

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?

Marco vd Heijden
Moderator
8429
Marco vd Heijden  
iHighest from the open time to the current time.
Tweeker
54
Tweeker  
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.

Tweeker
54
Tweeker  
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);

To add comments, please log in or register