What should I do to get the same value of the plotted sma on the chart to variable smaFast ?I've tried this without success:
context.getChart(selectedInstrument).addIndicator(indicators.getIndicator("SMA"), new Object[] {10},
new Color[]{Color.MAGENTA}, new DrawingStyle[]{DrawingStyle.LINE}, new int[]{1});
double smaFast = indicators.sma(selectedInstrument, chart.getSelectedPeriod(),chart.getSelectedOfferSide(), AppliedPrice.CLOSE, 10, 0);