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.

Using a Java class in the current JForex strategy
 Post subject: Using a Java class in the current JForex strategy Post rating: 0   New post Posted: Fri 23 Oct, 2015, 12:38 
User avatar

User rating: 0
Joined: Tue 04 Aug, 2015, 16:43
Posts: 2
Location: QatarQatar
How can I use another Java class that I've created in the current JForex strategy? And if possible can you provide me with a code sample?

I'm new to JForex and started programming recently and I can't do OO programming so far into JForex.

Thanks


 
 Post subject: Re: Using a Java class in the current JForex strategy Post rating: 0   New post Posted: Tue 10 Nov, 2015, 15:15 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
1) include all classes into one Strategy file

2) use JForex SDK (we recommend this option if you are focused on trading from Strategies rather than JForex GUI)
When SDK is used JForex runs without GUI, all you need to do is include JForex Jars into your project.
https://www.dukascopy.com/wiki/#Use_in_Eclipse

3) package your code into a JAR that is included into Strategy file:
https://www.dukascopy.com/wiki/#Include_libraries


 
 Post subject: Re: Using a Java class in the current JForex strategy Post rating: 0   New post Posted: Wed 11 Nov, 2015, 15:08 
User avatar

User rating: 0
Joined: Tue 04 Aug, 2015, 16:43
Posts: 2
Location: QatarQatar
That's very helpful. Thanks


 

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