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.

Fractals-MACD strategy
 Post subject: Fractals-MACD strategy Post rating: 0   New post Posted: Wed 28 Nov, 2012, 14:36 
User avatar

User rating: 0
Joined: Tue 24 Jul, 2012, 12:38
Posts: 41
Dear Support,

I wish to have the attached mql4 strategy to be coded in jForex.

There's no complex options, but there's 2 important things:

1/ A fractal is valid only when 2 candles have closed after the peak. This function is well defined in the mql4 version.

2/ In any case, the EA must check before any entry if the last valid fractals has already been traded. This will avoid to trade 2 times the last fractals. The EA should be able to find in the trades history even if the platform was restarted. This function is well defined in the mql4 version.

Feel free to ask if something isn't clear.

Thank you for your support.

Best regards
Eric


Attachments:
EA17_[jforex-version].mq4 [8.75 KiB]
Downloaded 353 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: Fractals-MACD strategy Post rating: 0   New post Posted: Wed 28 Nov, 2012, 14:48 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
See:
https://www.dukascopy.com/wiki/#MQL_Converter


 
 Post subject: Re: Fractals-MACD strategy Post rating: 0   New post Posted: Wed 28 Nov, 2012, 15:06 
User avatar

User rating: 0
Joined: Tue 24 Jul, 2012, 12:38
Posts: 41
API Support wrote:


Thank you but i've already tried to use the converter but the .jfx file generated doesn't trade as it should.

This is the reason of my request here.

Thank you.


 
 Post subject: Re: Fractals-MACD strategy Post rating: 0   New post Posted: Wed 28 Nov, 2012, 15:21 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Could you please pinpoint the time point and the feed where the strategy either makes a trade where it should not or does not make a trade where it should?


 
 Post subject: Re: Fractals-MACD strategy Post rating: 0   New post Posted: Wed 28 Nov, 2012, 15:38 
User avatar

User rating: 0
Joined: Tue 24 Jul, 2012, 12:38
Posts: 41
API Support wrote:
Could you please pinpoint the time point and the feed where the strategy either makes a trade where it should not or does not make a trade where it should?


Will try asap to show something.


 
 Post subject: Re: Fractals-MACD strategy Post rating: 0   New post Posted: Wed 28 Nov, 2012, 16:07 
User avatar

User rating: 0
Joined: Tue 24 Jul, 2012, 12:38
Posts: 41
Once the mq4 file is opened and compiled under the jForex platform, is there a .java file created or only the .jfx ?

I can't find the source code generated.


 
 Post subject: Re: Fractals-MACD strategy Post rating: 0   New post Posted: Wed 28 Nov, 2012, 17:07 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
JFX only.


 
 Post subject: Re: Fractals-MACD strategy Post rating: 0   New post Posted: Wed 28 Nov, 2012, 18:07 
User avatar

User rating: 0
Joined: Tue 24 Jul, 2012, 12:38
Posts: 41
API Support wrote:
JFX only.


If there's no source code, how to find errors in the convertion.

I would greatly appreciate to have this strategy converted/coded with a source code.

Thank you again for your support.


 
 Post subject: Re: Fractals-MACD strategy Post rating: 0   New post Posted: Thu 29 Nov, 2012, 08:23 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Eric wrote:
If there's no source code, how to find errors in the convertion.
The source code is .mq4, which you can tweak and adjust. If there are conversion errors, then please post them here, if the strategy does not execute according to the algorithm then please provide a precise time point and feed and describe:
  • what the strategy did, that found being wrong,
  • what it should have done instead,
and we will take a look at it.


 
 Post subject: Re: Fractals-MACD strategy Post rating: 0   New post Posted: Thu 29 Nov, 2012, 09:02 
User avatar

User rating: 0
Joined: Tue 24 Jul, 2012, 12:38
Posts: 41
API Support wrote:
The source code is .mq4, which you can tweak and adjust. If there are conversion errors, then please post them here


Sorry but there's absolutely no need to adjust the original source code as the strategy works perfectly on MT4. Also, there's no error in compiling in jForex.

I am wasting your time. Sorry about that.

I should have posted the strategy rules to be coded (like many other members do here) instead of posting the mq4 file.

Thank you for your support anyway.


 

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