支持中心 帮助文档 联系我们
📱 微信: 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%

Advanced TP SL Control

👤 作者: SERGUEI PROKHOROV

4.5 分

¥210.00

📌 版本: v2
📥 下载: 0
⭐ 评分: 4.5

📝 产品详情

Advanced TP SL Control

作者SERGUEI PROKHOROV
版本v2
激活数20
原价$30 USD

Overview

This expert advisor (EA) monitors open positions and closes them based on the total floating profit or loss per symbol. It allows both global and symbol-specific configurations to control risk or lock in profits automatically.

Core Functionality

  • Tracks total floating P/L (profit or loss) per symbol in account currency.

  • Automatically closes positions if a defined threshold is reached.

  • Fully customizable per symbol via the CustomizedSettings string.

Input Parameters

  • GlobalTakeLoss (double)
    Defines a global profit/loss threshold in account currency.
    Positive values → Close when total profit reaches this amount.
    Negative values → Close when total loss exceeds this amount.
    Set to 0 to use per-symbol settings from CustomizedSettings .

  • GlobalOrderDirection (enum)
    Filters which direction of trades are counted:

    • Buy

    • Sell

    • BuyAndSell (default)

  • ProfitLossAllOrders (enum)
    Filters which trades are counted:

    • OnlyProfitPositions

    • OnlyLossPositions

    • ProfitAndLossPositions (default)

  • ConcernedMode (enum)
    Defines what to close when the threshold is reached:

    • AllOrders : closes all trades for the symbol

    • ConcernedOrders : closes only those trades that were used in the calculation

  • CustomizedSettings (string)
    Format: "SYMBOL,DIRECTION,PL_FILTER,CONCERNED_FLAG,THRESHOLD;"
    Example: "EURUSD,B,L,C,-50.0;XAUUSD,S,P,A,100.0;"

    • DIRECTION : B = Buy, S = Sell, A = BuyAndSell

    • PL_FILTER : P = OnlyProfit, L = OnlyLoss, X = ProfitAndLoss

    • CONCERNED_FLAG : C = ConcernedOrders, A = AllOrders

    • THRESHOLD : Profit/loss threshold in account currency

  • Ping (int)
    Interval in seconds to refresh and evaluate orders.

How It Works

  1. Every Ping seconds, EA evaluates orders.

  2. Calculates total P/L for each symbol based on filters.

  3. If threshold is reached, it closes the defined trades (all or concerned).

  4. On chart, current P/L is shown in green (profit) or red (loss).


安全须知

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

EA 配置

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

📸 截图预览