Dukascopy
 
 
Wiki JStore Search Login

MACD multitimeframe
 Post subject: MACD multitimeframe Post rating: 0   New post Posted: Mon 09 Sep, 2013, 22:08 
User avatar

User rating: 0
Joined: Fri 14 Jun, 2013, 21:26
Posts: 35
Location: Italy, Turin
Hello, I need some ideas about how to realize what I'm going to explain you later

I need an EA that works at the same time with all the crosses of the basket available, that scans all the market and look for all the entry levels

the macd I use works like this, have been always my way of operating and have very effective...

this is long entry configuration

D1
IF signal >ma>0
Image

&

H4
IF signal >ma>0
Image


&
H1
if signal >ma>0

Image
____________________________________________________________________________________________________________________

When M5 signal from <ma goes to >ma

Image

entry long standard lot size tp +20 pips stop loss -20 pips


Shall someone help me?


 
 Post subject: Re: MACD multitimeframe Post rating: 0   New post Posted: Tue 10 Sep, 2013, 07:56 
Visual JForex expert at Dukascopy
User avatar

User rating: 27
Joined: Fri 03 May, 2013, 18:25
Posts: 366
Location: GermanyGermany
Greetings!

As far as the support team concerned we are not programming your strategy. If you have questions related to VJF or suggestions to new features the support team is pleased to answer it.

Regards


 
 Post subject: Re: MACD multitimeframe Post rating: 0   New post Posted: Tue 10 Sep, 2013, 11:45 
User avatar

User rating: 0
Joined: Fri 14 Jun, 2013, 21:26
Posts: 35
Location: Italy, Turin
I never asked you to compile it, but I was asking about how the macd boxes should be organized...

I explain you better what I mean

Image

for example, how should I compose in these boxes

if signal > MA>0 ?

that was my question


 
 Post subject: Re: MACD multitimeframe Post rating: 0   New post Posted: Tue 10 Sep, 2013, 17:35 
Visual JForex expert at Dukascopy
User avatar

User rating: 27
Joined: Fri 03 May, 2013, 18:25
Posts: 366
Location: GermanyGermany
Hello!

Quote:
if signal > MA>0 ?

that was my question

That is pretty easy doing it with VJF; see file attached.

Otherwise I kindly ask you to view the videos about VJF on our youtube channel. I think it is the best way to learn programming with VJF.
https://www.google.lv/search?q=youtube+visual+jforex+&ie=utf-8&oe=utf-8&rls=org.mozilla:en-US:official&client=firefox-a&gws_rd=cr&ei=KkovUvuwGKiJ4ASZ9YDYCA

In addition to that you can also check out the examples of strategies in VJF on the right panel below "my strategies", in order to get familiar with it.


Attachments:
MACD_Signal_exp.vfs [22.95 KiB]
Downloaded 239 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: MACD multitimeframe Post rating: 0   New post Posted: Wed 11 Sep, 2013, 15:20 
User avatar

User rating: 0
Joined: Fri 14 Jun, 2013, 21:26
Posts: 35
Location: Italy, Turin
great, these guides should be new anyway, I haven't seen them before... I have to admit that duka' website is a bit messy

anyway, I have a quest, houw does this box works? it should be true or false the value? what does it mean?

Image

how does this works? Image


 
 Post subject: Re: MACD multitimeframe Post rating: 0   New post Posted: Thu 12 Sep, 2013, 10:06 
User avatar

User rating: 0
Joined: Fri 14 Jun, 2013, 21:26
Posts: 35
Location: Italy, Turin
in the script you gave me, you setted signal to be>= to ma

if I want it only >ma, I can eimply clear the = line? does the macd keep working?


 
 Post subject: Re: MACD multitimeframe Post rating: 0   New post Posted: Thu 12 Sep, 2013, 15:15 
User avatar

User rating: 0
Joined: Fri 14 Jun, 2013, 21:26
Posts: 35
Location: Italy, Turin
Image

does these variables should have a value?


 
 Post subject: Re: MACD multitimeframe Post rating: 0   New post Posted: Fri 13 Sep, 2013, 15:18 
User avatar

User rating: 0
Joined: Fri 14 Jun, 2013, 21:26
Posts: 35
Location: Italy, Turin
I have another question

I have some troubles with the entry signal at m5 as you can see in the screenshot

Image

let's say that this was the situation:

D1 MACD > signal>0 (correct)
h4 MACD > signal>0 (correct)
h1 MACD > signal>0 (correct)

Sometimes, at m5, it opens trades when it should not (the script should open the trade only on the new m5 candle after MACd crossing signal on the previous). In the screen, as you can see, there are 10 minutes of delay! I have tried many things but I can't figure out why it keep acting like this.

I attach you the strategy

I standby, thanks you all


 
 Post subject: Re: MACD multitimeframe Post rating: 0   New post Posted: Fri 13 Sep, 2013, 15:58 
User avatar

User rating: 0
Joined: Fri 14 Jun, 2013, 21:26
Posts: 35
Location: Italy, Turin
here is the strategy


Attachments:
MACD_Signal_exp.vfs [40.24 KiB]
Downloaded 249 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: MACD multitimeframe Post rating: 0   New post Posted: Mon 16 Sep, 2013, 22:18 
User avatar

User rating: 0
Joined: Fri 14 Jun, 2013, 21:26
Posts: 35
Location: Italy, Turin
none can help me out please?


 
 Post subject: Re: MACD multitimeframe Post rating: 0   New post Posted: Sat 21 Sep, 2013, 20:43 
User avatar

User rating: 0
Joined: Fri 14 Jun, 2013, 21:26
Posts: 35
Location: Italy, Turin
I need to translate this in an example of VJFX, shall someone help me please?

public void onBar(Instrument instrument, Period period, IBar askBar, IBar bidBar) throws JFException {


if (selectedInstrument.equals(instrument)) {
d_val_ind = indicators.macd(instrument, period, side, IIndicators.AppliedPrice.CLOSE, fastPeriod, slowPeriod, signalPeriod, shift)
retOrder = null;
retOrder = engine.submitOrder(label, instrument, OrderCommand.BUY, lot_mm(), price, slippage, SL, TP, 0, comment);
}
}


 

Jump to:  

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