Download MetaTrader 5

iEnvelopesOnArray cause an access violation error

To add comments, please log in or register
willgart
851
willgart  

Hi,

when I call the iEnvelopesOnArray function I receive an access violation error.

iEnvelopesOnArray(mybuffer,0,14,MODE_SMA,0,0.2,MODE_UPPER,i);

any other iXYZOnArray work fine (like iStdDevOnArray, iMaOnAraay etc...)

only the envelop one failed!!!

any idea why?

is there anything special to do when we use this function compared to the others?

Alain Verleyen
Moderator
31186
Alain Verleyen  
willgart:

Hi,

when I call the iEnvelopesOnArray function I receive an access violation error.

iEnvelopesOnArray(mybuffer,0,14,MODE_SMA,0,0.2,MODE_UPPER,i);

any other iXYZOnArray work fine (like iStdDevOnArray, iMaOnAraay etc...)

only the envelop one failed!!!

any idea why?

is there anything special to do when we use this function compared to the others?


Your total elements is 0 ?
willgart
851
willgart  

no,

0 = whole array

my array is correctly filled.


like I said... on the envelop function failed, all the others are working perfectly.

by the way... the documentation didn't reflect the function, we are supposed to be able to use a double value for the deviation, while the function support int values only!
and I'm not able to found any information about the envelop function usage on the internet, which mean its rarely used... and so certainly not debugged ;)

Ian Venner
2584
Ian Venner  
If you are a member of mql5.com in your profile there is a service desk section. You can post a bug report to MQ.
To add comments, please log in or register