Download MetaTrader 5
To add comments, please log in or register
Do you have idle PCs? Connect them to MQL5 Cloud Network and earn money!
Ma Yuliang
251
Ma Yuliang 2016.03.20 14:51 

Dear Every One

I am using the function "iCustom"  to got data from zigzag .

code like this

tempDoule=iCustom(sym,period,"ZigZag",12,5,3,0,index);

in order to get more data I input some data to history data.

while I increase the int index to 30000 the script stopped with out error alert like "array out of range" .

it's just stopped .

and the max index is different from symbol to symbol .

I had tried "ArraySize"  but there is no array to get the size.

could any one tell me how to get the Max index. so that I could avoid the stop error.

Marco vd Heijden
Moderator
4506
Marco vd Heijden 2016.03.20 17:22  
Max=iBars(Symbol(),PERIOD_CURRENT)-1;
Vasyl Nosal
18468
Vasyl Nosal 2016.03.20 18:39  
Bars-1
/
To add comments, please log in or register