支持中心 帮助文档 联系我们
📱 微信: 18391752892 | 💬 QQ: 3313198376 | ✈️ Telegram | 📧 fishfx123@gmail.com
EURUSD 1.0856 +0.12% GBPUSD 1.2678 +0.08% USDJPY 149.23 -0.15% XAUUSD 2034.56 +0.34% EURUSD 1.0856 +0.12% GBPUSD 1.2678 +0.08% USDJPY 149.23 -0.15% XAUUSD 2034.56 +0.34%

Move StopLoss to BreakEven

👤 作者: Christian Schwirtz

4.5 分

¥0.00

📌 版本: v1.1
📥 下载: 0
⭐ 评分: 4.5

📝 产品详情

Move StopLoss to BreakEven

作者Christian Schwirtz
版本v1.1
更新26 九月 2024
激活数78603
This tool for the MetaTrader 5 trading platform allows setting the stop loss of open positions to breakeven (entry price) plus an adjustable distance in points. The stop loss is only adjusted if the position is already in profit.

Main functions:

  • Button:
  • A button is displayed on the chart with the text "StopLoss to BreakEven".
  • The color of the button can be customized, by default it is red.

  • User interaction:
  • When you click the button, for all open positions that are in profit, the stop loss is set to the entry price plus an adjustable distance (10 points by default).

  • Stop loss adjustment:
  • For buy positions, the stop loss is set to the entry price plus the distance if the current price is above the entry price.
  • For sell positions, the stop loss is set to the entry price minus the distance if the current price is below the entry price.


Error handling:

  • If there are no open positions, an information message is displayed.
  • If an error occurs when adjusting the stop loss, an error message is also displayed.

Input values:

  • distanceInPoints: The distance (in points) between the current price and the new stop loss (default: 10 points).
  • buttonColor: The color of the button can be customized (default: red).


In summary:

This tool allows you to easily set stop loss to break-even plus a defined distance for all open positions that are already in profit by clicking on the chart button.


Disclaimer:

Trading carries significant risk and may not be suitable for all investors. Past performance is not indicative of future results. Use this EA at your own risk and ensure it fits your overall trading strategy.


If you like the program, please leave a 5-star rating and a short comment :)


安全须知

本产品仅通过 MQL5.com 官方渠道获取。其他渠道版本可能缺少完整功能和技术支持。

EA 配置

交易品种XAUUSD
时间框架H1 (推荐)
推荐经纪商IC Markets, IC Trading
最低存款$300 / 0.01手

📸 截图预览