The problem is that using the indicator in a specific block, then modifying that block later without having removed all relevant variables. Yoy cannot see the indicator anymore but the indicator is still there in the code. Yes, it's a common issue when not removing all elements from a block properly.
@behold In programming there are ALWAYS better ideas. All codes can be optimized. However, I'm not a programmed, just a fxDreema user :(. I can just recommend you what you said. Try to isolate segments of your project and test the separatedly. It will take time, but you will find the issue sooner than later. However, please try deviate as many blocks as possible to the 'on trade' tab. That will remove processing requirements to execute all those blocks on the 'on tick' tab.
Best Solution for this, so far is to Download the Source Code, mq5 file, use the replace all command (Cntrl + h) and replace all ", ," by "," and compile from the original MQL5 Editor then.
This has resolved for me... although not very practical.