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.

loading bars error at 15:00:00 with remote mode
 Post subject: loading bars error at 15:00:00 with remote mode Post rating: 0   New post Posted: Wed 13 Aug, 2014, 03:25 
User avatar

User rating: 1
Joined: Tue 27 Aug, 2013, 17:39
Posts: 26
Location: China, Shanghai
i am testing a strategy in remote mode.at 15:00:00 the following error occurred and the strategy stopped if self.
ERROR
12.08.2014 15:00:00 at com.dukascopy.api.impl.History.getBar(History.java:162)
ERROR
12.08.2014 15:00:00 at com.dukascopy.api.impl.History.getHistoryBarBlocking(History.java:192)
ERROR
12.08.2014 15:00:00 at com.dukascopy.api.impl.History.getBars(History.java:488)
ERROR
12.08.2014 15:00:00 at com.dukascopy.api.impl.History$10.run(History.java:488)
ERROR
12.08.2014 15:00:00 at com.dukascopy.api.impl.History$10.run(History.java:491)
ERROR
12.08.2014 15:00:00 at com.dukascopy.api.impl.History.getBarsSecured(History.java:541)
ERROR
12.08.2014 15:00:00 Error while loading bars: com.dukascopy.api.JFException: Error while loading bars
ERROR
12.08.2014 15:00:00 com.dukascopy.charts.data.datacache.DataCacheException: java.io.IOException: I/O error @ singlejartest.SmartByIndicatorsRemote.GetRSIvalue(SmartByIndicatorsRemote.java:617)

the function GetRSIvalue is:
    public double GetRSIvalue(Instrument instrument) throws JFException {
        // RSI
        long rsifrom = myhistory.getBar(instrument, rsiperiod, rsiofferside, 3)
                .getTime();
        long rsito = myhistory.getBar(instrument, rsiperiod, rsiofferside, 0)
                .getTime();
        double rsivalue[] = myindicators.rsi(instrument, rsiperiod,
                rsiofferside, rsiappliedprice, rsitimeperiod, rsifilter,
                rsifrom, rsito);
        return rsivalue[rsivalue.length - 1];
    }

why does this happened and how to improve?is there any way to rerun the stopped strategy automatically?
thanks in advance


 
 Post subject: Re: loading bars error at 15:00:00 with remote mode Post rating: 0   New post Posted: Wed 13 Aug, 2014, 08:28 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Does the issue persist?


 
 Post subject: Re: loading bars error at 15:00:00 with remote mode Post rating: 0   New post Posted: Wed 13 Aug, 2014, 11:15 
User avatar

User rating: 1
Joined: Tue 27 Aug, 2013, 17:39
Posts: 26
Location: China, Shanghai
API Support wrote:
Does the issue persist?

if the issue occurred,the error message will appear many times till the strategy stopped.
the strategy have run days with no error,this is the first time,maybe 15:00:00 can give some clue

thank you!


 
 Post subject: Re: loading bars error at 15:00:00 with remote mode Post rating: 0   New post Posted: Wed 13 Aug, 2014, 11:18 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Apparently there was some temporary problem on the remote server. Please get back to us in case if it reoccurs.


 
 Post subject: Re: loading bars error at 15:00:00 with remote mode Post rating: 0   New post Posted: Fri 15 Aug, 2014, 02:55 
User avatar

User rating: 1
Joined: Tue 27 Aug, 2013, 17:39
Posts: 26
Location: China, Shanghai
unfortunately, failed again and stop itself just after i cancelled a pending order,remote strategy logs:

ERROR 14.08.2014 09:26:21 at com.dukascopy.api.impl.History.getBar(History.java:163)
ERROR 14.08.2014 09:26:21 at com.dukascopy.api.impl.History.getHistoryBarBlocking(History.java:193)
ERROR 14.08.2014 09:26:21 at java.security.AccessController.doPrivileged(Native Method)
ERROR 14.08.2014 09:26:21 at com.dukascopy.api.impl.History$10.run(History.java:489)
ERROR 14.08.2014 09:26:21 at com.dukascopy.api.impl.History$10.run(History.java:492)
ERROR 14.08.2014 09:26:21 at com.dukascopy.api.impl.History.getBarsSecured(History.java:561)
ERROR 14.08.2014 09:26:21 com.dukascopy.charts.data.datacache.DataCacheException: Failed to load in-progress candle data in timeout period [EUR/JPY, 4 Hours, Bid]: com.dukascopy.api.JFException: com.dukascopy.charts.data.datacache.DataCacheException: Failed to load in-progress candle data in timeout period [EUR/JPY, 4 Hours, Bid]
ERROR 14.08.2014 09:26:21 com.dukascopy.charts.data.datacache.DataCacheException: Failed to load in-progress candle data in timeout period [EUR/JPY, 4 Hours, Bid] @ singlejartest.SmartByIndicatorsRemote.GetRSIvalue(SmartByIndicatorsRemote.java:623)
INFO 14.08.2014 09:26:16 Order CANCELLED: #256944256 ENTRY BUY 0.1 mil. NZD/JPY @ LIMIT 85.6 IF ASK <= 85.6 - Position #66997751


 

Jump to:  

  © 1998-2025 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