barIdx = ChartBars.GetBarIdxByX(chartControl, clickPixelX); <- This works already
How do I get the EMA(10) value of this clicked bar?
I have my EMA instancied correctly
private ema EMA;
else if (State == State.Historical)
{
ema= EMA(10);
but when I call
ema[barIdx] I get an out-of-bound exception.
What am I doing wrong? Thanks!
Comment