//+------------------------------------------------------------------+ //| Expert initialization function | //+------------------------------------------------------------------+ int OnInit() { //---> check for tester if(MQLInfoInteger(MQL_TESTER)==0) { //--- if not tester, create timer EventSetTimer(5); } //---> return(INIT_SUCCEEDED); } //+------------------------------------------------------------------+
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi,
When I use the EventSetTimer in any EA that uses an indicator the time required to do a backtest is highly increased even if the OnTimer event function is empty.
If the EA uses no indicador I feel no difference and It 's specially noticed when the indicador has heavy calculations.
Looks like the OnTimer forces the indicators to recalculate even if no new tick occurs.
This is a bug or a feature? Or am I doing something wrong?