Advance Trade Manager
- 유틸리티
-
Jose Rodrgues Chaves
소개
저는 MetaTrader 5 지표와 수동 거래 도구에 집중하는 독립 MQL5 개발자입니다. 제 작업은 두 가지 아이디어의 교차점에 있습니다. 트레이더가 실제로 사용하는 시장 구조 개념(Smart Money Concepts, 유동성, 주문 흐름)과, 이러한 개념이 리페인트 없이 실시간으로 작동하도록 만드는 데 필요한 엔지니어링 규율입니다.
나의 여정 - 버전: 2.1
- 업데이트됨: 21 9월 2026
- 활성화: 10
ADVANCE TRADE MANAGER
A complete, tabbed trade-management dashboard for MetaTrader 5 that puts every routine trade operation on one compact panel. No more hunting through menus — open, protect, scale and manage positions from a single interface.
The panel is a pure GUI overlay. It never touches your existing chart objects, indicators, arrows or manual lines. All chart objects it creates use the dedicated EGF_Z_ (zones) prefix, and trigger lines use the panel's own object names — so nothing else on your chart is affected.
[NOTE: This trade manager is set for XAUUSD / GOLD symbol]The Four Tabs
Tab 1 — TRADE MANAGER (orange)
The main execution and position-management hub.
-
BUY / SELL market buttons — instant execution with TP and SL calculated from the pip fields.
-
Lot size selector — choose from a configurable list (e.g. 0.01 … 1.20 ) or type any custom value.
-
Positions selector — open 1 to 10 positions in one click.
-
TP / SL pips — set default take-profit and stop-loss distances with - / + step buttons.
-
TP ladder — when opening 2+ positions, each subsequent position gets an additional TP offset (configurable). The last position becomes a runner with no TP that trails after the prior TP is hit.
-
Limit / Stop orders — place Buy Limit, Sell Limit, Buy Stop and Sell Stop with dedicated price / TP / SL fields. Toggle between LIMIT and STOP mode with one button.
-
Grid mode — place a configurable number of orders at a fixed pip step (e.g. 5 orders × 10 pips).
-
Management buttons — BREAK EVEN, partial close 10% / 30% / 50% / 90%, CLOSE PROFIT, CLOSE LOSS, DELETE LIMITS, and a TRAIL toggle.
-
Live P&L display — floating P&L for the current symbol, position count and total volume.
-
Risk preview — shows the estimated account-currency risk for the trade you are about to open (lots × SL pips × pip value).
-
Volatility blocker — optional ATR(14)-based filter that blocks new trades when volatility is too high.
-
News filter — reads the built-in economic calendar and warns you of high-impact events within a configurable window.
-
Timeframe + candle countdown — shows the active timeframe and time remaining until the current candle closes.
-
Error log — the last 4 errors are shown at the bottom of the panel and auto-clear after 30 seconds.
Tab 2 — SL & TP MANAGER (green)
Bulk protect every open position without leaving the panel.
-
SET TP / SET SL — apply a price to all eligible open positions at once.
-
BUY BE +N / SELL BE +N — move stop-loss of all BUY (or all SELL) positions to break-even plus a configurable number of points.
-
BUY positions only — set TP or SL on BUY positions only.
-
SELL positions only — set TP or SL on SELL positions only.
-
Positions counter — shows how many positions are currently targeted.
-
Live quote + spread display — current Bid/Ask and broker spread in points and pips.
Tab 3 — ZONES PANEL (blue)
Draw supply/demand style zones on the chart, limited to the current trading day.
-
Fill in SELL zone top/bottom and BUY zone top/bottom.
-
Fill in optional SELL target and BUY target levels.
-
Press Draw Zones to render the filled rectangles and dashed target lines for the current day.
-
Press Clear to remove them.
-
Press Activate to automatically place:
-
SELL LIMIT at the SELL zone top
-
SELL STOP at the SELL zone bottom
-
BUY LIMIT at the BUY zone bottom
-
BUY STOP at the BUY zone top
-
TP comes from the target fields, SL from the default SL pips.
-
-
Levels on the wrong side of the current price are automatically skipped.
-
Zones are automatically re-timed to the new day at rollover.
Tab 4 — DRAG LINES (magenta)
Price-touch trigger lines that fire trades automatically.
-
Press BUY LINE to place a horizontal line above price; press SELL LINE to place one below price.
-
Drag the line to any level — it stays horizontal and re-arms automatically.
-
When price touches the line, the EA opens a BUY (for the buy line) or SELL (for the sell line) using the same TP/SL/lot settings as the main panel.
-
Press RESET LINES to remove both trigger lines.
-
Line length is configurable in bars and auto-refits on timeframe change.
How to Use — Quick Start
-
Attach the EA to any chart. The dashboard appears at the configured X/Y position.
-
On Tab 1, choose your lot size and number of positions, set TP and SL pips, then press BUY or SELL.
-
Switch to Tab 2 to bulk-set TP/SL or move positions to break-even.
-
Switch to Tab 3 to draw daily zones and optionally auto-place orders from them.
-
Switch to Tab 4 to place drag-line price triggers.
All actions apply to the chart symbol by default. Tab 2 can optionally apply to all symbols via the InpAllSymbols input.
Key Input Parameters
| Group | Parameter | Purpose |
|---|---|---|
| Sizing | InpPipSize | Pip size (0 = auto-detect, correct for 5/3-digit and metals) |
| InpTPPips / InpSLPips | Default TP / SL distance | |
| InpTPLadderPips | TP offset between consecutive ladder positions | |
| InpLadderSLAdvance | Advance SL up the ladder as each TP is hit | |
| Grid | InpGridStepPips / InpGridCount | Grid step and default order count |
| Lots | InpLotsList / InpPositionsList | Comma-separated dropdown values |
| Execution | InpMagic , InpSlippagePoints | Magic number and slippage |
| InpStopLevelBufferPoints | Extra buffer above broker minimum stop distance | |
| InpModifyRetries / InpModifyCooldownMs | SL/TP retry and throttle settings | |
| Trailing | InpTrailActivatePips / InpTrailDistPips | Profit before trailing / distance behind price |
| InpTrailLastAfterTP | Trail only the last position of a 2+ batch | |
| Volatility | InpBlockHighVolatility / InpVolatilityThreshold | ATR-based trade blocker |
| News | InpNewsFilter , InpTrackedCurrencies , InpNewsBlockMinutes | Calendar-based news notice |
| SL & TP tab | InpSLTPMagic , InpAllSymbols , InpBEPlusPoints | Magic filter, symbol scope, BE buffer |
| Zones | Colors + default zone/target levels | Zone appearance and defaults |
| Drag lines | InpDragLinesEnabled , InpLineOffsetPoints , InpLineLengthBars | Trigger line behavior |
| Panel | InpPanelX , InpPanelY | Dashboard screen position |
Important Notes
-
Recommended timeframe: any. Pip size is auto-detected correctly for 5-digit, 3-digit, 4-digit, 2-digit and metals.
-
Broker compatibility: works with any MT5 broker. SL/TP levels are automatically clamped into the broker's valid stop zone, with retries on slow servers.
-
Calendar: the news filter uses the built-in MT5 economic calendar. If your broker does not provide calendar data, the news line will simply show the "no news" state — no errors.
-
Drag lines: disabled by default only if you set InpDragLinesEnabled = false . Leave it true to use Tab 4.
-
Chart objects: zones use the EGF_Z_ prefix only. Trigger lines use the panel's own object names. The EA never modifies user lines, arrows or indicator objects.
-
Account type: works on netting and hedging accounts. Partial close and multi-position features are best used on hedging accounts.
Risk Disclaimer
This Expert Advisor is a trade management tool, not a signal generator. It does not predict the market and does not guarantee profit. All trading decisions and their consequences remain the sole responsibility of the user. Always test on a demo account before using on a live account. Past performance is not indicative of future results.
Support
For questions, bug reports or feature requests, please use the MQL5 Market messaging system. Include the EA version, broker name, symbol and a screenshot of the journal if reporting an issue.
