|
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.
JForex and Netbeans |
us_copiosus
|
Post subject: JForex and Netbeans |
Post rating: 0
|
Posted: Sat 07 Sep, 2013, 04:16
|
|
User rating: 2
Joined: Fri 02 Mar, 2012, 22:08 Posts: 200 Location: New Zealand, Dunedin
|
Sorry to bore everybody ........  Have made good progress lately with assistance from JLongo and others Thank you I am still confused over JForex API and its use under NetBeans IDE I have Netbeans installed and working well I have added various .jar files as needed - all OK I have various strategies coded and one of my final jobs is to get the JForex API into NetBeans Do I use JForex-SDK or 'the marven project' as suggested on Dukascopy's website? I have tried to follow instructions using the marven project but get lost very quickly............. Bob M
|
|
|
|
 |
jlongo
|
Post subject: Re: JForex and Netbeans |
Post rating: 1
|
Posted: Sat 07 Sep, 2013, 14:12
|
|
User rating: 94
Joined: Mon 06 Feb, 2012, 12:22 Posts: 357 Location: Portugal, Castelo Branco
|
Hi us_copiosus: Follow the example provided on https://www.dukascopy.com/wiki/#Use_in_NetBeansIn a simple way, you open the downloaded JForex SDK file (after extraction) as a maven project, before use, you build the project (right click on project and build) and you are ready to use it creating your java code on source packages. I recommend to add javadoc and sources (with right click on dependencies). If you need to add other libraries you right click on dependencies and add (can be a library based on a central respository or a local jar or project). Trade well JL
|
|
|
|
 |
us_copiosus
|
Post subject: Re: JForex and Netbeans |
Post rating: 0
|
Posted: Sat 07 Sep, 2013, 22:07
|
|
User rating: 2
Joined: Fri 02 Mar, 2012, 22:08 Posts: 200 Location: New Zealand, Dunedin
|
Hi JLongo
Thanks for that....................
Am I understanding this all........
I test the strategy on demo account from within NetBeans but to go live I go back to the JForex platform (as per usual) ?
Bob M
|
|
|
|
 |
jlongo
|
Post subject: Re: JForex and Netbeans |
Post rating: 2
|
Posted: Sat 07 Sep, 2013, 22:27
|
|
User rating: 94
Joined: Mon 06 Feb, 2012, 12:22 Posts: 357 Location: Portugal, Castelo Branco
|
Hi us_copiosus:
You only can run strategies outside jforex if you use a external client or the source examples in the downloaded JForex SDK, for example with TesterMainGUI.java.
To run inside JForex, you need to open the java file you have done in Netbeans and compile it inside JForex. Only after this step you can run your strategy there. In this case, Netbeans only act as editor, but more powerfull than the one with JForex. You need the SDK inside Netbeans to help you to write and to validate your code.
Don't know if this are your doubts...
Trade well
JL
|
|
|
|
 |
us_copiosus
|
Post subject: Re: JForex and Netbeans |
Post rating: 0
|
Posted: Sun 08 Sep, 2013, 06:55
|
|
User rating: 2
Joined: Fri 02 Mar, 2012, 22:08 Posts: 200 Location: New Zealand, Dunedin
|
Yes - that answers my question
Many thanks
Bob M
|
|
|
|
 |
us_copiosus
|
Post subject: Re: JForex and Netbeans |
Post rating: 0
|
Posted: Sun 08 Sep, 2013, 17:28
|
|
User rating: 2
Joined: Fri 02 Mar, 2012, 22:08 Posts: 200 Location: New Zealand, Dunedin
|
Hi JLongo
One further question.............
I wish to add a .jar file to my project I have this file in a temp folder on my computer
I right click on Dependencies and choose Add Dependency Unsure what to do next?
Bob M
|
|
|
|
 |
jlongo
|
Post subject: Re: JForex and Netbeans |
Post rating: 0
|
Posted: Sun 08 Sep, 2013, 19:16
|
|
User rating: 94
Joined: Mon 06 Feb, 2012, 12:22 Posts: 357 Location: Portugal, Castelo Branco
|
Hi us_copiosus:
There is no righ way to do that in Netbeans i know of... One workarround if your library don't exist at maven repositories is: right click on dependencies and add... on next window search for any library from maven repository and finish with it. After, search on dependencies this last one library, right click and install artifact locally... and point it to the jar you pretend.
Trade well
JL
|
|
|
|
 |
us_copiosus
|
Post subject: Re: JForex and Netbeans |
Post rating: 0
|
Posted: Mon 09 Sep, 2013, 00:44
|
|
User rating: 2
Joined: Fri 02 Mar, 2012, 22:08 Posts: 200 Location: New Zealand, Dunedin
|
Thanks I shall try this when I get home  It is the weka.jar (data mining) that I am wishing to add to the JForex-SDK project Kind regards Bob M Dunedin New Zealand (soon to be holder of the next America's cup!)
|
|
|
|
 |
jlongo
|
Post subject: Re: JForex and Netbeans |
Post rating: 0
|
Posted: Mon 09 Sep, 2013, 00:52
|
|
User rating: 94
Joined: Mon 06 Feb, 2012, 12:22 Posts: 357 Location: Portugal, Castelo Branco
|
Seems to me that weka has a central repository, that means you can add the dependency from repository... just search by weka, find and select the one you want.
Trade well
JL
|
|
|
|
 |
API Support
|
Post subject: Re: JForex and Netbeans |
Post rating: 0
|
Posted: Mon 09 Sep, 2013, 07:51
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
us_copiosus wrote: I wish to add a .jar file to my project I have this file in a temp folder on my computer
I right click on Dependencies and choose Add Dependency Unsure what to do next? See: viewtopic.php?f=65&t=49933On another note - please post JForex-SDK/JForex-API related questions here in Automated Trading/Knowledge Base.
|
|
|
|
 |
us_copiosus
|
Post subject: Re: JForex and Netbeans |
Post rating: 0
|
Posted: Mon 09 Sep, 2013, 22:21
|
|
User rating: 2
Joined: Fri 02 Mar, 2012, 22:08 Posts: 200 Location: New Zealand, Dunedin
|
Thank you JLongo and Dukascopy Support................. However, the articles that Support pointed to are way beyond my understanding  I wish to include the following jar files in JForex-SDK 1) weka.jar 2) LibSVM.jar I have both in a temporary file on my computer I understand that it would be better to install them from a central repository (where updates are automatic) but going down that path - I don't understand at all what to do Can anybody provide simple clear instructions - step-by-step ? Bob M
|
|
|
|
 |
jlongo
|
Post subject: Re: JForex and Netbeans |
Post rating: 2
|
Posted: Tue 10 Sep, 2013, 00:56
|
|
User rating: 94
Joined: Mon 06 Feb, 2012, 12:22 Posts: 357 Location: Portugal, Castelo Branco
|
Hi us_copiosus:~ from a central repository 1 - search weka on repositories 2 - select the node you want and expand it 3 - select the version jar 4 - add repeat for other... after build the project and you are done.  Trade well JL
Attachments: |
2013-09-10_0050.png [84.42 KiB]
Downloaded 516 times
|
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on
this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control
on their content. Anyone accessing this webpage and downloading or otherwise making use of any document,
data or information found on this webpage shall do it on his/her own risks without any recourse against
Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from
the use and/or reliance on any document, data or information found on this webpage.
|
|
|
|
|
 |
us_copiosus
|
Post subject: Re: JForex and Netbeans |
Post rating: 0
|
Posted: Tue 10 Sep, 2013, 01:28
|
|
User rating: 2
Joined: Fri 02 Mar, 2012, 22:08 Posts: 200 Location: New Zealand, Dunedin
|
As usual, thank you JLongo I now follow  Bob M
|
|
|
|
 |
us_copiosus
|
Post subject: Re: JForex and Netbeans |
Post rating: 0
|
Posted: Fri 13 Sep, 2013, 22:18
|
|
User rating: 2
Joined: Fri 02 Mar, 2012, 22:08 Posts: 200 Location: New Zealand, Dunedin
|
Hello again
Could you advise how I get the following dependency...............
Quantisan's JForex-Utilities (held on GitHub)
Many thanks
Bob M
|
|
|
|
 |
jlongo
|
Post subject: Re: JForex and Netbeans |
Post rating: 0
|
Posted: Sat 14 Sep, 2013, 00:39
|
|
User rating: 94
Joined: Mon 06 Feb, 2012, 12:22 Posts: 357 Location: Portugal, Castelo Branco
|
Hi...
I do not see there any compiled jar...
You need to get the sources, compile them, and add as "open project" on add dependency...
Just a note: for more than 2 years that this library not be updated... Some things can fail if actual API has changed enought.
Trade well
JL
|
|
|
|
 |
us_copiosus
|
Post subject: Re: JForex and Netbeans |
Post rating: 0
|
Posted: Sat 14 Sep, 2013, 03:17
|
|
User rating: 2
Joined: Fri 02 Mar, 2012, 22:08 Posts: 200 Location: New Zealand, Dunedin
|
Point taken about the time that has passed............ Will rewrite any code using these utilities  Many thanks Bob M (just 3 races away from lifting the Americas Cup)
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|