Download MetaTrader 5

what's the meaning of error "critical runtime error" when doing back testing?

To add comments, please log in or register
1000 paid orders are executed in Freelance service. Sign up!
zifu wang
636
zifu wang 2011.03.18 17:49 

HP 0 Agent_192.168.0.10:2005 22:42:19 EURUSD: history synchronization completed [4090 Kb]
RP 2 Agent_192.168.0.10:2003 22:42:20 genetic pass (9, 110627387037426572) tested with error "critical runtime error"
QR 2 Agent_192.168.0.10:2002 22:42:21 genetic pass (10, 134774014628841714) tested with error "critical runtime error"
GF 2 Agent_192.168.0.10:2004 22:42:22 genetic pass (2, 264134954275310602) tested with error "critical runtime error"
DD 2 Agent_192.168.0.10:2003 22:42:22 genetic pass (12, 325680458438922693) tested with error "critical runtime error"
NG 2 Agent_192.168.0.10:2002 22:42:22 genetic pass (13, 290864787677294524) tested with error "critical runtime error"
KE 2 Agent_192.168.0.10:2003 22:42:24 genetic pass (15, 51427463641274676) tested with error "critical runtime error"
GJ 2 Agent_192.168.0.10:2001 22:42:24 genetic pass (7, 100705350637282872) tested with error "critical runtime error"
GH 2 Agent_192.168.0.10:2002 22:42:24 genetic pass (16, 319963509674294406) tested with error "critical runtime error"

 Is it generating the error when returing non-zero from OnInit()? 

Rashid Umarov
Admin
11812
Rashid Umarov 2011.03.18 18:18  

See  Runtime Errors

There are several critical errors, appearing which a program is terminated immediately :

  • division by zero;
  • going beyond array ranges;
  • using an incorrect object pointer;


zifu wang
636
zifu wang 2011.03.18 18:59  
Rosh:

See  Runtime Errors



 

Thanks Rosh.

ChuckM
77
ChuckM 2011.03.18 21:50  
Rosh:

See  Runtime Errors



I get the "critical runtime error" from all my Remote Agents.  I quit trying to use them.  Local Agents work fine.
Rashid Umarov
Admin
11812
Rashid Umarov 2011.03.18 22:17  
ChuckM:
I get the "critical runtime error" from all my Remote Agents.  I quit trying to use them.  Local Agents work fine.
Update them manually, please.
ChuckM
77
ChuckM 2011.03.19 01:16  
Rosh:
Update them manually, please.
My mistake...I was relying on a poor memory.  I get "cannot initialize expert" errors on my Remote Agents...apparently because of a DLL call.
Stephen Njuki
5179
Stephen Njuki 2012.01.04 11:56  

When running a test I get no errors at all. However when optimising I get the ' tested with error "critical runtime error" ' message for a lot of passes.

Because the regular test does not bring up any error messages, I am unable to  pinpoint the problem via printf or Alert. I know my arrays are in order, I have no zero divides and am using no pointers... What could the problem be? 

Stephen Njuki
5179
Stephen Njuki 2012.01.05 11:08  

The problem seems to come from my not using pointers. It seems I the optimiser expects them for classes such as CiOpen. Now that am using pointers, and the optimiser is indicating no errors, the tester log does show some warnings since my DeInit function does not delete these pointers. 

I have tried to delete them like so but to no avail.

 

CiOpen *op;
//+------------------------------------------------------------------+
//| Deinitialization                                                 |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
  {
   if(CheckPointer(op)!=POINTER_INVALID)
     {
      op.Clear();
      op.Shutdown();
      //op.~CArrayObj();
     }
  }

 I know I have seen the proper code to do this on this forum somewhere but I seem to have failed to trace this page. Can someone please post the link?

Stephen Njuki
5179
Stephen Njuki 2012.01.05 11:24  
ssn:

The problem seems to come from my not using pointers. It seems I the optimiser expects them for classes such as CiOpen. Now that am using pointers, and the optimiser is indicating no errors, the tester log does show some warnings since my DeInit function does not delete these pointers. 

I have tried to delete them like so but to no avail.

 

 I know I have seen the proper code to do this on this forum somewhere but I seem to have failed to trace this page. Can someone please post the link?

Should have used

      delete op;

 

Tomasz Tauzowski
474
Tomasz Tauzowski 2012.09.05 08:02  

I have similar problem. I get the same error but when doing optimization on both local and remote agents - one-pass testing works fine.

Morover when I run metatrader on other instance of system (newly installed - the same type - windows 7 64bit home edition) everything is OK.

 

  

To add comments, please log in or register