ChartIndicatorAdd not working in tester, error 4014

 

My EA puts custom indicator it uses on chart.

So when used as EA, or in visual testing mode, it works.

But when used in normal testing mode, it fails, and the indicator is not drawn on chart:

   Print("Chart indicator added: ", ChartIndicatorAdd(0, 0, handleEntryParabolic));
   Print("Error: ", GetLastError());
LP      0       Core 1  16:11:08        2012.12.28 23:59:59   Chart indicator added: false
QG      0       Core 1  16:11:08        2012.12.28 23:59:59   Error: 4014

Any solutions?

I would love to have it after the test is finished, at least, but it fails in OnDeInit() as well.

Also, what criteria is used for choosing which used indicators will be drawn on graph?
Because some indicators are added on graph automatically, and some are not.

 
graziani:

My EA puts custom indicator it uses on chart.

So when used as EA, or in visual testing mode, it works.

But when used in normal testing mode, it fails, and the indicator is not drawn on chart:

Any solutions?

I would love to have it after the test is finished, at least, but it fails in OnDeInit() as well.

Also, what criteria is used for choosing which used indicators will be drawn on graph?
Because some indicators are added on graph automatically, and some are not.

How about using template (click here) or open MT5 help file.
 

templates are useless because it is the same as putting the indicator manually: i have to set the parameters to new values manually.

open MT5 help file? should i close it first and then open again? :P

thanks on trying to help, phi. 

 

Well, I created EA that display 100 Moving Averages, and on testing, some MAs were displayed, I don't know exactly how many but for I get 4014 for all ChartIndicatorAdd() of those MAs.

I guest that's the limitation of ST.  

You should print the help files first, on a rock like the Flintstone , coz this is rocking help files. ;D