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.

How to "include" another file?
 Post subject: How to "include" another file? Post rating: 0   New post Posted: Mon 18 Apr, 2011, 16:13 

User rating: 0
Joined: Tue 23 Nov, 2010, 10:03
Posts: 4
Hello support,

To make my code not too long, I wish to put some common funtions into one file and save it to the same location of my strategy.
How could I do this and could you give me an example?


 
 Post subject: Re: How to "include" another file? Post rating: 0   New post Posted: Wed 20 Apr, 2011, 23:25 

User rating: 0
Joined: Fri 15 Apr, 2011, 23:53
Posts: 3
Having the same problem here.. basically, how do you inherit a class in the Dukascopy platform?
Even if I put my baseclass in the same directory, I still get a "StrategyTemplate cannot be resolved to a type".. is there some setting for include directory we need to set in the application?

Thanks,
/Nianbig


 
 Post subject: Re: How to "include" another file? Post rating: 0   New post Posted: Mon 09 May, 2011, 16:47 

User rating: 0
Joined: Fri 15 Apr, 2011, 23:53
Posts: 3
Anyone know how this can be done?
I´m using OS X. Do I need to set a working directory or something?

I have the same problem trying to include my own indicators in my strategies.
Would be very thankful for advice or code samples.


 
 Post subject: Re: How to "include" another file? Post rating: 0   New post Posted: Wed 25 May, 2011, 07:39 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Consider exporting your classes to a jar and then importing it as a library, see:
https://www.dukascopy.com/wiki/index.php ... _libraries


 

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