Thank you very much for your prompt answer! It solves part of my problem, but I still have one, described bellow.
I try to implement the following code:
public class LIVE11_point_and_figure_EURUSD implements IStrategy {
...
private IHistory history;
...
public void onStart(IContext context) throws JFException {
...
history = context.getHistory();
...
}
....
public void onTick(Instrument instrument, ITick tick) throws JFException {
...
IPointAndFigure prevBar1 = history.getPointAndFigure(selectedInstrument, OfferSide.BID, PriceRange.valueOf(1), ReversalAmount.valueOf(1), 1);
IPointAndFigure prevBar2 = history.getPointAndFigure(selectedInstrument, OfferSide.BID, PriceRange.valueOf(1), ReversalAmount.valueOf(1), 2);
....
}
....
}
When compiling I am getting the error "09:27:27 The method getPointAndFigure(Instrument, OfferSide, PriceRange, ReversalAmount, int) is undefined for the type IHistory".
But when I check the documentation, at this link:
https://www.dukascopy.com/client/javadoc// , I find that get.PointAndFigure method is included in the IHistory interface.
Can you please tell me what package of interface do I need to import in order for the above code to work and to be able to call the get.PointAndFigure method ?
Thanks again!