Job finished
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Specification
Hi,
I would like to have a scalping EA created for MT4.
It is based on a moving average envelope.
Futhermore i want it to have the following options in it:
- able to set MA method(simple, expon, smoothed, weighted) and applied to price(median, typical, weighted). And period and shift.
- able to open 2 orders at same price level(something like order A and B from now on called order pair). Also the order pairs are opened only when the candle closes and the body of the candle is crossed by upper or lower envelope, not the wick/shadow. I will give more details on when to buy and sell later.
- able to set SL(on both orders seperate), TP(only on order A), Lot size(both orders separate), Breakeven and trailingstop(only on order B), if possible able to set slippage
- after TP(on order A) is reached, EA must initiate a breakeven(+1 pip profit) + trailing stop(for order B)
- The most important part is that the EA must close both orders if after 19 periods there is no profit. Meaning on the 20th period the EA will check if profit is positive.
- if not positive it will close the order pair
- if positive it will do nothing to disturb the current pair
- Finally the EA is only allowed to have a maximum of 4 trades running at any moment. Meaning 2 order pairs(order A and B). Only if one order pair closes, is the EA allowed to open another 2 orders(1 pair).
If the EA is good i am willing to pay for an mt5 version as well. Lastly the EA will be used on a 5 min chart on the EURUSD and USDJPY
Best Regards,
Basil