Universal Manual SL/TP Manager v3
Drag one Stop Loss line and one Take Profit line directly on your MT5 chart. Manage single trades or complete multi-entry baskets with automatic lot-weighted profit locking.
What Is This EA?
Universal Manual SL/TP Manager v3 is an MT5 Expert Advisor designed to simplify position protection. Its red and green chart lines control the Stop Loss and Take Profit levels of all managed positions on the current chart symbol.
For multiple entries with different lot sizes, the EA calculates a lot-weighted average entry price. This makes the automatic profit-lock level more representative of the entire basket.
Key Features
Installation
- Open MetaTrader 5 and select File → Open Data Folder.
- Open the MQL5 → Experts folder.
- Copy
Universal_Manual_SLTP_Manager_v3.ex5into the Experts folder. - Return to MT5, right-click Expert Advisors in Navigator, and select Refresh.
- Open the symbol chart you want to manage and attach the EA.
- Enable Allow Algo Trading and the main MT5 Algo Trading button.
Using the Draggable Lines
Red Line — Stop Loss
Click, hold, and drag the red line to the desired shared Stop Loss price.
Green Line — Take Profit
Click, hold, and drag the green line to the desired shared Take Profit price.
When a line is released, the EA immediately attempts to apply the selected level to every managed position on the chart symbol.
- APPLY NOW: reapplies the current line prices.
- AUTO ON/OFF: enables or pauses continuous synchronization.
- RESET LINES: restores the initial SL and TP distances.
- – button: hides the dashboard.
- SLTP button: restores the hidden dashboard.
Automatic Basket Profit Lock
Profit locking is enabled by default. When the basket moves at least 400 points into profit, the EA protects at least 120 points from the basket's weighted average entry.
Once activated, the automatic lock remains active even if price retreats below the original +400-point trigger area. A stronger manual SL remains in control, so the automatic lock does not intentionally weaken better protection.
Manual Profit Lock
The red SL line can also be moved manually into profitable territory. If the line passes the basket's weighted average entry and remains valid for the trade direction, it acts as a manual profit lock.
Weighted BUY basket entry: 1.10000
Manual SL line: 1.10150
The EA attempts to assign 1.10150 to all managed BUY positions. If automatic lock protects +120 points but the manual line protects +200 points, the more protective level is used.
How Multi-Entry Baskets Are Calculated
BUY 0.10 lot at 1.10000
BUY 0.20 lot at 1.10300
[(1.10000 × 0.10) + (1.10300 × 0.20)] ÷ 0.30 = 1.10200
The larger position receives the correct weighting. BUY and SELL baskets are calculated separately.
Dashboard Status
Important Input Settings
| Input | Purpose | Default |
|---|---|---|
ManageAllPositionsOnChartSymbol | Manage every position on the current chart symbol. | true |
MagicNumber | Filter positions when all-symbol management is disabled. | 20260722 |
AutoSyncNewPositions | Automatically include newly opened positions. | true |
InitialSLPoints | Initial distance of the red SL line. | 500 |
InitialTPPoints | Initial distance of the green TP line. | 500 |
RespectBrokerStopLevel | Respect broker stop and freeze restrictions. | true |
ExtraStopBufferPoints | Add distance beyond the broker minimum. | 3 |
EnableBasketLockProfit | Enable automatic single/basket profit locking. | true |
LockTriggerPoints | Profit movement required to activate lock. | 400 |
MinimumLockedProfitPoints | Minimum protected basket profit. | 120 |
Troubleshooting
The lines cannot be dragged
SL or TP is not applied
BUY and SELL are open together
The USD floating value is slightly different
⚠ Risk Warning
This EA is a position-management tool and does not guarantee profits. A price-based lock cannot guarantee that the final net result will always be positive. Commissions, swaps, spread expansion, gaps, slippage, requotes, connectivity, and broker execution rules may affect the actual result. Always test the EA on a demo account before live use.




%20Auto%20Run%20When%20Windows%20Starts%20NOLIMITALGO%20BLOG.png)











