I have created 40 dataseries, is thier anyway of changing the dataseries name in a loop?
myDataSeries1 to myDataSeries + index, so I can loop through the names nice and easy?
Or or I use a dictionary or list box before this?
for (int index = 1; index < 41; index++)
{
if((Closes[0][0]/Closes[index][0])<SMA(myDataSeries + index.ToString,myInput0)[0])
{
RatioArray[index,1]=1;
}
else if((Closes[0][0]/Closes[index][0])>SMA(myDataSeries+"index",myInput0)[0])
{
RatioArray[index,1]=2;
}
}

Comment