Download MetaTrader 5

How to fetch last iFractals upper and lower values

To add comments, please log in or register
Speed up MQL5 Cloud Network. Install Strategy Tester Agent!
Venkat ramana
1732
Venkat ramana 2014.03.10 17:07 

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);
  }
//+------------------------------------------------------------------+ 

Alain Verleyen
Moderator
30711
Alain Verleyen 2014.03.10 20:04  

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.

To add comments, please log in or register