About out of range error
HHV[counta++]
You are increasing counta, probably beyond the size of HHV[] which you set at 10.
Topics concerning MT4 and MQL4 have their own section.
In future please post in the correct section.
I have moved your topic to the MQL4 and Metatrader 4 section.
You are increasing counta, probably beyond the size of HHV[] which you set at 10.
Topics concerning MT4 and MQL4 have their own section.
In future please post in the correct section.
I have moved your topic to the MQL4 and Metatrader 4 section.
if(counta+2 < ArraySize(HHV)) HHV[counta++]=iCustom(NULL,PERIOD_CURRENT,"Zigzag_with_line_at_lows_and_line_at_highs",Iperiod,4,3,3,i)
Add this if before your line like i wrote
Hi all
Im using MT4
I have the out of range error because of the below coding
But I dont know why this problem occur...
Please let me know how to fix it.
Thank you