Professional Position Management Tool for MetaTrader 5
Manage Take Profit, Stop Loss, and monitor all your trades from a single, powerful interface.
- Overview
- Features
- Screenshots
- Installation
- Quick Start
- User Interface Guide
- Features Explained
- Configuration
- FAQ
- Troubleshooting
- Roadmap
- Contributing
- License
- Author
MT_MANAGER is a comprehensive Expert Advisor designed for MetaTrader 5 that simplifies position management by allowing traders to:
- Synchronize TP/SL across all open positions with a single click
- Monitor real-time metrics including profit/loss in both USD and pips
- Automate trading tasks like auto-close at specific times and auto-entry after weekends
- Track market timing with candle close countdown and market open/close timers
- View critical information at a glance without cluttering your chart
Perfect for scalpers, day traders, and swing traders who manage multiple positions simultaneously.
- โ Unified TP/SL Setting - Set Take Profit and Stop Loss for all positions on the current symbol at once
- โ Interactive Input Boxes - Quick input with visual feedback and Enter key support
- โ Auto-Detection - Automatically detects existing TP/SL from open positions on EA startup
- โ One-Click Close All - Emergency exit button to close all positions instantly
- ๐ Live Profit/Loss Tracking - See estimated profit/loss in account currency (USD/EUR/etc)
- ๐ Pips Calculation - Track profit/loss in pips for better risk assessment
- ๐ฐ Total Position Stats - Monitor total positions count and lot size
- ๐ก Spread Display - Real-time spread monitoring in pips
- โฑ๏ธ Candle Countdown - Precise countdown to next candle close (HH:MM:SS)
- ๐ Market Countdown - See when market closes (Friday) or opens (Monday during weekends)
- โฐ Auto Close at Time - Automatically close all positions at a specified time daily
- ๐ Auto Entry After Weekend - Open positions when market reopens on Monday with predefined parameters
- ๐ฏ Smart Entry Execution - Waits for price to reach entry level before executing
- ๐ฅ๏ธ Clean Design - Borderless panels with color-coded information
- ๐ Dual Panel Layout - Control panel (left) and info display (right)
- ๐จ Color Coding - Green for profits, red for losses, yellow for alerts
- ๐ฑ Non-Intrusive - Stays out of your way while providing critical info
โโโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ CONTROL PANEL โ โ MT_MANAGER by nwf โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโค โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Input Target TP: โ โ Symbol: EURUSD โ
โ [1.09500 ] โ โ Timeframe: M15 โ
โ [ SET TP ] โ โ Spread: 1.5 pips โ
โ โ โ Close Candle: 00:12:45 โ
โ Input Target SL: โ โ Market Close: 2 hari 8 jam โ
โ [1.08800 ] โ โ โ
โ [ SET SL ] โ โ Target TP: 1.09500 โ
โ โ โ Target SL: 1.08800 โ
โ [ CLOSE ALL ] โ โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโ โ Total Posisi: 3 โ
โ Total Lot: 0.15 โ
โ Estimasi Profit TP: +375 USD โ
โ Estimasi Loss SL: -225 USD โ
โ TP Pips: 50.0 pips โ
โ SL Pips: -30.0 pips โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ MT_MANAGER by nwf โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Symbol: GBPUSD โ
โ Timeframe: H1 โ
โ Spread: 2.1 pips โ
โ Close Candle: 00:45:23 โ
โ Market Opens: 1 hari 8 jam โ โ Countdown to Monday open!
โ โ
โ Target TP: Belum diset โ
โ Target SL: Belum diset โ
โ โ
โ Total Posisi: 0 โ
โ Total Lot: 0.00 โ
โ Estimasi Profit TP: - โ
โ Estimasi Loss SL: - โ
โ TP Pips: - โ
โ SL Pips: - โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
-
Download the EA
๐ DOWNLOAD MT_MANAGER.ex5
(From GitHub Releases) -
Copy to MetaTrader 5 folder
Copy
MT_MANAGER.ex5to:C:\Users\[YourUsername]\AppData\Roaming\MetaQuotes\Terminal\[TerminalID]\MQL5\Experts\Quick way:
- Open MT5
- Press
Ctrl + Shift + D(Open Data Folder) - Navigate to
MQL5\Experts\ - Paste
MT_MANAGER.ex5
-
Refresh MT5
- In MT5, right-click on Navigator โ Expert Advisors
- Click "Refresh"
- You should see "MT_MANAGER by nwf"
โ Done! Ready to use.
- Open MetaTrader 5
- Open a chart (e.g., EURUSD M15)
- Navigate to Navigator โ Expert Advisors
- Drag MT_MANAGER by nwf onto the chart
- Click OK in the settings dialog (use defaults for first time)
- Type target TP price in the input box (e.g.,
1.09500) - Click SET TP button (or press Enter)
- All positions on current symbol will have TP set to 1.09500
- Type target SL price in the input box (e.g.,
1.08800) - Click SET SL button (or press Enter)
- All positions on current symbol will have SL set to 1.08800
- Click CLOSE ALL button (red)
- All positions on current symbol will close immediately
- Use with caution!
The right panel shows:
- Current profit/loss if TP is reached
- Current loss if SL is reached
- Total pips profit/loss
- Real-time spread
- Time until next candle close
- Time until market close (or opens on weekends)
| Element | Description | Action |
|---|---|---|
| Input Target TP | Text input box for TP price | Type price + Enter or click SET TP |
| SET TP Button | Green button | Applies TP to all positions |
| Input Target SL | Text input box for SL price | Type price + Enter or click SET SL |
| SET SL Button | Orange-red button | Applies SL to all positions |
| CLOSE ALL Button | Red button | Closes all positions instantly |
| Field | Description | Color |
|---|---|---|
| Symbol | Current trading pair | White |
| Timeframe | Current chart timeframe | White |
| Spread | Current spread in pips | Yellow |
| Close Candle | Countdown to next candle | Yellow (Bold) |
| Market Close/Opens | Countdown to Friday close or Monday open | Orange |
| Target TP | Current TP setting | Green |
| Target SL | Current SL setting | Orange |
| Total Posisi | Number of open positions | White |
| Total Lot | Sum of all lot sizes | White |
| Estimasi Profit TP | Expected profit in USD if TP hits | Green (profit) / Red (loss) |
| Estimasi Loss SL | Expected loss in USD if SL hits | Red (loss) / Green (profit) |
| TP Pips | Total profit in pips | Aqua |
| SL Pips | Total loss in pips | Orange |
Problem: Managing TP/SL for multiple positions individually is time-consuming and error-prone.
Solution: MT_MANAGER allows you to set the same TP or SL for all positions on the current symbol with one click.
Example:
You have 5 BUY positions on EURUSD at different prices:
- Position 1: Entry 1.08500
- Position 2: Entry 1.08600
- Position 3: Entry 1.08700
You want all to close at 1.09500:
1. Type 1.09500 in TP input
2. Click SET TP
3. All 5 positions now have TP = 1.09500 โ
When EA loads, it scans all open positions and:
- If all positions have the same TP โ Auto-fills TP input box
- If all positions have the same SL โ Auto-fills SL input box
- If positions have different TP/SL โ Leaves inputs empty
Benefit: No need to remember what TP/SL you set before!
Estimasi Profit TP: +375 USD
Shows how much money you'll make if all positions hit TP.
TP Pips: 50.0 pips
Shows total profit in pips across all positions (industry standard).
Why both?
- USD = Easy to understand for account management
- Pips = Better for analyzing trade quality
Spread: 1.5 pips
Why it matters:
- High spread = Higher trading cost
- Spreads widen during news โ Avoid trading
- Compare brokers by spread
Example:
EURUSD normal spread: 0.8-1.5 pips โ
EURUSD during NFP news: 5.0-10.0 pips โ ๏ธ (wait!)
Close Candle: 00:12:45
Use cases:
- Wait for candle close confirmation before entry
- Know when your pending order might trigger
- Time your manual entries better
Format: HH:MM:SS (Hours:Minutes:Seconds)
During Trading Week (Monday-Friday):
Market Close: 2 hari 8 jam
Shows time until Friday market close.
During Weekend (Saturday-Sunday):
Market Opens: 1 hari 8 jam 15 mnt
Shows time until Monday market open.
Benefit: Plan your weekend, know when you can trade again!
Purpose: Automatically close all positions at a specific time every day.
Configuration:
EnableAutoClose = true
AutoCloseTime = "23:00" // 11 PM every dayUse cases:
- Avoid holding positions overnight
- Close before major news events
- Stick to your trading hours discipline
Example:
You trade 09:00-17:00 daily.
Set AutoCloseTime = "17:00"
โ EA closes all positions at 5 PM automatically
โ No stress, no late-night monitoring!
Purpose: Open position automatically when market opens Monday.
Configuration:
EnableAutoEntry = true
EntryType = ORDER_TYPE_BUY // or ORDER_TYPE_SELL
EntryPrice = 1.09000 // Target entry price
EntryLot = 0.01 // Lot size
EntryTPPips = 30 // TP = 30 pips from entry
EntrySLPips = 20 // SL = 20 pips from entryHow it works:
- Market opens Monday morning
- EA waits for price to reach
EntryPrice - Once price reaches, EA opens position with specified TP/SL
- Only executes once per Monday
Example:
Friday close: EURUSD = 1.08500
You expect gap up on Monday.
Settings:
- EntryType = BUY
- EntryPrice = 1.09000
- EntryLot = 0.05
- EntryTPPips = 50
- EntrySLPips = 30
Monday open: Price = 1.08900
โ EA waits...
Price hits 1.09000:
โ EA opens BUY 0.05 lot
โ TP = 1.09500 (50 pips)
โ SL = 1.08700 (30 pips)
โ Done! โ
input double TargetTP = 0.0; // Default TP price on startup
input double TargetSL = 0.0; // Default SL price on startupRecommended: Leave at 0.0 to let EA auto-detect from existing positions.
input group "=== AUTO CLOSE AT TIME ==="
input bool EnableAutoClose = false; // Enable Auto Close (default: OFF)
input string AutoCloseTime = "23:00"; // Close Time (HH:MM)Example configurations:
| Trading Style | Setting | Reason |
|---|---|---|
| Day Trader | EnableAutoClose = trueAutoCloseTime = "17:00" |
Close at end of trading day |
| Swing Trader | EnableAutoClose = false |
Hold positions overnight |
| News Avoider | AutoCloseTime = "14:29" |
Close 1 min before 14:30 news |
input group "=== AUTO ENTRY AFTER WEEKEND ==="
input bool EnableAutoEntry = false; // Enable Auto Entry (default: OFF)
input ENUM_ORDER_TYPE EntryType = ORDER_TYPE_BUY; // Entry Type (BUY/SELL)
input double EntryPrice = 0.0; // Entry Price
input double EntryLot = 0.01; // Lot Size
input int EntryTPPips = 30; // TP in Pips
input int EntrySLPips = 20; // SL in PipsExample: Gap Trading Strategy
EnableAutoEntry = true
EntryType = ORDER_TYPE_BUY
EntryPrice = 1.09000
EntryLot = 0.05
EntryTPPips = 50
EntrySLPips = 30Situation: You opened 5 quick scalp positions, want to take profit at key level.
Steps:
- Identify target level:
1.09500 - Type
1.09500in TP input - Press Enter
- All 5 positions now target 1.09500
- Monitor "Estimasi Profit TP" โ
+$250 USD - Watch price reach TP, all close automatically!
Situation: Price moved 30 pips in profit, want to protect.
Steps:
- Check average entry price in info panel
- Type that price in SL input
- Click SET SL
- SL now at entry = Zero risk!
Situation: Major news just released, market going crazy!
Steps:
- Click CLOSE ALL button
- All positions close within 1 second
- Preserved capital โ
Situation: Strong trend on Friday, expect continuation Monday.
Setup:
EnableAutoEntry = true
EntryType = ORDER_TYPE_BUY
EntryPrice = 1.09200
EntryLot = 0.10
EntryTPPips = 60
EntrySLPips = 40Result:
- Go enjoy your weekend
- EA monitors market Monday morning
- Auto-enters when price hits 1.09200
- You wake up to an active trade!
- Use on demo first - Test all features before live trading
- Set realistic TP/SL - Based on technical analysis, not random numbers
- Monitor spread - Avoid trading when spread is abnormally high
- Enable auto-close for day trading - Enforce discipline
- Keep EA running - Auto-features only work when EA is active
- Use on one chart per symbol - Avoid conflicts
- Don't set TP below current price for BUY - Invalid TP!
- Don't set SL above current price for BUY - Invalid SL!
- Don't use CLOSE ALL carelessly - It's instant and irreversible
- Don't rely 100% on auto-entry - Market conditions change
- Don't run multiple instances - Can cause duplicate trades
- Don't ignore logs - Check Experts tab for errors
A: Only if you enable EnableAutoEntry = true for weekend auto-entry. By default, it only manages existing positions.
A: Yes, but each instance only manages positions for its own symbol.
- EURUSD chart โ Manages EURUSD positions only
- GBPUSD chart โ Manages GBPUSD positions only
A: MT5 will reject the modification. Check the Experts tab for error messages like:
Error modifying TP position #12345: Invalid stops
A: Yes! MT_MANAGER reads all positions, regardless of how they were opened (manual, EA, pending orders).
A: Very lightweight. Updates only on new ticks (milliseconds CPU time).
A: Currently panels are fixed (left and right). You can modify the code if needed.
A: Not yet. Currently manages ALL positions on the symbol. (Planned for v2.0)
A: Not yet. CLOSE ALL closes 100% of all positions. (Planned for v2.0)
A: No, only on Monday 00:00-03:00 (market open detection).
Solution:
- Check if file is in correct folder:
MQL5\Experts\ - Compile the file (F7 in MetaEditor)
- Check for compilation errors
- Refresh Navigator (right-click โ Refresh)
Solution:
- Check if EA is actually running (smiley face in top-right corner)
- Enable "Allow DLL imports" in EA settings
- Enable "Allow live trading" in EA settings
- Check Experts tab for errors
Solution:
- Check if positions exist on the current symbol
- Verify TP/SL prices are valid:
- BUY: TP > current price, SL < current price
- SELL: TP < current price, SL > current price
- Check broker's minimum stop level (some brokers require 10+ pips)
- Look at Experts tab for "Invalid stops" errors
Solution:
- Ensure you're looking at the right symbol
- Currency conversion affects display (if account is EUR but pair is USD-based)
- This is estimated profit, actual may vary due to spread/commission
Solution:
- Check
EnableAutoClose = truein settings - Verify time format is "HH:MM" (e.g., "23:00", not "23:0" or "11 PM")
- EA must be running at that exact time
- Check Experts tab for execution confirmation
Solution:
- Check
EnableAutoEntry = true - Must be Monday 00:00-03:00 hour
- Price must reach
EntryPricelevel - Only executes once per Monday
- Check logs for "Auto Entry executed" message
Solution: This shouldn't happen in latest version. If it does:
- Refresh chart (F5)
- Recompile EA
- Remove and re-attach EA
- Report issue on GitHub
- Unified TP/SL management
- Real-time profit/loss display (USD + Pips)
- Spread monitoring
- Candle countdown
- Market open/close countdown
- Auto-close at time
- Auto-entry after weekend
- Interactive UI
Advanced Position Management:
- Break Even automation (move SL to entry after X pips profit)
- Trailing Stop (auto-adjust SL as price moves in favor)
- Partial Close (close 50% at TP1, rest at TP2)
- Magic Number filtering (manage only specific EA's positions)
Enhanced UI:
- Account info panel (Balance, Equity, Margin, Daily P&L)
- One-click trading buttons (BUY/SELL with preset lot)
- Session time indicator (Asia/London/NY sessions)
- Position duration display
Risk Management:
- Max drawdown protection (auto-close all if DD > X%)
- Daily profit target (stop trading after +X% profit)
- Max spread filter (prevent trading when spread > X pips)
- Lot size calculator (risk % based position sizing)
Notifications:
- Sound alerts (TP hit, SL hit, auto-close executed)
- Visual alerts (popup messages)
- Email notifications (optional)
- Telegram integration (send alerts to phone)
Analytics:
- Daily statistics (trades, win rate, profit)
- CSV export (trade history)
- Correlation monitor (EURUSD vs GBPUSD relationship)
- Multi-symbol management (manage all pairs from one panel)
- Custom templates (save/load settings)
- Hotkey support (keyboard shortcuts)
- Mobile-friendly remote panel
- Strategy presets (scalping, swing, news trading)
Contributions are welcome! Here's how you can help:
- Check existing issues
- Create new issue with:
- MT5 version
- Broker name
- Steps to reproduce
- Expected vs actual behavior
- Screenshots if possible
- Check roadmap first
- Open issue with tag
enhancement - Describe use case and benefit
Note: Source code is not publicly available, but suggestions and bug reports are highly appreciated!
This software is provided as Freeware for personal and commercial use.
Terms:
- โ Free to use for personal and commercial trading
- โ Free to download and install on unlimited MT5 accounts
- โ Not open source - Source code is proprietary
- โ No redistribution - Do not re-upload or sell this EA
- โ No reverse engineering - Do not decompile or modify
- โ No warranty - Use at your own risk
โ ๏ธ Author not liable for any trading losses
Trading Disclaimer: Trading forex carries significant risk. This EA is a tool, not a guarantee of profit. Always use proper risk management and test on demo before live trading.
nwf (Developer)
- GitHub: @nawf-dev
- Repository: MT_MANAGER
- MetaQuotes - For MetaTrader 5 platform
- MQL5 Community - For documentation and support
- Beta Testers - For valuable feedback
โญ If you find this EA useful, please give it a star! โญ
Made with โค๏ธ for the trading community
- ๐ Initial release
- โ Core TP/SL management
- โ Real-time monitoring
- โ Auto-close feature
- โ Auto-entry feature
- โ Full UI implementation
Last Updated: February 7, 2025
Current Version: 1.0.0
Status: Stable โ