Idea by: Scriptor.
MQL5 code by: Vladimir Karputov.
Working with pending Buy Stop and Sell Stop orders. Pending orders are placed and removed at a specified time (Time of order placement and Time of order removal, respectively), the time being considered as hours and minutes only in the parameters. As soon as any of the pending orders triggers (the triggering moment is monitored in OnTradeTransaction), the remaining pending order will be removed.
Test example on GBPUSD,H1

Traduit du russe par MetaQuotes Ltd.
Code original : https://www.mql5.com/ru/code/20637
e_Breakeven_v4
An assistant Expert Advisor. It moves positions to a breakeven and then enables trailing.
TwoBarsComparison
The EA compares the opening prices of the zeroth and the second bar. It moves positions to a breakeven and/or enables trailing.