工作已完成
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
指定
X Bars close EA
The indicator shows multiple arrows on the chart. The EA should Trade only the first buy arrow or the first sell arrow. The other arrows should be ignored. For example, when a buy trade hits stop-loss or take-profit, and another buy signal appears, the EA should ignore it and wait for a sell signal since it has already done a buy trade. The only exception to this rule is when the EA is just dropped on the chart. The EA should trade the next signal and then wait for the opposite signal before taking another trade.
All trades should be at the close of the candle.
1. If a buy arrow appears, the EA should place a buy stop at x pips from the high of the signal candle. If x=0, the EA should open a buy market order.
2. If a sell arrow appears, the EA should place a sell stop at x pips from the low of the signal candle. If x=0, the EA should open a sell market order.
3. Once the EA is placed on the chart, it must wait for the next signal before trading.
4. When a pending order is not triggered and another signal shows up, delete the pending order, and place the new order.
5. The stop-loss of the buy trade should be y pips from the high of the previous candle. The stop loss of a sell trade should be y pips from the low of the previous candle.
6. The EA should have martingale strategy to recover losing trades.
7. The EA should have an option to adjust the indicator values.
8. The EA should have, trailing stop, break even, trading time, close on opposite signal, spread filter, maximum lot size, number of trades to take in a day, magic number, slippage.