|
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 |
[inkexit]
|
Post subject: Creating and using our own libraries |
Post rating: 0
|
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?
|
|
|
|
 |
MoneyMechanics
|
Post subject: Re: Creating and using our own libraries |
Post rating: 0
|
Posted: Wed 11 Aug, 2010, 05:53
|
|
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
|
|
|
|
 |
[inkexit]
|
Post subject: Re: Creating and using our own libraries |
Post rating: 0
|
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?
|
|
|
|
 |
API Support
|
Post subject: Re: Creating and using our own libraries |
Post rating: 0
|
Posted: Fri 13 Aug, 2010, 08:41
|
|
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.
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|