Chart Period > H1

 
My program works fine with chart time frames between M1 and H1, above that I get the error "not initialized string in array". I noticed that function iBars(NULL,0) does not return a value when the chart time frame is H4, D1, W1 or MN, likewise if ArrayCopySeries(adSeries,MODE_CLOSE) is used as a substitute. Yet the charts in all time frames are updated. Also iBars returns 12583 for M1, 1847 for M5, 560 for M15, 1287 for M30 and 560 for H1. Thanking you in advance, Take care.
 
We cannot reproduce described bug.
iBars functions works properly on all timeframes.
 
I have tested iBars in a seperate program and it works properly. I must look at my main program and debug it as to why I get unitialised error. Thank you very much for your prompt attention.
Why does iBar return a decreasing number for a higher time frame?
 
In init() line 2: if(Bars<MA_Period) return(-1); So all ensuing arrays do not get initialised.
and I wrongly presumed that the program would stop and not call the start() function.
Thank you Slawa for testing on your side. Take care.
Reason: