Forum

Method for walk forward

Hi guys. I want to run an optimization inside mql5. now , I know that it possible to run a metatrader with a default value in optimize.ini file and use it's report file. but it's not ok to do that for multiple times. Does mql5 have any method to run optimization and return the results without

Define timeframe as input in mql5 and initializing it

Hi. enum timeframe { M30 = PERIOD_M30 , H1 = PERIOD_H1 , H4 = PERIOD_H4 , D1 = PERIOD_D1 , W1 = PERIOD_W1 , MN1 = PERIOD_MN1 , }; input timeframe = PERIOD_H4 ; int OnInit (){ macdHandle = iMACD ( _Symbol , PERIOD_H4 , 12 , 26 , 9 , PRICE_CLOSE ); } I just migrate from mql4 to mql5