Dukascopy
 
 
Wiki JStore Search Login

Backtesting freezes at "Getting prices before start time" phase
 Post subject: Backtesting freezes at "Getting prices before start time" phase Post rating: 0   New post Posted: Thu 02 Feb, 2017, 18:38 

User rating: 0
Joined: Thu 02 Feb, 2017, 18:36
Posts: 2
Location: SwitzerlandSwitzerland
Hello,

When backtesting using the SDK, the program does not go past the following messages:

2017-02-02 18:34:02.226 INFO  ClientConnector - Primary connect successfull, primarySession is [MinaIoSessionWrapper [session=(SOCKET, R: d-ja-gva-91-191.dukascopy.com/194.8.15.191:10443, L: /10.50.100.126:49348, S: d-ja-gva-91-191.dukascopy.com/194.8.15.191:10443)]], address is [d-ja-gva-91-191.dukascopy.com/194.8.15.191:10443]
2017-02-02 18:34:02.677 INFO  GreedClientAuthorizationProvider - !!!:Thread[ClientConnector,5,main]
2017-02-02 18:34:02.680 DEBUG TesterClientImpl - Authorized
2017-02-02 18:34:02.682 INFO  ClientConnector - Child socket connection could be accepted now by server [<ChildSocketAuthAcceptorMessage(parentSessionId=5695302a-c794-4b6f-a737-3264dd12d439,timestamp=1486056842633)>], transport client [null, d-ja-gva-91-191.dukascopy.com/194.8.15.191:10443]
2017-02-02 18:34:02.687 INFO  InstrumentManager - InstrumentManager created.
2017-02-02 18:34:03.045 WARN  WLabelData - White Label Image is not received
2017-02-02 18:34:03.046 INFO  RunBacktest - Connected
2017-02-02 18:34:03.047 INFO  RunBacktest - Subscribing instruments...
2017-02-02 18:34:03.048 INFO  RunBacktest - Downloading data
2017-02-02 18:34:08.582 INFO  ProtocolVersionClientNegotiatorFilter - Server: null responded with version: 4
2017-02-02 18:34:08.582 INFO  ClientConnector - Child session opened for [d-ja-gva-91-191.dukascopy.com/194.8.15.191:10443], sending [<ChildSocketAuthAcceptorMessage(parentSessionId=5695302a-c794-4b6f-a737-3264dd12d439,timestamp=1486056842633)>], successful consequent attempt [1]
2017-02-02 18:34:20.749 INFO  RunBacktest - Starting strategy
2017-02-02 18:34:22.319 INFO  RunBacktest - Strategy started: 1
2017-02-02 18:34:22.320 INFO  RunBacktest - Getting prices before start time


We use the following Java libraries:

    // dukascopy API for trading
    compile(group: 'com.dukascopy.dds2', name: 'DDS2-jClient-JForex', version: '3.0.16') {
        exclude(module: 'slf4j-jdk14')
    }
    compile group: 'com.dukascopy.api', name: 'JForex-API', version: '2.13.26', classifier: 'sources'


 
 Post subject: Re: Backtesting freezes at "Getting prices before start time" phase Post rating: 0   New post Posted: Fri 03 Feb, 2017, 08:20 
JForex Master
User avatar

User rating:
Joined: Wed 16 Sep, 2009, 18:23
Posts: 1054
Location: Geneva, Switzerland
We are on this problem.


 
 Post subject: Re: Backtesting freezes at "Getting prices before start time" phase Post rating: 0   New post Posted: Sat 04 Feb, 2017, 10:11 
User avatar

User rating: 0
Joined: Wed 21 Sep, 2011, 10:16
Posts: 1
Location: Poland,
TesterClient actually does return from "Getting prices before start time" after significant amount of time.
During that time it creates a huge but empty directory structure in your JForex cache.
Then it runs your strategy but feeds no data into it.

Please, let us know as soon as this problem has been fixed.


 
 Post subject: Re: Backtesting freezes at "Getting prices before start time" phase Post rating: 0   New post Posted: Wed 08 Feb, 2017, 16:10 
JForex Master
User avatar

User rating:
Joined: Wed 16 Sep, 2009, 18:23
Posts: 1054
Location: Geneva, Switzerland
Please update to version 3.1.0 (JForex 3) or 2.45.67 (JForex).


 

Jump to:  

cron
  © 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