Dukascopy
 
 
Wiki JStore Search Login

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

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

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

TesterMain.java does not recieve data
 Post subject: TesterMain.java does not recieve data Post rating: 0   New post Posted: Wed 02 Dec, 2015, 20:21 
User avatar

User rating: 0
Joined: Wed 02 Dec, 2015, 19:59
Posts: 2
Location: Slovakia, Bratislava
Hello,
I am beginer with JForex API. I downloaded JForexClientLibrary, imported project into InteliJ IDE, I set username and password. Libraries are added, no compilation errors, no exceptions, but when I run TesterMain.java, strategy (MA_Play) is started and stopped imediatelly. It seems like I do not recieve any ticks (I tried it with debug breakpoint in strategy onTick method and with print some message).

2015-12-02 19:47:11.408 INFO TesterMain - Connecting...
2015-12-02 19:47:13.461 INFO AuthorizationClient - >> [{}]https://www-cdn-1.dukascopy.com/authorization-1/demo/auth?typus=0&munus=stngs&appello=DEMO10037sQGKzEU&licentio=240339bbee9a9c4bd35db1267ba1e22a9d389cb206590b84fec27db5dadb72b4&sermo=fb59dec8-5c46-4bb3-9e45-8d3f63d69957&stngs=1
2015-12-02 19:47:13.854 WARN AuthorizationClient - << [{}]{menu.item.interest.rates.calendar=/marketwatch/cal ... (I removed some text from this because it was too long)
2015-12-02 19:47:19.406 INFO TesterMain - Connected
2015-12-02 19:47:19.407 INFO TesterMain - Subscribing instruments...
2015-12-02 19:47:19.407 INFO TesterMain - Downloading data
2015-12-02 19:47:24.359 INFO ClientConnector - Authorization timeout
2015-12-02 19:47:24.447 INFO TesterMain - Starting strategy
2015-12-02 19:47:24.484 INFO TesterMain - Strategy started: 1
2015-12-02 19:47:24.484 INFO TesterMain - Getting prices before start time
2015-12-02 19:47:24.492 ERROR LoadNumberOfCandlesAction - Cannot get previous close price to create flats
2015-12-02 19:47:24.493 INFO TesterMain - Creating data loading threads
2015-12-02 19:47:24.551 INFO TesterMain - Getting prices before start time
2015-12-02 19:47:24.614 INFO TesterMain - Filling in-progress candles
2015-12-02 19:47:24.615 INFO TesterMain - Executing onStart
Started

2015-12-02 19:47:24.617 INFO TesterMain - Running
2015-12-02 19:47:24.619 INFO TesterMain - Executing onStop
Stopped

2015-12-02 19:47:24.631 INFO TesterMain - Strategy stopped: 1


I have same issue with TesterMainGUIMode.java when I run strategy result looks like this:
Image


 
 Post subject: Re: TesterMain.java does not recieve data Post rating: 0   New post Posted: Thu 10 Dec, 2015, 11:51 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
We were unable to reproduce this, please provide code sample that would show the problem.


 

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