double resulttotal;
double resultaverage;
int totalbar = 10;
for(int x = 1; x <= totalbar; x++)
{resulttotal = resulttotal + iClose(NULL, 0 , x);
}
resultaverage = resulttotal / totalbar;
double resulttotal;
double resultaverage;
int totalbar = 10;
for(int x = 1; x <= totalbar; x++)
{resulttotal = resulttotal + iClose(NULL, 0 , x);
}
resultaverage = resulttotal / totalbar;
Sorry buddy but you’ve got me all confused here with your query. Could you please explain it better so that we can come up with a solution that’s helpful to you and other traders too?