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.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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: Андрей