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:
