iCustom loads and removes the custom indicator at every call
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'.
I see in the logs a huge list of:
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.