Page 1 of 2

MACD Strategy

PostPosted: Tue May 03, 2011 3:40 am
by Apprentice
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 789 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.

Re: MACD Strategy

PostPosted: Sun Jan 08, 2012 12:28 am
by arindam89
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

Re: MACD Strategy

PostPosted: Mon Jan 09, 2012 2:36 am
by Apprentice
I'm not sure what you mean.
Stop / Limit functionality already exists.
Can you define what you mean in more detail.

Re: MACD Strategy

PostPosted: Mon Jan 09, 2012 5:24 am
by arindam89
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

Re: MACD Strategy

PostPosted: Mon Jan 09, 2012 1:18 pm
by ronald3rg
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

Re: MACD Strategy

PostPosted: Tue Jan 10, 2012 12:46 pm
by Apprentice
Your request is added to the developmental cue.

Re: MACD Strategy

PostPosted: Wed Oct 08, 2014 11:24 am
by Chris40
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

Re: MACD Strategy

PostPosted: Thu Oct 09, 2014 3:20 am
by Apprentice
Signal delay, parameter introduced.
I have also completely re-write strategy code,
in order to introduce some additional functionality.

Re: MACD Strategy

PostPosted: Thu Oct 09, 2014 10:52 pm
by Chris40
thank you for quick work

Chris40

Re: MACD Strategy

PostPosted: Sun Dec 11, 2016 9:46 am
by Apprentice
Strategy was revised and updated.