MACD Strategy

Strategies are published here.

Moderator: admin

MACD Strategy

Postby Apprentice » Tue Sep 25, 2012 3:57 am

MACD Strategy.png

Long
MACD / Signal Line Crossover
Short
MACD / Signal Line Crossunder

Exit Long (optional)
Close < MA Line
Exit Short (optional)
Close > MA Line
MACD Strategy.lua
(18.92 KiB) Downloaded 1311 times


The Strategy was revised and updated on December 11, 2018.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: MACD Strategy

Postby Apprentice » Tue Sep 25, 2012 4:14 am

MACD Strategy with confirmation.png

Trade if we have 1. and 2. condition satisfied.
Long
1. MACD/Signal Line Crossover
2. Close < MA + Validation Zone width (optional)
Short
1. MACD/Signal Line Crossunder
2. Close > MA - Validation Zone width (optional)
MACD Strategy with confirmation.lua
(18.39 KiB) Downloaded 1072 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: MACD Strategy

Postby trader969 » Fri Sep 28, 2012 8:11 am

Do any of your strategies work with mini accounts?
trader969
 
Posts: 3
Joined: Fri Sep 28, 2012 8:07 am

Re: MACD Strategy

Postby Apprentice » Sat Sep 29, 2012 1:39 am

In general, unless otherwise specified, all the indicators, strategies,
work on both Standard or and Mini.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: MACD Strategy

Postby trader969 » Sun Sep 30, 2012 8:27 am

I downloaded this strategy and had it running for 24 hrs in nzd/usd, on friday, I made sure that the lot size was 1, which is the lowest it goes, this is a mini account, and made sure to that it said live trading and it did not execute a single trade, during that time period, with the movement in nzd I find it hard to believe both conditions werent met to execute, is there something else I have to do?
trader969
 
Posts: 3
Joined: Fri Sep 28, 2012 8:07 am

Re: MACD Strategy

Postby Apprentice » Sun Sep 30, 2012 9:32 am

What Time Frame is used.
As confirmation, Add MACD indicator to chart.
Do you have MACD / Signal Cross during testing period.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: MACD Strategy

Postby trader969 » Sun Sep 30, 2012 10:35 am

I put it 5 minute time frame, in backtestring it seemed to be more profitable, and yes I had the macd indicator running, I also clicked yes to dynamic trailing stops
trader969
 
Posts: 3
Joined: Fri Sep 28, 2012 8:07 am

Re: MACD Strategy

Postby Apprentice » Sun Sep 30, 2012 12:01 pm

Hm, I made a test and everything is fine for me.
How did you do the testing in Backtester or in live trading.
For Live trading you should have something like this.
Capture.PNG

Did you have an active strategy, like I have here.
If you are using MACD Strategy with confirmation,
It's entirely possible, we have a very strict filter.
You've tested over the weekend maybe? :)
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: MACD Strategy

Postby tengy yan nan » Mon Mar 25, 2013 4:52 am

who can help me to change the cross happen when histogram=0 to [1/-1] or above or under thanks
tengy yan nan
 
Posts: 1
Joined: Mon Mar 25, 2013 4:34 am

Re: MACD Strategy

Postby Apprentice » Mon Mar 25, 2013 5:25 pm

Your request has been added to the development list.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Next

Return to Custom Strategies

Who is online

Users browsing this forum: Bing [Bot] and 18 guests