Simple EA MA plus MACD


This is a simple Expert Advisor using two indicators: iMA (Moving Average, MA) and iMACD (Moving Average Convergence/Divergence, MACD). The EA opens only one position at a time, therefore it is able to work both on hedging and netting accounts.

First, the indicator looks for a signal bar: when a new bar (#0) appears, check if MACD indicator in bar #1 crosses the zero line. A crossing means a signal bar has been found.