MACD Strategy

Strategies are published here.

Moderator: admin

Re: MACD Strategy

Postby Santoine » Tue Sep 19, 2017 12:48 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


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
Santoine
 
Posts: 11
Joined: Sat Sep 03, 2016 1:11 am

Re: MACD Strategy

Postby Apprentice » Fri Sep 29, 2017 7:38 am

HA signal or MACD signal?
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: MACD Strategy

Postby Santoine » Tue Oct 03, 2017 5:19 am

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
Santoine
 
Posts: 11
Joined: Sat Sep 03, 2016 1:11 am

Re: MACD Strategy

Postby Apprentice » Thu Oct 12, 2017 4:09 am

MACM Signal Min. Filter added.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Previous

Return to Custom Strategies

Who is online

Users browsing this forum: No registered users and 11 guests