Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

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

author EAcpu | 3 reads | 0 comments |

SendClose - expert for MetaTrader 5

SendClose - expert for MetaTrader 5

The Expert Advisor opens or closes a position at the intersection of the lines.

The author of the ideaVladimir Khristov , the author of the MQL5 codeBarabashkakon .

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.

SendClose - expert for MetaTrader 5

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

Verification code Refresh