Page 2 of 2

Re: MACD Strategy

PostPosted: Tue Sep 19, 2017 12:48 am
by Santoine
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


HA Close MACD Strategy.lua


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


I am trying to add a filter to avoid when HA signal is near 0 (for instance from -0.15 to +0.15) . That condition on SIGNALDATA doesn't work . Can you help me out to add that filter? Thanks

Re: MACD Strategy

PostPosted: Fri Sep 29, 2017 7:38 am
by Apprentice
HA signal or MACD signal?

Re: MACD Strategy

PostPosted: Tue Oct 03, 2017 5:19 am
by Santoine
Apprentice wrote:HA signal or MACD signal?


The MACD signal with a condition to be more than a specific value and less than a specific in order to avoid the non trending hours Thanks

Re: MACD Strategy

PostPosted: Thu Oct 12, 2017 4:09 am
by Apprentice
MACM Signal Min. Filter added.