iCustom loads and removes the custom indicator at every call

 

I see in the logs a huge list of: 

 

 

2014.10.29 16:14:47.481 2013.08.20 23:00  Custom indicator Typical USDJPY,M15: removed

2014.10.29 16:14:47.481 2013.08.20 23:00  Custom indicator Typical USDJPY,M15: loaded successfully

2014.10.29 16:14:47.465 2013.08.20 23:00  Custom indicator Typical USDJPY,M15: removed

2014.10.29 16:14:47.465 2013.08.20 23:00  Custom indicator Typical USDJPY,M15: loaded successfully

2014.10.29 16:14:47.465 2013.08.20 23:00  Custom indicator Typical USDJPY,M15: removed

2014.10.29 16:14:47.465 2013.08.20 23:00  Custom indicator Typical USDJPY,M15: loaded successfully

2014.10.29 16:14:47.465 2013.08.20 23:00  Custom indicator Typical USDJPY,M15: removed

 

It's being loaded and destroyed every time I call iCustom, and this is killing the performance of my EA.

 I need this to load the typical value of the same currency on a different time frame, at every tick I'm retrieving the 40 previous values, so it gets loaded and destroyed 40 times per tick. 

 

Is there a way to keep the custom indicator in memory?

 

I tried adding the indicator to the chart, but it seems to be loading and deleting it still at every call.  

 
DonGiulio: I see in the logs a huge list of:
Use this and you would have found this and especially this
 
Can happen if the parameters entered in iCustom do not match the indicator properly
 
SDC:
Can happen if the parameters entered in iCustom do not match the indicator properly
Yes. But mine behaves differently. The indicator used gulping huge memory until journal says not enough memory. When I fixed the parameter, all good again.
 

This thread may be very old but I thought this might help someone. I had the same problem when I used iCustom function on my EA. Here is my solution:

My custom indicator generates buy and sell arrows. Initially I added buffers in the indicator's 'input' tab and 'colors' tab. So I removed all 'input' items from iCustom. This solved my problem of overloading the Journal tab with the message 'loaded successfully and removed'.