Autotrade - MetaTrader 5 Expert | MT5 EA Download - MetaTrader 5 Resources


Both pending orders (BuyStop and SellStop) are placed within the specified period.
The author of the idea — John Smith , the author of the MQL5 code — Barabashkakon .
Run starts
Place two pending orders:

Then we expect only one position operation - if for any reason two positions are opened, both positions should be deleted :
Manage open positions.
First we check if the minimum profit is reached. At the same time, the size of bar 1 must be smaller than the "stable point". If the conditions are met, close the position and exit.
Second check - also checks whether absolute profit or loss is achieved. If the conditions are met, the position is closed.
EUR/USD results for the first half of the year from June 1, 2016 to December 21, 2016:

Attachment download
📎 autotrade.mq5 (20.44 KB)
Source: MQL5 #17246
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •