iEnvelopesOnArray cause an access violation error

 

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?

 
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 ?
 

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 ;)

 
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.
Reason: