Macrossover with MACD Confirmation Strategy

Strategies are published here.

Moderator: admin

Macrossover with MACD Confirmation Strategy

Postby Apprentice » Tue Oct 25, 2011 11:15 am

Buying Rules:
1.ema 20>ema100;
2.macd>buying level;
3.ema 5 crossover ema 20

Exit Buy
when ema 5 cross under ema 20
or macd line crossunder macd signal line

Selling Rules:
1.ema 20<ema100;
2.macd<selling level;
3.ema 5 cross under ema 20

Exit Sell
when ema 5 cross over ema 20
or macd line crossover macd signal line

Macrossover with MACD Confirmation Strategy.lua
(18.71 KiB) Downloaded 1232 times


The Strategy was revised and updated on November 19, 2018.
Attachments
2018-11-21_18-27-37.png
2018-11-21_18-27-50.png
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Macrossover with MACD Confirmation Strategy

Postby jtatalov » Tue Oct 25, 2011 2:59 pm

The Strategy says "1st, 2nd, 3rd period EMA how do these relate to the description of 5,20,100 EMA
jtatalov
 
Posts: 42
Joined: Sat Aug 06, 2011 3:28 am

Re: Macrossover with MACD Confirmation Strategy

Postby jtatalov » Tue Oct 25, 2011 3:08 pm

Also what is the buy level and sell lever refer to?
jtatalov
 
Posts: 42
Joined: Sat Aug 06, 2011 3:28 am

Re: Macrossover with MACD Confirmation Strategy

Postby Apprentice » Tue Oct 25, 2011 5:03 pm

1st - 5
2nd -20
3rd -100

Buy & sell levels can be defined via parameters.
Define the line below / above the MACD gives a Short / Long Indications
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Macrossover with MACD Confirmation Strategy

Postby jtatalov » Tue Oct 25, 2011 5:40 pm

Apprentice wrote:
Buy & sell levels can be defined via parameters.
Define the line below / above the MACD gives a Short / Long Indications




Please forgive me, but this is still a little too vague for me to understand. Can you be a little more specific with regard to which line you are referring to? Is this like a shift function
jtatalov
 
Posts: 42
Joined: Sat Aug 06, 2011 3:28 am

Re: Macrossover with MACD Confirmation Strategy

Postby newton » Wed Oct 26, 2011 1:30 am

hi,
level buy and level sell are values of macd histogram. if it is more than 0 it is upper trend . and if it is less than 0 it is down trend . if we set at little higher level like .00003/-.00003 in case of eurusd we can get better entries.
newton
 
Posts: 85
Joined: Sun Oct 16, 2011 10:14 am

Re: Macrossover with MACD Confirmation Strategy

Postby jtatalov » Wed Oct 26, 2011 2:46 am

Ah, this makes more sense...thanks Newton
jtatalov
 
Posts: 42
Joined: Sat Aug 06, 2011 3:28 am

Re: Macrossover with MACD Confirmation Strategy

Postby speedytina » Wed Oct 26, 2011 7:57 am

Hi Apprentice...

If I understand the rules correctly. strategy should only open long trades when 5 and 10 EMA's cross and they are both above the 100 EMA. Short trades should only be opened when the 5 and 10 EMA's cross and they are both below the 100 ema. I am finding however that trades are being opened when the 5 and 10 EMA's cross regardless of their position in relation to the 100 EMA. In other words, both long and short trades are being triggered above the 100 EMA and long and short trades are being triggered below the 100 EMA. The 100 EMA does not figure in the trades at all.

Am I misunderstanding the rules? If not, what settings do I have to adjust to get the the 100 EMA involved.

I hope my question is clear.

Regards
speedytina
 
Posts: 15
Joined: Wed Oct 26, 2011 1:33 am



Return to Custom Strategies

Who is online

Users browsing this forum: No registered users and 13 guests