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.

problem running strategy in IntelliJ
 Post subject: problem running strategy in IntelliJ Post rating: 0   New post Posted: Mon 10 Nov, 2014, 18:39 
User avatar

User rating: 0
Joined: Wed 05 Nov, 2014, 10:56
Posts: 23
Location: LatviaLatvia
Hello! I am quite new to programming Java, so I apologize for any silly questions that might arise.
I am using Intellij IDEA to write my code and this far I hadn't had any issues, but now when I tried new type of feed (range bars), I don't get the output that I am supposed to in my console. All I get is this:

2014-11-10 19:15:14.027 INFO Main - Connecting...
2014-11-10 19:15:15.187 INFO AuthorizationClient - Selecting the best server...
2014-11-10 19:15:21.402 INFO AuthorizationClient - retry count = 1, properties request time = 2014-11-10 19:15:21
2014-11-10 19:15:21.884 INFO AuthorizationClient - retry count = 1, properties response time = 2014-11-10 19:15:21
2014-11-10 19:15:22.054 WARN FeedDataProvider - JStore is disabled for the current user
2014-11-10 19:15:27.391 WARN WLabelData - White Label Image is not received
2014-11-10 19:15:27.391 INFO Main - Connected
2014-11-10 19:15:27.391 INFO Main - Subscribing instruments...
2014-11-10 19:15:30.536 INFO Main - Downloading data
2014-11-10 19:15:37.825 INFO Main - Starting strategy
2014-11-10 19:15:37.861 INFO Main - Strategy started: 1
2014-11-10 19:15:37.937 WARN WLabelData - White Label Image is not received
2014-11-10 19:15:45.949 INFO Main - Strategy stopped: 1

Process finished with exit code 0

I used your https://www.dukascopy.com/wiki/files/SingleSimpleFeedTest.java simple strategy just to test the feed, but for some reason I don't get the info that should come after each new bar but when I run it through JForex platform everything works fine - I get all the info I am supposed to like this for each new bar:

17:22:21 range bar completed: StartTime: 2014-11-04 08:20:21.030 EndTime: 2014-11-04 08:22:40.449 O: 1.25064 C: 1.25067 H: 1.25067 L: 1.25047 V: 490.52 FEC: 231 of feed: FeedDescriptor [dataType=PRICE_RANGE_AGGREGATION, instrument=EUR/USD, offerSide=Ask, period=7 Days, priceRange=TWO_PIPS, ]

I didn't change anything in the code (just the package on the very top to match mine). Could someone please enlighten me in regards to this minor problem I am having? Also what should I take in consideration if I am writing and testing my strategies in IntelliJ IDEA compared to JForex platform, I thought it should be the same thing, but apparently it's not.
Thanks in advance!


 
 Post subject: Re: problem running strategy in IntelliJ Post rating: 0   New post Posted: Fri 14 Nov, 2014, 09:04 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
There is a problem with the latest standalone build,
it is fixed and will be available in next standalone version.
Here you can see when a new version is available: https://www.dukascopy.com/swiss/english/forex/jforex/forum/viewforum.php?f=113


 
 Post subject: Re: problem running strategy in IntelliJ Post rating: 0   New post Posted: Mon 01 Dec, 2014, 12:04 
User avatar

User rating: 0
Joined: Wed 05 Nov, 2014, 10:56
Posts: 23
Location: LatviaLatvia
There are no future release dates and I don't see any progress regarding this issue!


 
 Post subject: Re: problem running strategy in IntelliJ Post rating: 0   New post Posted: Mon 01 Dec, 2014, 15:27 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
New SDK/API just released.
viewtopic.php?f=113&t=51954


 
 Post subject: Re: problem running strategy in IntelliJ Post rating: 0   New post Posted: Mon 01 Dec, 2014, 17:04 
User avatar

User rating: 0
Joined: Wed 05 Nov, 2014, 10:56
Posts: 23
Location: LatviaLatvia
Thanks a lot ;)


 

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