Dukascopy Support Board http://www.dukascopy.com/swiss/english/forex/jforex/forum/ |
|
Compile Strategy in JForex http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=146&t=55889 |
Page 1 of 1 |
Author: | balTrader [ Mon 04 Dec, 2017, 18:32 ] |
Post subject: | Compile Strategy in JForex |
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! |
Author: | amine_chourou [ Tue 05 Dec, 2017, 10:51 ] | |||
Post subject: | Re: Compile Strategy in JForex | |||
Hi, IT's compiled successfully in both VJF and JForex platform.
|
Author: | balTrader [ Tue 05 Dec, 2017, 11:06 ] |
Post subject: | Re: Compile Strategy in JForex |
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? |
Author: | amine_chourou [ Thu 07 Dec, 2017, 14:27 ] | ||
Post subject: | Re: Compile Strategy in JForex | ||
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:
|
Page 1 of 1 |