AddDataSeries("xyz", same, same);
and I use:
if ( Closes[0][0] > Closes[1][0]) ....
however, on main chart, if i am on bar (at 2010 year), the secondary data may not yet be available (i.e. if secodnary data starts after 2011 year).
so, indicator fire error "accessing the index that doesnt exist"...
so, i wanted to find a way to check if Closes[1] had an available index at 0, however such codes doesnt work:
if(Closes[1].IndexOf(0) ) ......
how can i check if specific index is loaded at this moment?
prbably you understand my problem.
Comment