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 specify the path of a Java library in a JForex strategy ?
 Post subject: How to specify the path of a Java library in a JForex strategy ? Post rating: 0   New post Posted: Wed 25 Nov, 2015, 21:53 
User avatar

User rating: 0
Joined: Fri 20 Nov, 2015, 10:54
Posts: 5
Location: France,
Hello,

I'm new to Jforex so I appology in advance for this basic question.

I got some Java code which allows me to denoise series and this code uses import statements like this one :

import JSci.maths.wavelet.FWTCoef;

The problem is that Jforex' compilator doesn't find the library JSci.

How to specify the path of the JSci library on JForex platform or where should I put it (after having downloaded it) in order to compile the code ?

Thank you very much.


 
 Post subject: Re: How to specify the path of a Java library in a JForex strategy ? Post rating: 0   New post Posted: Thu 26 Nov, 2015, 09:21 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Please see https://www.dukascopy.com/swiss/english ... 65&t=53384


 
 Post subject: Re: How to specify the path of a Java library in a JForex strategy ? Post rating: 0   New post Posted: Thu 26 Nov, 2015, 13:58 
User avatar

User rating: 0
Joined: Fri 20 Nov, 2015, 10:54
Posts: 5
Location: France,
Thank you for your reply.
I downloaded the JSci library, I put it in a directory and I added at the first line :

@Library("C:\Users\Karim\AppData\Local\JForex\classes\jsci-core.jar")

But I got an error at the first line :
Quote:
2015-11-26 12:39:52 @Library("C:\Users\Karim\AppData\Local\JForex\classes\jsci-core.jar")
2015-11-26 12:39:52 1. ERROR in C:\Users\Karim\AppData\Local\JForex\Karim\jfxide\tmp\compile\Denoise.java (at line 1)


Could you please tell me what should I do ?

Thank you very much.


 
 Post subject: Re: How to specify the path of a Java library in a JForex strategy ? Post rating: 0   New post Posted: Fri 27 Nov, 2015, 15:34 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Its probably because slashes "\" should be escaped:
@Library("C:\\Users\\Karim\\AppData\\Local\\JForex\\classes\\jsci-core.jar")


 
 Post subject: Re: How to specify the path of a Java library in a JForex strategy ? Post rating: 0   New post Posted: Sat 28 Nov, 2015, 10:55 
User avatar

User rating: 0
Joined: Fri 20 Nov, 2015, 10:54
Posts: 5
Location: France,
That was the solution, thank you.
Now I'm getting the following error :
Quote:
16:15:29 import java.awt.Color;
16:15:29 1. ERROR in C:\Users\Karim\AppData\Local\JForex\Karim\jfxide\tmp\compile\Denoise.java (at line 7)

and at line 7 there is : import java.awt.Color;

This time AWT is (I think) a standard Java library.

How should I spcify the path (I don"t know where it is anyway) of the AWT library in JForex platform ?

Thank you.


 
 Post subject: Re: How to specify the path of a Java library in a JForex strategy ? Post rating: 0   New post Posted: Mon 30 Nov, 2015, 10:27 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
We suggest you 3 options:
1) There are a number of external programmers who can program the strategy for you:
https://www.dukascopy.com/fxcomm/member ... am_service
2) You can send us full code sample including the libraries that would reproduce the issue. The code can be posted here or sent to [email protected].


 

Jump to:  

cron
  © 1998-2024 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