New article Transferring an Indicator Code into an Expert Advisor Code. Indicator Structure has been published:
Author: Nikolay Kositsin
Pardon my question as I'm still new to MQL4 .
Why all this pain of conversion from indicator to EA when we can use icustom to "insert" the indicator into EA?
What are the disadvantages of doing this?
Thank you Nikolay for your very good article and the information disclosed. I myself have problems with an indicator that I have written which works very well on the chart. However, it returns totally wrong values when called from an EA. I hope that I will be able to solve the problem after digesting your article.
However, I am a bit confused regarding the solutions that you suggest. There are two examples of solutions: IndicatorPlan1 and IndicatorPlan2. What is the difference? Which one is the final solutions. Also, I am not sure I understand what you suggest. Should one paste the indicator code inside the EA? This would make the EA very complex and cumbersome. I would rather be able to call the custom indicator from inside the EA using "iCustom". Can you please elaborate on that and on how to use it in combination with an EA?