Haven Trail EURUSD is a breakout EA for EUR/USD (EURUSD). Attach it to a 30-minute chart.
How it trades
Between 4 and 23 server time, it places a buy stop 12 pips above the current price and a sell stop 12 pips below it, and enters in whichever direction price breaks out. An unfilled stop order is re-placed only when at least 60 seconds have passed since it was last placed and it has drifted more than 5 pips from the position calculated from the current price.
For 60 minutes after either order is filled, no new stop orders are placed (the remaining opposite stop order keeps being re-placed as usual). There is at most 1 buy and 1 sell position, and both can be open at the same time (2 positions at most in total).
Each order carries a stop loss of 20 pips and a take profit of 80 pips. When the floating profit reaches 10 pips, the stop loss is moved to entry price +5 pips, and after that, every time the gap between price and stop loss exceeds 10 pips, the stop loss is pulled closer by 5 pips. It works the same way for buys and sells.
Outside the trading hours, unfilled stop orders are cancelled. Open positions are held until they reach the stop loss or take profit.
Parameters
• Lot size (default 0.01)
• Maximum spread (default 2.0 pips): while the spread is above this, no new stop orders are placed (0 turns it off)
• Stop order distance (default 12 pips), stop loss (default 20 pips), take profit (default 80 pips)
• Trading hours (default 4 to 23, server time)
• Time without new stop orders after a fill (default 60 minutes)
• Friday close time (default 0 = off): when set, from that time on Friday this EA's positions are closed and its stop orders are cancelled
• Magic number
This EA only touches its own orders, identified by magic number and currency pair. It is for EURUSD only and stops automatically if attached to a chart of any other currency pair.
Notes
• Trading hours are judged by the broker's server time. On accounts with a different server time, the hours you actually trade (in your local time) will change.
• Stop orders can be filled with slippage. In fast markets, the stop loss may be filled at a worse price than set.
• Buy and sell positions can be held at the same time. It cannot be used on accounts that do not allow hedging.
EURUSD 30-minute chart backtest
Tested with real tick data (modeling quality 99.00%), a spread of 2.0 pips, an initial deposit of 10,000 dollars and the default parameters.
* A backtest is a test on past data and does not guarantee future results.

