PipsTrailingEA
- Utilità
- Youssef Esseghaiar
- Versione: 1.0
- Attivazioni: 5
📌 Overview
PipsTrailing EA is a lightweight, efficient, and reliable trailing stop manager for MetaTrader 5. It automatically adjusts stop losses on your open positions as the market moves in your favor — locking in profits while giving your trades room to breathe.
No complex settings. No unnecessary features. Just a pure, functional trailing stop that works on any symbol and any timeframe.
🎯 Key Features
| Feature | Description |
|---|---|
| Manual & EA trades | Works with positions opened manually or by other EAs |
| Magic number filter | Target only specific EAs or manage all trades (MagicNumber = 0) |
| Adjustable trailing logic | Three simple parameters for full control |
| Efficient execution | Only modifies SL when price moves enough — reduces broker load |
| No TP modification | Preserves your original take-profit level |
| Works on all symbols | Forex, metals, indices, crypto — any instrument |
⚙️ Input Parameters
| Parameter | Type | Default | Description | |
|---|---|---|---|---|
| TrailStartPips | int | 200 | Minimum profit (in pips) before trailing activates | |
| TrailStepPips | int | 50 | Minimum price movement required before moving SL again | |
| TrailDistance | int | 150 | How close the stop loss trails behind current price (in pips) | |
| MagicNumber | int | 0 | Filter by EA magic number. 0 = manage all positions |
📈 How It Works
-
Wait for profit — EA does nothing until a trade reaches TrailStartPips profit
-
Activate trailing — Once profit threshold is met, EA places a stop loss TrailDistance pips behind price
-
Step protection — Stop loss only moves when price advances by at least TrailStepPips , preventing excessive modifications
-
Never reverses — Stop loss never moves against the trade (only locks in more profit)
🖼️ Example (Buy Trade)
Open Price: 1.10000✅ Advantages
-
🔒 Protects profits without capping upside
-
🧠 Simple logic — no martingale, grid, or risky strategies
-
⚡ Low CPU usage — optimized for multiple charts
-
🛠️ Works alongside other EAs — manage only your trades via MagicNumber
-
📊 Backtestable — fully compatible with MT5 Strategy Tester
⚠️ Requirements
-
MetaTrader 5 build 2000 or higher
-
Any broker (any account type)
-
Any symbol with standard point/pip calculation
🚀 Installation & Usage
-
Copy PipsTrailingEA.ex5 to your MQL5/Experts/ folder
-
Attach to any chart (1 chart is enough — it manages all symbols)
-
Set your preferred parameters
-
Enable Algo Trading button
-
Open trades manually or via other EAs — trailing stop activates automatically
📝 Notes for Customers
-
If MagicNumber = 0 , the EA manages all open positions on the symbol
-
If you use multiple EAs, assign each a unique MagicNumber and set PipsTrailingEA to match
-
The EA does not modify take-profit levels — your original TP stays intact
-
Test on a demo account first to verify settings match your trading style
🧪 Recommended Settings by Strategy
| Strategy | TrailStart | TrailStep | TrailDistance |
|---|---|---|---|
| Scalping (tight) | 30 | 10 | 20 |
| Day trading | 100 | 30 | 50 |
| Swing trading | 200 | 50 | 100 |
| Trend following | 300 | 80 | 150 |
📞 Support
For questions, suggestions, or issues, please contact me via MQL5 private messages.
Happy trading FOLKS! 📊
