Dukascopy
 
 
Wiki JStore Search Login

converting strategy and indicators from MQL4
 Post subject: converting strategy and indicators from MQL4 Post rating: 0   New post Posted: Mon 30 Dec, 2013, 21:57 

User rating: 0
Joined: Sun 28 Oct, 2012, 14:47
Posts: 3
Hello,
this is my first post,


I am having problems converting a strategy that calls 3 indicators.
I successfully converted the indicators into .jfx files

I added them to the chart, they work properly on the chart.

but then the strategy will not convert

this is the comment i get
"19:57:48 File C:\Users\Pawel\Documents\JForex\Indicators\i_Trend.jfx not found.
"
this files i_Trend is in the right location so I can not get why I get this message ?

Regards,


 
 Post subject: Re: converting strategy and indicators from MQL4 Post rating: 0   New post Posted: Thu 02 Jan, 2014, 10:21 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Did you select the corresponding indicator paths in the strategy parameters? See:
https://www.dukascopy.com/wiki/#iCustom_calls


 
 Post subject: Re: converting strategy and indicators from MQL4 Post rating: 0   New post Posted: Thu 02 Jan, 2014, 22:20 

User rating: 0
Joined: Sun 28 Oct, 2012, 14:47
Posts: 3
Yes of course, I did.

Should I compile the indicators as strategy or indicators ?

I attached the mojsystem11 with 2 indicators that should be called
and still I get the message of the missing i_Trend.jfx file

Quote:

21:00:33 File C:\Users\Pawe?\Documents\JForex\Indicators\i_Trend.jfx not found.




Anyway , I removed the indicators from the strategy in mql4, compiled the modified strategy in mql4
and then tried to convert it using the converter (mojsystem12)

this is the message I got this time

Quote:
21:11:01 ----------
21:11:01 Value cannot be resolved
21:11:01 ^^^^^^^
21:11:01 if(true)return toDouble((Value));return 0.0;
21:11:01 2. ERROR in C:\Users\Paweł\Local Settings\JForex\Pawe_\jfxide\tmp\compile\mojsystem12.java (at line 359)
21:11:01 ----------
21:11:01 Value cannot be resolved
21:11:01 ^^^^^^^
21:11:01 if(true)return toInt((Value));return 0;
21:11:01 1. ERROR in C:\Users\Paweł\Local Settings\JForex\Pawe_\jfxide\tmp\compile\mojsystem12.java (at line 213)
21:11:01 ----------




Can ypu please help to convert it ?

Regards,


Attachments:
mojsystem11.mq4 [29.14 KiB]
Downloaded 138 times
mojsystem12.mq4 [24.17 KiB]
Downloaded 123 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: converting strategy and indicators from MQL4 Post rating: 0   New post Posted: Fri 03 Jan, 2014, 11:03 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Consider this strategy version.


Attachments:
mojsystem12.mq4 [24.14 KiB]
Downloaded 122 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: converting strategy and indicators from MQL4 Post rating: 0   New post Posted: Mon 23 Jun, 2014, 19:54 

User rating: 0
Joined: Sun 28 Oct, 2012, 14:47
Posts: 3
Good afternoon,

I tried your version of the strategy,
it seems to convert right,
but unfortunatelly it does not open any positions
while its mql4 equivalent does open them,

Can you please help what can make such a difference in functioning ?
maybe i need to set some parameters or any other things are wrong,


Regards,


 
 Post subject: Re: converting strategy and indicators from MQL4 Post rating: 0   New post Posted: Thu 26 Jun, 2014, 10:23 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
The strategy works for us using mojsystem11.mq4 file version and setting the following strategy parameters:
iTrendPeriod = 5
FisherPeriod = 5
Period = 5

What parameters did you use to run the strategy?
Please check for error messages in console as described here: https://www.java.com/en/download/help/javaconsole.xml


Attachments:
mojsystem11.mq4 [31.92 KiB]
Downloaded 98 times
Fisher_m11.mq4 [5.91 KiB]
Downloaded 90 times
i_Trend.mq4 [3.35 KiB]
Downloaded 88 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-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