I've done some further research and the problems seems to be coming from the fact that I update the buffers in the same loop cycle. I've issued a RefreshRates() but that is returning false, so my questions are:
How do I update the buffers in the same loop cycle and have them updated? And, why is RefreshRates() returning false?
Thanks again.
Fixed it by adding a update buffers loop cycle the and process buffers loop cycle!
imamushroom: why is RefreshRates() returning false?
Perhaps you should read the manual. RefreshRates - Timeseries and Indicators Access - MQL4 Reference
How To Ask Questions The Smart Way. 2004
How To Interpret Answers.
RTFM and STFW: How To Tell You've Seriously Screwed Up.
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
Hello,
I'm populating the previous 5 indexes of a custom buffer every 5 minutes via a function which I am calling like so:
But everytime I use the buffer I'm getting the value 2147483647.000000 being returned from the buffer which is EMPTY_VALUE in my case.
What am I doing wrong please?