Hello,
I write simple test strategy as follows:
@Override
public void onStart(final IContext context) throws JFException {
this.context = context;
engine = context.getEngine();
console = context.getConsole();
history = context.getHistory();
indicators = context.getIndicators();
for( double d: indicators.sma(
Instrument.EURUSD,
Period.FIFTEEN_MINS,
OfferSide.BID,
IIndicators.AppliedPrice.CLOSE,
200,
Filter.WEEKENDS,
3,
history.getLastTick( Instrument.EURUSD ).getTime(),
0) ) {
console.getOut().println(String.format("%7.5f", d));
}
} // public void onStart( IContext context )
and the result is (it looks like SMA of 3000 periods at 1 min):
Quote:
09:06:33 1.13147
09:06:33 1.13146
09:06:33 1.13144
instead of SMA of 200 periods at 15 min:
Quote:
09:06:33 1.13196
09:06:33 1.13192
09:06:33 1.13188
Is it JForex error? Would you fix it?
Regards,
FXer