int bar = Math.Abs(ChartBars.GetBarIdxByX(chartControl, cursorPointX) - ChartBars.ToIndex);
double volume = Volume.GetValueAt(bar);
double close = Close.GetValueAt(ChartBars.GetBarIdxByX(chartContr ol, cursorPointX));
close give me the right number but only for the specific bar i click on.
How do i sum the close of the numbers of barsago i click on.
In the chart i provided there was 5 barsago and i want to sum each close for the 5 barsago so if the 5 bars ago have a close price of 2873, 2873.5, 2873.75, 2873, 2773.25 the sum = 14266.5
i want close to reflect that result.
Is there a method or whatever for that?
Thanks for your patience.
Comment