How to fetch last iFractals upper and lower values

 

Hi All

Pl help with the for loop code to fetch the last up and down ifractals value 

 Thx in advance

 

//+------------------------------------------------------------------+
int start()
  {
//----
  

   double upval=iFractals(NULL,0,MODE_UPPER,3);
   double dnval=iFractals(NULL,0,MODE_LOWER,3);
 
   // How to write a for loop to get the last upval and dnval iFractals
 
   Print("Current candle : UP Fractals = ", upval); 
   Print("Current candle : DN Fractals = ", dnval);
  
  

   return(0);
  }
//+------------------------------------------------------------------+ 

 

Forum on trading, automated trading systems and testing trading strategies


Hello,

This forum is about MT5/mql5, please post your question about MT4/mql4 on mql4.com forum.

  • They are more people who can answer there.
  • They are more people who can have similar problem there.
  • A forum is not only to get help but to share with the community, mql4/MT4 community isn't the same as mql5/MT5 community.

Reason: