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.

IChartObjectFactory issue
 Post subject: IChartObjectFactory issue Post rating: 0   New post Posted: Tue 31 Jan, 2012, 18:12 
User avatar

User rating: 0
Joined: Fri 16 Dec, 2011, 15:05
Posts: 26
Location: Italy, ventimiglia
Hello everybody,

I tried to create an instance of IChartObjectFactory, but the compiler complains: " 17:04:29 IChartObjectFactory cannot be resolved to a type"

I tried to import com.dukascopy.api.drawings; in that case the complain was :"17:09:52 Only a type can be imported. com.dukascopy.api.drawings resolves to a package".

So, I cannot find the way to use IChartObjectFactory.

Any suggestion?

Thank you in advance for support.

Calogero


 
 Post subject: Re: IChartObjectFactory issue Post rating: 0   New post Posted: Wed 01 Feb, 2012, 08:06 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Which JForex-API version are you using? Are you using some IDE (e.g. Eclipse, Netbeans)?


 
 Post subject: Re: IChartObjectFactory issue Post rating: 0   New post Posted: Wed 01 Feb, 2012, 11:45 
User avatar

User rating: 0
Joined: Fri 16 Dec, 2011, 15:05
Posts: 26
Location: Italy, ventimiglia
Hello,

jforex 2.6.38.1 and I don't use any IDE.

Thank you for support,
Calogero


 
 Post subject: Re: IChartObjectFactory issue Post rating: 0   New post Posted: Wed 01 Feb, 2012, 12:16 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
You need to add an import in the following way:
import com.dukascopy.api.drawings.*;

We strongly suggest you to use an IDE for writing your own strategy as it assists you in cases like suggesting imports and methods, as well avoid syntactic mistakes before compilation. Download Eclipse IDE for Java Developers here:
https://www.eclipse.org/downloads/
And then follow the instructions given here:
https://www.dukascopy.com/wiki/#Use_in_Eclipse


 

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