I try to Sum all closes between
(ChartBars.GetBarIdxByX(chartControl, cursorPointX) - ChartBars.ToIndex);
I cant figure out how to do it.
Anyone can tell me?
int bar = Math.Abs(ChartBars.GetBarIdxByX(chartControl, cursorPointX) - ChartBars.ToIndex);
double volume = Volume.GetValueAt(bar);
double close = Close.GetValueAt(ChartBars.GetBarIdxByX(chartContr ol, cursorPointX));
for (double i = close; i >= ChartBars.ToIndex; i++);
double[] doubleArray = {close};
double sum1 = doubleArray.Sum();
If i input i it returns i is not define.
I dont know how to use For loop to gather all the closes and sum them. It seems to me something is missing.
I would also like to reduce the number of decimals:
Can i use
problem i get error message class member declaration expected
Ty
Comment