Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Submit JForex API bug reports in this forum only.
    Submit Converter issues in Converter Issues.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

getFXSentimentIndex in History Tester
 Post subject: getFXSentimentIndex in History Tester Post rating: 0   New post Posted: Tue 19 Apr, 2016, 20:42 

User rating: 0
Joined: Tue 19 Apr, 2016, 19:19
Posts: 6
Location: HungaryHungary
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?


 
 Post subject: Re: getFXSentimentIndex in History Tester Post rating: 0   New post Posted: Fri 22 Apr, 2016, 13:09 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hello

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


 
 Post subject: Re: getFXSentimentIndex in History Tester Post rating: 0   New post Posted: Thu 18 Aug, 2016, 11:03 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
The issue has been fixed and is available on current JForex Client version.


 

Jump to:  

cron
  © 1998-2024 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com