I would first check whether the EA uses PERIOD_CURRENT or Period() when creating the indicator handle. The timeframe selected in tester stays as the current chart timeframe. Changing an input parameter does not automatically change PERIOD_CURRENT.
For timeframe optimization, create every indicator handle using your ENUM_TIMEFRAMES input directly. Print both _Period and the selected input in OnInit for every pass.
I would also recompile the source under build 6140 and clear the tester cache before comparing with the older results.
Thank´s Fxrobustix, I clear tester cache and recompile indicator and EA e not solved, I only have optimization result with same timeframe in configuration and parameter window, there is no erro in diary window of tester, if I try optmize fram timeframe M4 to M15 and config wind set to M6 there is only optimization results for M6 none for M4 M5 M10 M15 all blank.
I put timeframe in input and indicator handle, example:
//
input ENUM_TIMEFRAMES TIME_OPER = PERIOD_CURRENT;
//
//
int OnInit()
{
ATRdefinition = iATR(_Symbol,TIME_OPER,atr_period);
if(ATRdefinition==INVALID_HANDLE){Print("*** Erro Handle ATRdefinition:",GetLastError());return(INIT_FAILED);}
Good Afternoon !
I Always use M1 and 1 minute OHLC in tester configuration windows for optimization an its ok until 2026 june, I update Metatrader to version 5 build 6140 now 2026 august and now I have to set timeframe to same as I set in tester parameter window.
Example "Mean Reversion.Ex5" example EA if I put M1 in configuration window the tester and select optimization from M1 to M15 in parameter window the tester only show results for M1 timeframe, until june I have test results for M1 to M15.
Has anyone else had this problem and can help me? Thanks!
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Good Afternoon !
I Always use M1 and 1 minute OHLC in tester configuration windows for optimization an its ok until 2026 june, I update Metatrader to version 5 build 6140 now 2026 august and now I have to set timeframe to same as I set in tester parameter window.
Example "Mean Reversion.Ex5" example EA if I put M1 in configuration window the tester and select optimization from M1 to M15 in parameter window the tester only show results for M1 timeframe, until june I have test results for M1 to M15.
Has anyone else had this problem and can help me? Thanks!