Download MetaTrader 5

Multiple initialization of indicator using iCustom function

To add comments, please log in or register
TT77
9
TT77  

Hello,

I have an indicator that it is drawing himself on separate window at the bottom of the chart (#property indicator_separate_window). When I insert it into an expert advisor I wrote, at each value change on the market it reload the indicator and causes to the expert advisor to stucks the computer due to multiple windows that just keep opening for the "new" indicator.

 I never had this kind of behavior on other EAs I wrote. This is the first time it happen and I do not know why.

Does  the EA, on each market change initializes (init()) and de-initializes (deinit()) the indicator when using the iCustom function?

Someone may knows why is it happen?

Thank in advantage. 

Stanislav Korotky
19886
Stanislav Korotky  
Most likely, you have an error (probably a typo) in parameter list passed to the indicator. Check the number and order of parameters please.
TT77
9
TT77  

WOW, I can't believe it was that.

How stupid mistake.

Thank you very much. 

To add comments, please log in or register