Hi,
yes, you are correct, a SAR indicator as well as other indicators returns the same info that is shown in charts.
Please consider this example
package jforex;
import com.dukascopy.api.*;
public class TestSAR implements IStrategy {
private IConsole console;
private IIndicators indicators;
public void onStart(IContext context) throws JFException {
this.console = context.getConsole();
this.indicators = context.getIndicators();
}
public void onAccount(IAccount account) throws JFException {
}
public void onMessage(IMessage message) throws JFException {
}
public void onStop() throws JFException {
}
public void onTick(Instrument instrument, ITick tick) throws JFException {
console.getOut().println(indicators.sar(Instrument.EURUSD, Period.TEN_SECS, OfferSide.BID, 0.02, 0.2, 2));
}
public void onBar(Instrument instrument, Period period, IBar askBar, IBar bidBar) throws JFException {
}
}