Trabalho concluído
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Termos de Referência
Hello,
I need an EA that makes trades based on MACD and Moving Average.
I. Entry Signals
BUY SIGNAL:
1. Price above MA.
2. MACD line crosses the signal line from below, the cross happens below the zero line.
SELL SIGNAL:
1. Price below MA.
2. MACD line crosses the signal line from above, the cross happens above the zero line.
II. STOP LOSS
1. For BUY orders: Just below the most recent swing low.
2. For SELL orders: Just above the most recent swing high.
III. TAKE PROFIT
Adjustable Risk/Reward value based on the STOP LOSS.
IV. MONEY MANAGEMENT
Percent of balance calculated based on the STOP LOSS.
V. MOVING AVERAGE FUNCTIONS
Moving Average needs to be fully adjustable:
1. Adjustable MA period.
2. Adjustable MA type (SMA, EMA, SMMA, LWMA).
3. Adjustable calculation method based on price (close, open, high, low, average, typical, weighted).
4. Adjustable MA Shift.
VI. MACD FUNCTIONS
MACD needs to be fully adjustable:
1. Adjustable fast EMA period.
2. Adjustable slow EMA period.
3. Adjustable signal EMA period.
4. Adjustable calculation method based on price (close, open, high, low, average, typical, weighted).
VII. OTHER FUNCTIONS
1. Trading hours filter.
2. Spread filter.
3. Max orders filter.
4. Please add anything found in a typical EA that I have not mentioned.