Download MetaTrader 5
To add comments, please log in or register
Sign up to publish an article and receive 200 USD
willgart
842
willgart 2014.09.04 23:15 

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
28535
Alain Verleyen 2014.09.05 14:11  
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
842
willgart 2014.09.05 21:48  

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
2583
Ian Venner 2014.09.08 15:40  
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