MACD Strategy

Strategies are published here.

Moderator: admin

MACD Strategy

Postby Apprentice » Tue May 03, 2011 3:40 am

MACD Strategy.png


In comparing with the standard strategy, this strategy provides several new features.
HAve Allow Short / Long / Both Positions Option.
Have Separate Exit / Entry Algorithms.
Support the MACD / Zero Line Cross, along with standard MACD / Signal Line.

MACD Strategy.lua
(20.06 KiB) Downloaded 1715 times


HA Close MACD Strategy.lua
(22.67 KiB) Downloaded 788 times


HA Close MACD Strategy.lua use HA close as a source.
HA Close = (Open+Close+High+Low)/4

If Signal Filter is ON.
The MACD signal should be greater than a specific value and less than a specific

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

Re: MACD Strategy

Postby arindam89 » Sun Jan 08, 2012 12:28 am

Apprentice wrote:
MACD Strategy.png


In comparing with the standard strategy, this strategy provides several new features.
HAve Allow Short / Long / Both Positions Option.
Have Separate Exit / Entry Algorithms.
Support the MACD / Zero Line Cross, along with standard MACD / Signal Line.

MACD Strategy.lua

hi apprentice
can u add PROFIT/LOSS CARE to this strategy plz
thanks
by
arindam
arindam89
 
Posts: 53
Joined: Mon Dec 12, 2011 5:39 am

Re: MACD Strategy

Postby Apprentice » Mon Jan 09, 2012 2:36 am

I'm not sure what you mean.
Stop / Limit functionality already exists.
Can you define what you mean in more detail.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: MACD Strategy

Postby arindam89 » Mon Jan 09, 2012 5:24 am

Apprentice wrote:I'm not sure what you mean.
Stop / Limit functionality already exists.
Can you define what you mean in more detail.

hi
what i meant is in DMACD strategyhttp://fxcodebase.com/code/search.php?t=1985
plz add that parameter to this straegy
thanks
by
arindam89
 
Posts: 53
Joined: Mon Dec 12, 2011 5:39 am

Re: MACD Strategy

Postby ronald3rg » Mon Jan 09, 2012 1:18 pm

Great Strategy, suggestion

Could you add the open above and close below feature and the confirm move by MA. when line crosses open by distance and the confirm move options like in the macd-sample strategy. The macd sample strategy has a flaw that makes it skip entry and exit signals

right place at the right time

3rg
Right place at the right time

3Rg
ronald3rg
 
Posts: 39
Joined: Tue Oct 18, 2011 6:12 pm
Location: New York

Re: MACD Strategy

Postby Apprentice » Tue Jan 10, 2012 12:46 pm

Your request is added to the developmental cue.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: MACD Strategy

Postby Chris40 » Wed Oct 08, 2014 11:24 am

hello,

I would like the MACD opens a position at the opening of the second candle after the crossing of the MACD and its signal

kind regards


Chris40
Chris40
 
Posts: 7
Joined: Mon Sep 22, 2014 7:54 pm

Re: MACD Strategy

Postby Apprentice » Thu Oct 09, 2014 3:20 am

Signal delay, parameter introduced.
I have also completely re-write strategy code,
in order to introduce some additional functionality.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: MACD Strategy

Postby Chris40 » Thu Oct 09, 2014 10:52 pm

thank you for quick work

Chris40
Chris40
 
Posts: 7
Joined: Mon Sep 22, 2014 7:54 pm

Re: MACD Strategy

Postby Apprentice » Sun Dec 11, 2016 9:46 am

Strategy was revised and updated.
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: No registered users and 16 guests