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.

Creating and using our own libraries
 Post subject: Creating and using our own libraries Post rating: 0   New post Posted: Wed 11 Aug, 2010, 04:05 

User rating: 0
Joined: Mon 09 Aug, 2010, 21:49
Posts: 30
I have a lot of functions, some of which are a thousand lines each or so. I'd like to create my own library, or maybe use and "include" if java does that?


 
 Post subject: Re: Creating and using our own libraries Post rating: 0   New post Posted: Wed 11 Aug, 2010, 05:53 
User avatar

User rating: 0
Joined: Thu 16 Jun, 2011, 21:37
Posts: 98
Location: SwitzerlandSwitzerland
create your own class(es) with your different methods in them. I'd use an IDE such as eclipse or netbeans to then compile your different class(es) as a library. From there you can include the library into the skeleton code from duka and use the different methods.

hope this helps,
jForexUser


 
 Post subject: Re: Creating and using our own libraries Post rating: 0   New post Posted: Thu 12 Aug, 2010, 17:45 

User rating: 0
Joined: Mon 09 Aug, 2010, 21:49
Posts: 30
OK, after I compile the classes, I would puth the in the startegy folder?


 
 Post subject: Re: Creating and using our own libraries Post rating: 0   New post Posted: Fri 13 Aug, 2010, 08:41 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
To access your library from strategy:
1)put your library into yours strategies file folder (../Strategies/files)
2)use a @Library annotation in your strategy to give the path to your library and to access it.


 

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