Discussion of article "Step on New Rails: Custom Indicators in MQL5"

 

New article Step on New Rails: Custom Indicators in MQL5 is published:

In this article we will consider the indicators, their structure, drawing, types and their programming details, as compared to MQL4. I hope that this article will be useful both for beginners and experienced developers, maybe some of them will find something new.

Author: Андрей

 
Hello and thank you for this great article, a question :
did you never experienced an anomaly where if you define more than one INDICATOR_DATA flagged buffer consequently on your iCustom derived class code you always get a bad -1 when try to retrieve data (with CopyBuffer/GetData) from all the INDICATOR_DATA flagged buffer except the first one ?

I was able to fix this problem only defining just one buffer flagged as INDICATOR_DATA and move all the others to INDICATOR_CALCULATIONS, this way CopyBuffer/GetData return the right copied items into the target arrays.

Reason: