Guardian Yield Keeper
- 유틸리티
- Ngoc Huu Nghia Tong
- 버전: 1.0
- 활성화: 10
Guardian Yield Keeper is a utility Expert Advisor for traders who want real-time exit management and profit protection for open positions on the current symbol. This EA does not open new trades and does not generate entry signals. Its job is simple: monitor existing positions and close them when your profit or risk conditions are met. It is especially suitable for traders using DCA, Grid, Martingale, or basket trading systems and looking for a dedicated management layer that is more flexible than the default exit logic of the source EA.
Guardian Yield Keeper runs as a protective layer behind your existing strategy. It scans open positions on the current chart, filters them by Magic Number or manual trades, and applies logic such as single order close, basket close, trailing profit, DCA risk exit, and drawdown protection. This helps traders lock profit faster, reduce the time spent holding exposed baskets, and manage recoveries with more discipline during volatile market conditions.
Where It Fits Best
- Used together with DCA, Grid, or Martingale EAs: Add the source EA's magic number to Managed Magic Numbers so Guardian Yield Keeper can monitor the active basket and close it when profit reaches your target, or exit earlier when a deep basket recovers to a safer profit zone.
- Managing multiple strategies on the same symbol: Enter multiple magic numbers so the EA can monitor several trading systems at the same time, display each group clearly on the panel, and apply a consistent exit framework across them.
- Protecting manual trades: Enable Manage Manual Trades to bring manual positions into the same management workflow, helping traders control discretionary trades or manually adjusted baskets more consistently.
- Deploying across different markets: The EA can be used on XAUUSD, EURUSD, AUDCAD, and other symbols. It automatically detects the current chart symbol and only manages positions that belong to that symbol, helping avoid unwanted cross-symbol interference.
- Upgrading exit quality for an existing EA: This is useful when an EA enters trades well, but its take-profit, trailing, or drawdown control logic is too limited. Guardian Yield Keeper adds an extra protection layer without forcing you to replace your current entry system.
Best For
- Traders who already use an entry EA and want exit management handled separately.
- Basket strategy users who want to close by total profit or average profit per order.
- DCA traders who need tighter control as order count grows and want a safer recovery exit.
- Manual traders who want USD-based trailing and profit exits instead of discretionary closing.
Control and Safety
- Only manages and closes trades that match the configured magic number and the symbol of the current chart
- Does not open new positions and does not alter the entry logic of the source EA
- Automatically retries according to Close Order Retry Count when a close fails because of price changes or temporary execution issues
- Does not stop the entire process because one order fails; the EA continues processing the remaining positions in the basket
- Writes clear logs for key actions such as order close, trailing activation, drawdown protection, and retry events so traders can review behavior more easily
- Keeps Buy and Sell groups separate to match the real structure of open baskets and reduce mistakes in profit handling
Key Features
- Single Order Close: Automatically closes individual positions when profit reaches the configured Single Order Profit Target (USD). Useful for strategies that want to secure profit trade by trade.
- Basket Close: Closes the entire basket based on either total profit or average profit per order, depending on the selected Basket Profit Mode and Basket Profit Target (USD).
- DCA Risk Exit: Exits a basket early when the DCA order count becomes high and price recovers to a modest profit zone, helping reduce the risk of holding a deep basket for too long.
- Drawdown Protection: Sends an alert or closes all trades in a violating magic-number group when drawdown exceeds the configured USD or percentage threshold.
- Trailing Profit: Tracks the highest profit reached and automatically closes the trade or basket when profit pulls back beyond the allowed threshold.
- Info Panel: Displays balance, equity, drawdown, managed trade-group status, and control data directly on the chart in real time.
Main Settings
- GENERAL SETTINGS
- Managed Magic Numbers (comma-separated): The list of magic numbers to manage, for example: "1111, 2222, 3333".
- Manage Manual Trades: Includes manual trades in the same management workflow.
- Close Order Retry Count: Number of retry attempts when close execution fails because of requotes or temporary execution issues.
- Enable Logging: Enables detailed logging for monitoring and review.
- PROFIT & RISK EXIT SETTINGS
- Enable Single Order Close: Enables individual order close by USD profit target.
- Single Order Profit Target (USD): Profit threshold for closing individual positions.
- Enable Basket Close: Enables full basket profit-taking.
- Basket Profit Mode: Chooses whether the basket is evaluated by total profit or average profit per order.
- Basket Profit Target (USD): Profit threshold for closing the basket.
- Enable DCA Risk Exit: Enables early exit logic for DCA baskets when the defined conditions are met.
- DCA Order Count Threshold: Minimum number of orders needed before DCA exit is considered.
- DCA Exit Profit Threshold (USD): Minimum average profit level required to close a basket under DCA risk-exit logic.
- TRAILING SETTINGS
- Enable Trailing: Enables profit trailing logic.
- Single Order Trailing Start Threshold (USD): Profit level that activates trailing for a single order.
- Basket Trailing Start Threshold (USD): Profit level that activates trailing for the entire basket.
- Trailing Step Threshold (USD): Maximum pullback allowed from peak profit before the EA closes the trade or basket.
- DRAWDOWN PROTECTION
- Drawdown Mode: Selects the drawdown protection method.
- Trigger Amount (USD): Loss threshold used for amount-based protection.
- Trigger Percent (% of Balance): Loss threshold based on a percentage of account balance.
- Enable Alert on Drawdown: Sends an alert when drawdown hits the configured threshold.
- Enable Auto Close by Magic Number: Automatically closes all trades belonging to the violating magic number when drawdown protection is triggered.
Guardian Yield Keeper is a practical choice for traders who want stronger exit control without changing the entry structure of their existing system. When configured correctly, it adds a more disciplined, transparent, and consistent layer of profit management to live trading.
See more of my EAs and trading tools at Ngoc Huu Nghia Tong on the MQL5 Market.
