Dukascopy
 
 
Wiki JStore Search Login

Compile Strategy in JForex
 Post subject: Compile Strategy in JForex Post rating: 0   New post Posted: Mon 04 Dec, 2017, 18:32 
User avatar

User rating: 0
Joined: Thu 23 Nov, 2017, 19:18
Posts: 2
Location: AustriaAustria
Hi,

I have problems compiling a visual forex strategy in JForex, it's not even posible to compile the example strategies like SMACrossExample.java. I get the following error messages:

2017-12-04 18:27:40 ----------
2017-12-04 18:27:40 40 problems (40 errors)
2017-12-04 18:27:40 ----------
2017-12-04 18:27:40 40. ERROR in /Users/*****/Library/Application Support/JForex/*****/jfxide/tmp/compile/SMACrossExample.java (at line 99)
2017-12-04 18:27:40 String answer = "" + randomNumber;
2017-12-04 18:27:40 ^^^^^^
2017-12-04 18:27:40 String cannot be resolved to a type
2017-12-04 18:27:40 ----------
2017-12-04 18:27:40 39. ERROR in /Users/*****/Library/Application Support/JForex/*****/jfxide/tmp/compile/SMACrossExample.java (at line 98)
2017-12-04 18:27:40 int randomNumber = (int) (Math.random() * n);
2017-12-04 18:27:40 __________________________^^^^

Thank you!


 
 Post subject: Re: Compile Strategy in JForex Post rating: 1   New post Posted: Tue 05 Dec, 2017, 10:51 
Visual JForex expert at Dukascopy
User avatar

User rating: 288
Joined: Thu 18 Apr, 2013, 09:26
Posts: 1496
Location: Switzerland, Geneva
Hi,

IT's compiled successfully in both VJF and JForex platform.

Image
Image


Attachments:
_VJFCompiled.JPG [64.43 KiB]
Downloaded 382 times
Compiled.JPG [110.24 KiB]
Downloaded 392 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.
 
 Post subject: Re: Compile Strategy in JForex Post rating: 0   New post Posted: Tue 05 Dec, 2017, 11:06 
User avatar

User rating: 0
Joined: Thu 23 Nov, 2017, 19:18
Posts: 2
Location: AustriaAustria
Hi,

Thank you for answering. The screenshot is from VisualForex and there I can compile strategies but I don't know how to export them to JForex. What I did was copying the .java code from VisualForex to JForex but that didn't work. So I tried with the example strategies but they don't compile either. Do I have to make changes in the Java Develeopment Environment?


 
 Post subject: Re: Compile Strategy in JForex Post rating: 1   New post Posted: Thu 07 Dec, 2017, 14:27 
Visual JForex expert at Dukascopy
User avatar

User rating: 288
Joined: Thu 18 Apr, 2013, 09:26
Posts: 1496
Location: Switzerland, Geneva
Hi,

Exporting can be done from File menu > Export to Java then paste in JForex editor
OR
link your JForex accoutn to your FX community account (go to your reports > My account > community section and link accounts)
Then everytime you build (complile ) a strategy in Visual, you can find it in JForex when you open a new strategy:

Image


Attachments:
OPenStra.JPG [110.5 KiB]
Downloaded 395 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.
 

Jump to:  

  © 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