Idea by: Iurii Tokman.
MQL5 code by: Vladimir Karputov.
At the first start, open a BUY position with the volume of Lots. Then monitor (in OnTradeTransaction) all opening positions and remember (separately for BUY and SELL positions) the opening prices:
The virtual Take Profit is monitored, too: As soon as the position profit reaches or exceeds Virtual Take Profit, close the position by market.

Traduit du russe par MetaQuotes Ltd.
Code original : https://www.mql5.com/ru/code/20630
Exp_Sar_Tm_Plus
A trading system based on indicator signals Parabolic Stop and Reverse system with the possibility to set a fixed position holding time.
EA Moving Average
The EA is based on Moving Average.mq5 from standard delivery. Working with OnTradeTransaction to get the price of the last closed position.
TwoBarsComparison
The EA compares the opening prices of the zeroth and the second bar. It moves positions to a breakeven and/or enables trailing.
e_Breakeven_v4
An assistant Expert Advisor. It moves positions to a breakeven and then enables trailing.