TP Lock
- Utilities
- Version: 1.0
- Activations: 10
✅ Overview
TP Lock is a high-speed, lightweight MT5 Expert Advisor designed to automatically lock in profits and trail stop losses as trades move in your favor. Built for traders who want hands-free profit protection, TP Lock makes sure every pip you earn is defended with precision.
Once your trades reach a certain profit threshold, TP Lock:
-
Secures your position by moving the Stop Loss to breakeven (with optional profit buffer)
-
Applies a dynamic trailing stop to follow price as it continues in your favor
-
Reacts quickly using a millisecond timer for efficient, real-time position management
⭐ Key Features
🔐 Automatic Breakeven with Profit Buffer
-
Moves the Stop Loss to breakeven after a defined number of pips ( InitialBreakEvenPips )
-
Adds a small buffer ( LockProfitPips ) to ensure the SL locks in profit, not just breaks even
-
Example: A trade hits +5 pips, and SL is moved to +2 pips
📈 Trailing Stop with Optional Aggressive Mode
-
Once price surpasses the buffer, a trailing stop is activated
-
Choose between:
-
Standard trailing (wider step)
-
Aggressive trailing (closer SL for faster locking)
-
-
Automatically follows price as it rises or falls, locking in more gains without manual adjustments
⚙️ Fully Customizable Inputs
| Input Parameter | Description |
|---|---|
| InitialBreakEvenPips | Pips before SL moves to breakeven |
| LockProfitPips | Pips of profit to lock when breakeven triggers |
| TrailStepPips | Step distance for trailing SL |
| UseAggressiveTrailing | Enable tighter trailing when active |
| MaxSlippage | Max slippage allowed when modifying trades |
| TimerInterval (ms) | Update frequency — default is ultra-fast (100ms) |
