Download MetaTrader 5
To add comments, please log in or register
Share links from other resources. Now they have a description.
Tradeing Trader
556
Tradeing Trader 2014.03.30 10:07 

Hello, i have create a indicator and i see in the Experts Journal during backtest the info printed that the indicator get loaded successfult and when i end the backtest i get many time the info that the indicator have been removed.

What is the problem, why does metatrader makes such think, load the indicator hundert times? I just have write one time ICustom() to load him into EA.

qjol
3243
qjol 2014.03.30 10:40  
PlanandTrade:


I just have write one time ICustom() to load him into EA.


i assume in OnTick ?!

so every tick is it reloaded

SYED NAUFAL GADDAFI
1401
SYED NAUFAL GADDAFI 2014.03.30 10:45  
qjol:

i assume in OnTick ?!

so every tick is it reloaded


Use a timer so that it will not load and unload every second ...
Ian Venner
2583
Ian Venner 2014.03.30 13:41  
On tick shouldnt make an EA load and reload an indicator
Keith Watford
Moderator
7887
Keith Watford 2014.03.30 16:48  

If the indicator has a critical error, would that cause it to be removed and reloaded?

Or would it just be removed once and that is it?

Ian Venner
2583
Ian Venner 2014.03.31 05:05  
I think it would just generate an error in the experts log and be removed, the only thing I have seen cause an indicator to be loaded and removed every tick is if the indicator itself calls another indicator via iCustom()
/
To add comments, please log in or register