Trabalho concluído
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Termos de Referência
Hello Trader, I need an EA in MT5 for MACD with this parameter as variable:
- Initial stop loss 30 pips
- Take profit 1 with 30 pips
- Take profit 2 with 74 pips
- Trailing stop with 30 pips when trade start in 2pip steps
Order rules:
LONG: When the MACD(8,9,8) cross over value 0 open trade at open next bar with 30 pips stop loss, take profit level 1 with 30 pips and take profit level 2 with 74 pips and start trailing stop with 30 pips when the trade is 2 pips in profit every 2 steps.
SHORT: When the MACD(8,9,8) cross below value 0 open trade at open
next bar with 30 pips stop loss, take profit level 1 with 30 pips and
take profit level 2 with 74 pips and start trailing stop with 30 pips
when the trade is 2 pips in profit every 2 steps.
The Stop los level, TakeProfit1 and TakeProfit2 shall be shown in chart.
Rule: Open one order, with 30 pips stop loss and 74 Pips target. If the order reached 30 pips profit close 50% of the order quantity, move the stop loss to break even (+5 pips over or below from entry price)
Risk management: every trade open max. quantity 0.5% (half percent) from actual trading balance for 30 Pips.
IMPORTANT: The coding must be program modular which means it must be possible to add addional trading strategies as own function for the the order rules like in the next example:
void macd()
{ signal rules..... }
void dss()
{ signal rules ....}
....
void update bar()
{
if (macd (true) || dss[true) ..........)
{ Order_entry()
Order_management()
Order_traling()
....
}
}
Additial information: variable for stop loss, take profit 1, take profit 2, trailing stop, risk in % for calculation quantity.
Time frame: 1h, 3h, 4h, daily
Currency pairs; 16 currency pairs trade able. Open trades max at the same time 8 which means max. risk open trades 4%.
//////////////////////////////////////////
the specifications are attached as zip file.
Happy trading
Christian Schranz
You can send me also a PM at office@schranztrading.at