I also recovered my sanity after finding this thread. Thank you guys! It makes absolutely no sense but Imaonarray doesn't work at all inside
robots.
Gatornuke's solution works for my code although with some pointer tweaking (it's because of my processing not that his solution is bad ;-) I'll also
start thinking about another workaround that doesn't actually involves implementing the
function from scratch.
Ok I've got it. Another way is to invert the array you want to get processed by Imaonarray and that's it. I've been doing the testing and the result
is as expected. Copy&paste your indicator code into your robot as is, then invert the elements of your array before every time you use
Imaonarray. Don't forget to re-invert that array if you want to keep using it so it keeps the values it should have :-)
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
I also recovered my sanity after finding this thread. Thank you guys! It makes absolutely no sense but Imaonarray doesn't work at all inside robots.
Gatornuke's solution works for my code although with some pointer tweaking (it's because of my processing not that his solution is bad ;-) I'll also start thinking about another workaround that doesn't actually involves implementing the function from scratch.