MACD_Mirror Indicator Conversion to EA

Moderator: moderators

rank: <50 posts
rank: <50 posts
Posts: 3
Joined: Wed Mar 09, 2011 1:12 pm
Reputation: 0
Gender: Male

MACD_Mirror Indicator Conversion to EA

Postby jutsu » Sun Mar 27, 2011 2:57 pm

Hello people

This is an indicator I found and have tried to convert to an EA, The indicator signals a buy/sell when Its MACD calculated line crosses up/down a '0' line value, hence it is an ''Always in the Market'' type of system...

My concept is initiating a buy when MACD value is above 0 and subsequent exit when value returns to 0, AND Sell when MACD value is below 0 and subsequent exit when it returns back to 0.

Although there are 3 MACD lines in the indicator, only one labelled''MACD'' is considered useful in my coding.

Currently only 'buy 'signals are filled, 'sell' and 'exits' are a no no...

The Indicator and my current progress on the EA are attached below, any contributions would be much appreciated, thanks.
Mirror.PNG (49.63 KiB) Viewed 146 times
(2.85 KiB) Downloaded 21 times
head way on EA.txt
(9.71 KiB) Downloaded 12 times

Please add to your ad blocker white list.
Thank you for your support.

Return to “MetaTrader”