Trade Guard Pro MT5
- ユーティリティ
- バージョン: 1.0
- アクティベーション: 10
Trade Guard Pro MT5 is an account-wide trade management Expert Advisor designed to simplify the opening, monitoring, protection, and closing of trading positions.
It provides a convenient graphical control panel directly on the MT5 chart.
The EA allows traders to:
-
Open BUY and SELL positions.
-
Close BUY or SELL positions separately.
-
Close all profitable or losing positions.
-
Close all open positions across the account.
-
Partially close positions.
-
Automatically protect positions using Break Even.
-
Automatically protect profits using Trailing Stop.
-
Monitor account balance, equity, floating profit/loss, and open positions.
-
Move and resize the trading panel directly on the chart.
The EA supports both Hedging and Netting account types.
Understanding the Trading Panel
BUY
Opens a market BUY position on the current chart symbol.
SELL
Opens a market SELL position on the current chart symbol.
CLOSE BUY
Closes all BUY positions across the trading account, regardless of symbol.
CLOSE SELL
Closes all SELL positions across the trading account, regardless of symbol.
CLOSE LOSS
Closes positions currently showing negative floating profit/loss.
CLOSE PROFIT
Closes positions currently showing positive floating profit/loss.
CLOSE ALL
Closes every open position across all symbols and Magic Numbers.
Important: CLOSE ALL is an account-wide operation. Use it carefully.
PARTIAL CLOSE
Closes a percentage of each eligible open position.
The percentage is controlled by the Partial % field.
BREAK EVEN
Enables or disables automatic Break Even management.
When enabled, the EA attempts to move the Stop Loss to the entry price plus or minus the configured offset once the required profit threshold is reached.
TRAILING STOP
Enables or disables automatic Trailing Stop management.
When enabled, the EA adjusts Stop Loss levels as positions move into profit, according to the configured trailing parameters.
Editable Trading Parameters
The panel includes editable fields:
| Parameter | Description |
|---|---|
| Lots | Fixed trading volume |
| SL pts | Stop Loss distance in points |
| TP pts | Take Profit distance in points |
| Partial % | Percentage to close |
These fields allow you to modify trade settings without reopening the EA properties.
EA Input Settings
Order Settings
UseRiskPercent
-
false: Uses the fixed lot size.
-
true: Calculates volume according to the configured risk percentage.
FixedLots: Default fixed volume.
RiskPercent: Percentage of account balance used to calculate position volume.
DefaultSLPoints: Default Stop Loss distance.
DefaultTPPoints: Default Take Profit distance.
MaxSpreadPoints: Maximum permitted spread for new entries.
DeviationPoints: Maximum permitted execution deviation.
Break Even Settings
EnableBreakEven: Enables Break Even management initially.
BreakEvenTrigger: Profit in points required before moving the Stop Loss.
BreakEvenOffset: Distance in points from the entry price.
Trailing Stop Settings
EnableTrailing: Enables Trailing Stop management initially.
TrailingStart: Profit threshold before trailing begins.
TrailingDistance: Distance between the market price and the Stop Loss.
TrailingStep: Minimum improvement required before modifying the Stop Loss again.
Partial Close Settings
PartialClosePercent: Default percentage of each position to close.
Basket Management
BasketTakeProfit: Account-wide floating profit threshold that triggers an attempt to close all positions.
BasketStopLoss: Account-wide floating loss threshold that triggers an attempt to close all positions.
A value of zero disables the corresponding basket threshold.
Panel Settings
| Parameter | Description |
|---|---|
| PanelX | Initial horizontal position |
| PanelY | Initial vertical position |
| PanelWidth | Initial panel width |
| PanelHeight | Initial panel height |
| MinimumPanelWidth | Minimum permitted width |
| MinimumPanelHeight | Minimum permitted height |
Moving and Resizing the Panel
The panel supports two mouse operations.
Moving the panel:
-
Position your mouse over the panel's title area.
-
Hold the left mouse button.
-
Drag the panel to your preferred chart location.
-
Release the mouse button.
Resizing the panel:
-
Locate the resize handle in the bottom-right corner.
-
Hold the left mouse button.
-
Drag outward to enlarge the panel.
-
Drag inward to reduce its size.
The panel controls are intended to move and scale together.
Account Monitoring
The information section displays:
-
Balance: Current account balance.
-
Equity: Current account equity.
-
Floating P/L: Combined floating profit or loss.
-
Positions: Number of currently open positions.
-
Status: Latest EA operation or management message.
The account information covers all open positions rather than only the chart symbol.
Hedging and Netting Compatibility
The EA supports:
Hedging accounts: Multiple positions can exist independently, including positions in opposite directions.
Netting accounts: Positions are managed according to the broker's netting-account structure.
Partial closing uses different execution methods depending on the account type.
Recommended Testing Procedure
Before using the EA on a live account:
-
Attach it to a demo account.
-
Test BUY and SELL operations.
-
Test CLOSE BUY and CLOSE SELL separately.
-
Test CLOSE LOSS and CLOSE PROFIT.
-
Test CLOSE ALL with multiple symbols.
-
Test partial closing.
-
Test Break Even and Trailing Stop.
-
Test panel dragging and resizing.
-
Verify the EA's behaviour on your broker's Hedging or Netting account.
Important Risk Warnings
-
Always verify the selected lot size before opening a trade.
-
Risk-percentage calculations depend on the Stop Loss and the symbol's contract specifications.
-
Spread filters can prevent new orders from being opened.
-
Stop Loss modifications may be rejected because of broker restrictions or minimum stop distances.
-
Basket thresholds are based on floating profit/loss and do not guarantee the final realized result.
-
Closing operations are subject to execution conditions, liquidity, and broker availability.
-
Break Even and Trailing Stop do not guarantee that a position will close at the intended price.
Always test the EA on a demo account before using it with real funds.
Conclusion
Trade Guard Pro MT5 combines manual trade execution and automated position management in one convenient interface.
Its account-wide controls, risk management options, Hedging and Netting compatibility, and movable and resizable panel make it a flexible trade management tool.
Happy trading
