작업 종료됨
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
명시
Hello there, i need a simple mt4 EA to trade range breakouts.
At a given hour the EA places 2 stop orders at the previous bar High and Low.
Delete all (pending and open) orders at a specific hour.
SL is at the opposite High/Low of the bar, take profit is at a projection of the stop loss (es. 1:1).
Starting risk is in % of balance.
If the price reaches the take profit delete all the the orders until the next signal.
If it reaches the stop loss, places again the order with the same parameters (entry, sl, tp) but with lot_size*martingale coefficient (ex: 0.1 * 2.0) until the take profit is reached, then cancel all orders.
Avoid trading if the range of the bar is > x.
Delete all orders after x attempts (stop marginale).
Trailing stop only for the first trade: trailing points based on range coefficient (ex: activate after pips profit == range * 2, trailing step =1 * range).
# If trailing stop is active then apply it to the first trade. If the trade fails, deactivate trailing stop.
The EA should work for any pair/digits.
Inputs example:
Box starting at= 12:00
Box ending at= 14:00
Send orders at= 14:00
Delete all orders at= 23.50
Trailing stop (only for the first trade) = Y/n
Trailing start (range*x)= 2
Trailing step (range*x)= 1
Risk % = 1
Martingale coefficient (lot size*x)= 2
Martingale stop (max trades) = 4
Max Range in pips = 30
box and trailing stop example:
![example example](https://c.mql5.com/21/439/example.jpg)