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


The Expert Advisor opens or closes a position at the intersection of the lines.
The author of the idea — Vladimir Khristov , the author of the MQL5 code — Barabashkakon .
The EA draws 4 lines: "Buy Line", "Sell Line" and two "Close" lines.
Your task is to move the line to the location where you intend to perform a specific action. ie. Buy, sell, close positions.
When the selling price is higher than the corresponding line and the buying price is lower than the corresponding line, a position is opened or closed. ie. When price crosses one of the four lines.
The image shows an example transaction.
You can use variables to reduce the number of rows:
Withdraw_Sell — draw sell line
Lottery_Buy —Draw a buy line
DRAW_CLOSE1 — draw the Close1 line
DRAW_CLOSE2 — draw Close2 line
There are many additional external variables - batch size and order - maximum number of orders. When placed at an angle, the closing line can be used as a trailing stop.
Attachment download
📎 sendclose.mq5 (20.53 KB)
Source: MQL5 #17227
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •