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.

tick charts
 Post subject: tick charts Post rating: 0   New post Posted: Mon 09 Jan, 2012, 01:04 

User rating: -
https://www.dukascopy.com/wiki/index.php#Tick_Bars

Code for tick chart is not compiling, do we need to import some libraries?

ITickBarFeed cannot be resolved to a type


TickBarSize cannot be resolved to a type


A sample trading code would help.


 
 Post subject: Re: tick charts Post rating: 0   New post Posted: Mon 09 Jan, 2012, 08:50 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Please make sure that the following imports are used
import com.dukascopy.api.bar.ITickBar;
import com.dukascopy.api.listener.ITickBarFeedListener;


If it does not help, please provide strategy example that is not compiling.


 
 Post subject: Re: tick charts Post rating: 0   New post Posted: Mon 09 Jan, 2012, 14:50 

User rating: -
I'm using Jforex Live account, Dukascopy ver 2.12.22 which has JForex API ver 2.6.33. So trying to import new version of API from external location. Here is the code:

package jforex.strategies;
import java.util.*;
import com.dukascopy.api.*;
import com.dukascopy.api.Library;
@RequiresFullAccess
@Library("C:\JForex-API-2.6.50.jar;C:\JForex-API-2.6.50-sources.jar");


and the errors while compiling:

The import com.dukascopy.api.listener cannot be resolved
The import com.dukascopy.api.bar cannot be resolved
Invalid escape sequence (valid ones are  \b  \t  \n  \f  \r  \"  \'  \\ )


 
 Post subject: Re: tick charts Post rating: 0   New post Posted: Tue 10 Jan, 2012, 14:22 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
JForex client does not support running strategies that use newer API versions.
In order to call run strategies with new API, standalone JForex API should be used: https://www.dukascopy.com/wiki/#Standalone_JForex_API


 

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