Strategy Tester too slow when use icustom function

 

dear guys

I made a EA using a indicator. I write a code below:

   double val=iCustom(NULL, 0, "RI - Pro",0,false,false,false,2,0);
   if(val<5000) gi_buy = TRUE;

 when run my EA with Strategy Tester, tester running too slow and in journal show lot of message like below:

2013.06.12 08:49:41 2013.04.09 02:01  RI - Pro EURUSD,M5: removed
2013.06.12 08:49:33 2013.04.09 01:03  RI - Pro V3.0 EURUSD,M5: loaded successfully

 

Then I change indicator write below

   double val=iCustom(NULL,0,"Slope_Direction_Line_10",80,3,0,2,0);
   if(val<5000) gi_buy = TRUE; 

and then I run tester again but I there is no any msg in journal. 

 

is there any way to run fast tester with my first indicator. is my writing code is ok.

 

Thanks is advanced
 

 

Try optimizing the codes and decreasing the number of bars on chart.

https://www.mql5.com/en/articles/1411 

 

I want to know why this msg show in my journal in my above code and not show below code mean below indicator: 

2013.06.12 08:49:41 2013.04.09 02:01  RI - Pro EURUSD,M5: removed
2013.06.12 08:49:33 2013.04.09 01:03  RI - Pro V3.0 EURUSD,M5: loaded successfully 

 
Try checking the Log file. Make sure you have the second indicator and that it loaded successfully by printing the value of iCustom.
 

Thanks ubzen. But sorry I didn't understand your msg. could please explain  more please. 

 
dralialadin:

I want to know why this msg show in my journal in my above code and not show below code mean below indicator: 

2013.06.12 08:49:41 2013.04.09 02:01  RI - Pro EURUSD,M5: removed
2013.06.12 08:49:33 2013.04.09 01:03  RI - Pro V3.0 EURUSD,M5: loaded successfully 

Continous reloading of custom indicator in EA - MQL4 forum
 

Dear WHRoeder

 

I read your link. but the solution is not there. is anyone know about this.

 
What part of

simple answer: Make sure you have history for time frame that keeps reloading itself.

Once you downloaded or converted "missing" Period make sure to restart your MT4 instance (I had to).

was unclear?
 
dralialadin:

dear guys

I made a EA using a indicator. I write a code below:

   double val=iCustom(NULL, 0, "RI - Pro",0,false,false,false,2,0);
   if(val<5000) gi_buy = TRUE;

 when run my EA with Strategy Tester, tester running too slow and in journal show lot of message like below:

2013.06.12 08:49:41 2013.04.09 02:01  RI - Pro EURUSD,M5: removed
2013.06.12 08:49:33 2013.04.09 01:03  RI - Pro V3.0 EURUSD,M5: loaded successfully

 

Then I change indicator write below

   double val=iCustom(NULL,0,"Slope_Direction_Line_10",80,3,0,2,0);
   if(val<5000) gi_buy = TRUE; 

and then I run tester again but I there is no any msg in journal. 

 

is there any way to run fast tester with my first indicator. is my writing code is ok.

 

Thanks is advanced
 

Your "RI - Pro" indicator is bugged.
 

what type of bugged do u think

 
dralialadin:

what type of bugged do u think

 

I can't answer without viewing the code, but if you get no problem with another indicator, and the problem occurs when using "RI - Pro", seems to me logical to think that there is a bug in your "RI - Pro" indicator.
Reason: