工作已完成
![](https://c.mql5.com/i/avatar/avatar_na2.png)
指定
Hello,
I need EA based on following rules:
Conditions of openning position:
order (1) buy if candle openned over MA (period14) - sell if candle open below MA14
-lot size, TP, SL, slippage - set as extern
order (2) pending order (sellstop if (1) was buy, buystop if (1) was sell)
- placed at the same time when (1)
- disctance - as extern
- TP, SL, slippage - as extern
if order (1) hit TP delete order (2)
and open order (1) from new candle according previous condition
if Order (2) is openned
order (3) pending order (buystop if (2) was sell, sellstop if (2) was buy)
- placed at the same time when (2) is activated
- disctance - as extern
- TP, SL, slippage - as extern
if order (2) hit TP, delete pending order (3)
and open order (1) from new candle according previous condition
if Order (3) is openned
order (4) pending order (buystop if (3) was sell, sellstop if (3) was buy)
- placed at the same time when (3) is activated
- disctance - as extern
- TP, SL, slippage - as extern
if order (3) hit TP, delete pending order (4)
and open order (1) from new candle according previous
if order (4) is openned, repeat conditions as previous until 8th orders