Dukascopy Support Board
http://www.dukascopy.com/swiss/english/forex/jforex/forum/

getFXSentimentIndex in History Tester
http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=16&t=53910
Page 1 of 1

Author:  p3g2or [ Tue 19 Apr, 2016, 20:42 ]
Post subject:  getFXSentimentIndex in History Tester

I tested the getFXSentimentIndex in the History Tester.

This is my code:
    public void onBar(Instrument instrument, Period period, IBar askBar, IBar bidBar) throws JFException {
        long time = askBar.getTime();
        IFXSentimentIndex index = dataService.getFXSentimentIndex(instrument, time);
        console.getOut().println(String.format("FXSI | %s | %s | %.5f", sdf.format(time), sdf.format(index.getIndexTime()), index.getIndexValue()));
    }

and the output:
Quote:
2016-04-19 21:31:27 FXSI | 2016-04-17 20:00:00.000 | 2016-02-23 14:31:41.000 | 57.92000
2016-04-19 21:31:27 FXSI | 2016-04-17 20:30:00.000 | 2016-02-23 14:31:41.000 | 57.92000
2016-04-19 21:31:27 FXSI | 2016-04-17 20:45:00.000 | 2016-02-23 14:31:41.000 | 57.92000
2016-04-19 21:31:27 FXSI | 2016-04-17 20:50:00.000 | 2016-02-23 14:31:41.000 | 57.92000
2016-04-19 21:31:27 FXSI | 2016-04-17 20:55:00.000 | 2016-02-23 14:31:41.000 | 57.92000
2016-04-19 21:31:27 FXSI | 2016-04-17 20:59:00.000 | 2016-02-23 14:31:41.000 | 57.92000
2016-04-19 21:31:27 FXSI | 2016-04-17 20:59:50.000 | 2016-02-23 14:31:41.000 | 57.92000
2016-04-19 21:31:27 FXSI | 2016-04-17 20:59:40.000 | 2016-02-23 14:31:41.000 | 57.92000
2016-04-19 21:31:27 FXSI | 2016-04-17 20:59:30.000 | 2016-02-23 14:31:41.000 | 57.92000
2016-04-19 21:31:27 FXSI | 2016-04-17 20:59:20.000 | 2016-02-23 14:31:41.000 | 57.92000


The last index value is 8 weeks old!
Or I made a mistake somewhere?

Author:  API Support [ Fri 22 Apr, 2016, 13:09 ]
Post subject:  Re: getFXSentimentIndex in History Tester

Hello

Yes this is a bug. It will be fixed as soon as possible.

Author:  API Support [ Thu 18 Aug, 2016, 11:03 ]
Post subject:  Re: getFXSentimentIndex in History Tester

The issue has been fixed and is available on current JForex Client version.

  Page 1 of 1