Trailing Cease Loss (TSL) Consumer Information
Desk of Contents
- What’s Trailing Cease Loss?
- Two TSL Strategies
- Enter Configuration Information
- How TSL Works — Sign Lifecycle
- Activation R:R Parameter — When Does TSL Begin?
- Actual-World Examples
- Continuously Requested Questions (FAQ)
- Utilization Ideas
1. What’s Trailing Cease Loss?
Common Cease Loss (SL) stays mounted in a single place. You set SL at 1990.00, and it stays there ceaselessly — even when worth has risen to 2030.00.
Trailing Cease Loss (TSL) is totally different. It routinely strikes in your favor when worth advances. As worth strikes up, TSL strikes up with it. When worth stalls or reverses, TSL holds the perfect place it reached.
End result: you shield your income with no need to observe the chart.
Simple to Perceive Analogy
Consider TSL as a good friend strolling behind you at a set distance. As you progress ahead, they transfer ahead too — however they by no means step backward. When you immediately flip and run backward, they stand nonetheless and block you.
What Drawback Does TSL Resolve?
| State of affairs | With out TSL | With TSL |
|---|---|---|
| Worth rises strongly then reverses immediately | Order hits previous SL — loses full threat | TSL has moved — exits with revenue |
| Worth touches TP1, then falls under Entry | Remaining revenue is given again | TSL protects revenue behind TP1 |
| Worth runs far past all preset TPs | Should watch and exit manually | TSL auto-trails and exits on reversal |
2. Two TSL Strategies
The system supplies two methods to calculate TSL place. Each comply with the advance-only, never-retreat rule — however they calculate in a different way.
Methodology 1: Donchian TSL (Default — Advisable)
Donchian TSL locations the trailing line on the precise market excessive or low within the final N candles.
- BUY order: TSL = Lowest Low in final N candles
- SELL order: TSL = Highest Excessive in final N candles
When worth rises (BUY order), the bottom low of the final N candles additionally step by step will increase — as a result of previous candles (with decrease lows) drop out of the N-candle window. TSL routinely ratchets up step-by-step.
Benefits of Donchian TSL:
- TSL sits at precise market help/resistance, not arbitrary numbers
- Much less more likely to be triggered by short-term worth spikes with no technical significance
- Good for structure-based buying and selling
Methodology 2: ATR TSL
ATR TSL calculates trailing place primarily based on common volatility at activation time.
- BUY order: TSL = Highest worth reached – (ATR × Multiplier)
- SELL order: TSL = Lowest worth reached + (ATR × Multiplier)
Key level: ATR is captured (frozen) at TSL activation time and doesn’t change afterward, even when market volatility will increase or decreases. This ensures constant and predictable trailing distance.
Benefits of ATR TSL:
- Trailing distance is mounted and constant all through the commerce
- Simple to foretell actual TSL stage at any worth
- Appropriate whenever you need threat management primarily based on market volatility
Fast Comparability of Two Strategies
| Standards | Donchian TSL | ATR TSL |
|---|---|---|
| Calculation foundation | Precise Excessive/Low of N candles | Common volatility (ATR) |
| Does ATR replace constantly? | N/A | No — frozen at activation |
| Finest for | Construction-based buying and selling | Volatility-based buying and selling |
| Default? | Sure (beneficial) | No |
| Fundamental parameter | Donchian Interval (default 20) | ATR Multiplier (default 2.5) |
3. Enter Configuration Information
All TSL parameters are within the “=== TRAILING STOP LOSS ===” group within the indicator’s Properties panel.
Learn how to open: Double-click the indicator on chart (or press F7) → “Inputs” tab → Scroll down to seek out TRAILING STOP LOSS group.
Full Parameters Desk
| MT5 Show Identify | Kind | Default | Clarification |
|---|---|---|---|
| Allow Trailing Cease Loss (auto-move SL) | Toggle | On (true) | Allow or disable whole TSL characteristic |
| TSL Methodology (Donchian channel or ATR) | Choose | Donchian | Select how you can calculate trailing place |
| ├─ Donchian Interval (5-100, 20=customary) | Integer | 20 | Variety of candles to seek out Excessive/Low for Donchian TSL |
| ├─ ATR Multiplier (x ATR, 2.5=customary) | Float | 2.5 | Multiplier for ATR in ATR TSL |
| Begin Trailing at R:R (0=instantly) | Float | 0.0 | Minimal R:R to succeed in earlier than TSL begins trailing |
Observe: Parameters with ├─ solely take impact when the corresponding TSL technique is chosen. If utilizing Donchian TSL, ATR Multiplier is ignored and vice versa.
Parameter-by-Parameter Information
Allow Trailing Cease Loss Disable this if you wish to handle SL utterly manually. When disabled, static SL strains nonetheless show however do not transfer.
TSL Methodology Select Donchian should you commerce by market construction (swings, BOS, zones). Select ATR if you need even, predictable trailing distance.
Donchian Interval (5–100) Variety of candles to scan for lowest low (BUY) or highest excessive (SELL). Smaller Interval → TSL nearer to cost, tighter trailing, simpler to set off early. Bigger Interval → TSL farther away, extra room for the order to breathe.
| Interval | Traits | Finest For |
|---|---|---|
| 5–10 | Very tight trailing | Scalping, fast revenue safety |
| 15–25 | Balanced (default 20) | Most conditions, H1–H4 |
| 30–50 | Wider trailing | Swing buying and selling, D1 |
| > 50 | Very broad trailing | Lengthy-term place buying and selling |
ATR Multiplier (when utilizing ATR TSL) Multiplier to use to ATR to find out trailing distance. Default 2.5 — barely wider than preliminary ATR SL (sometimes 2.0), to keep away from trailing too tightly and exiting prematurely.
Begin Trailing at R:R See detailed rationalization in Part 5.
4. How TSL Works — Sign Lifecycle
TSL doesn’t activate instantly when a sign seems. It goes by way of 5 states over the sign’s lifecycle.
5 TSL States
[INACTIVE] –> [TRACKING] –> [HIT]
|
[LOCKED]
|
[EXPIRED]
| State | Which means | Transition Situation |
|---|---|---|
| INACTIVE | TSL registered, not but trailing | Worth hasn’t touched Entry, or Activation R:R not but reached |
| TRACKING | Actively trailing — TSL strikes with worth | Worth touches Entry AND Activation R:R reached (if set > 0) |
| LOCKED | TSL locked at breakeven (disabled by default) | When lockOnTP1 setting is enabled |
| HIT | TSL touched — sign ends | Worth reverses and hits TSL line |
| EXPIRED | Sign expired, TSL eliminated | Sign exceeds wait time |
Typical Lifecycle (BUY order instance)
Sign candle seems
|
v
[INACTIVE] — TSL registered, static SL displaying
|
| Worth touches Entry
v
[TRACKING] — TSL begins transferring up
|
| Worth continues rising → TSL ratchets step-by-step
| TSL: 1990 → 1998 → 2005 → 2012 → 2020
|
| Worth reverses, falls and hits TSL line (2020)
v
[HIT] — Exit order at 2020 with revenueRatchet Rule — Advance Solely, By no means Retreat
That is TSL’s core rule. Irrespective of how a lot worth oscillates backwards and forwards in between, TSL by no means retreats towards threat. It solely strikes when doing so improves your place.
BUY — TSL solely ratchets UP:
Bar 1: TSL = 1990 ← preliminary set
Bar 5: TSL = 1995 ← improve as a result of worth rose
Bar 8: TSL = 1995 ← worth fell barely, TSL DOES NOT lower
Bar 12: TSL = 2002 ← worth rose once more, TSL will increase
SELL — TSL solely ratchets DOWN:
Similar logic however in wrong way.
Visible Show on Chart
| State | TSL Line Colour | Image |
|---|---|---|
| INACTIVE | Not displayed | — |
| TRACKING (BUY) | Orange — staircase | None |
| TRACKING (SELL) | Yellow — staircase | None |
| LOCKED | Lime Inexperienced | None |
| HIT | — | X mark at hit level |
Orange symbolizes motion and power. Lime inexperienced when LOCKED alerts security — revenue protected.
5. Activation R:R Parameter — When Does TSL Begin?
Drawback When TSL Begins Instantly
If TSL begins trailing proper whenever you enter (Activation R:R = 0), within the early stage of the commerce when worth has simply touched Entry and continues to be oscillating, TSL could be triggered by regular pullbacks — even when the sign continues to be legitimate.
How Activation R:R Works
The “Begin Trailing at R:R” parameter (default 0.0) lets you delay TSL till the commerce has reached a sure revenue stage.
Activation R:R = 0.0 (default)
→ TSL begins IMMEDIATELY when worth touches Entry
→ Finest whenever you need most safety from the beginning
Activation R:R = 1.0
→ TSL solely begins when worth reaches R:R 1:1 (revenue equals threat)
→ Avoids being triggered by early pullbacks
Activation R:R = 0.5
→ TSL begins when worth reaches half of threat quantity
→ Balances early safety with avoiding untimely set off
Instance Walkthrough
BUY XAUUSD order:
Entry: 2010.00
SL: 1995.00
Danger (R) = 15.00 USD
Activation R:R = 1.0 → TSL prompts when worth reaches:
2010.00 + 15.00 × 1.0 = 2025.00
Earlier than worth reaches 2025.00:
→ TSL is in INACTIVE state, doesn’t transfer
→ SL stays at 1995.00
When worth touches 2025.00:
→ TSL switches to TRACKING
→ Begins trailing from present Donchian/ATR placeWhen Ought to You Use Activation R:R > 0?
| State of affairs | Advisable Setting |
|---|---|
| Commonplace technique, need early safety | 0.0 (default) |
| Market tends to pullback after Entry | 0.5 — 1.0 |
| Need TSL to guard solely actual income | 1.0 |
| Swing buying and selling, longer-term trades | 1.0 — 2.0 |
6. Actual-World Examples
Instance 1: BUY Order with Donchian TSL
Situation: BUY sign seems on XAUUSD H1. TSL Methodology = Donchian, Interval = 20, Activation R:R = 0.0.
Preliminary Parameters:
Entry: 2010.00
SL: 1995.00
Danger (R) = 15.00 USD
TP1: 2025.00 (R:R 1.0)
TP2: 2040.00 (R:R 2.0)TSL Evolution by Part:
| Bar | Shut Worth | Donchian Low (20 candles) | TSL Place | State |
|---|---|---|---|---|
| Entry | 2010.00 | 1995.00 | 1995.00 | TRACKING begins |
| +5 | 2018.00 | 1997.00 | 1997.00 | Path up +2.00 |
| +10 | 2025.00 (TP1 hit) | 2001.00 | 2001.00 | Path up +4.00 |
| +15 | 2031.00 | 2006.00 | 2006.00 | Path up +5.00 |
| +18 | 2027.00 | 2006.00 | 2006.00 | Worth falls — TSL HOLDS |
| +22 | 2038.00 (TP2 hit) | 2010.00 | 2010.00 | Path up +4.00 |
| +25 | 2044.00 | 2015.00 | 2015.00 | Path up +5.00 |
| +28 | 2016.00 | — | 2015.00 | Worth drops sharply, hits TSL |
| HIT | 2015.00 | — | — | Exit at +5.00 USD revenue |
End result: Order exits at 2015.00 — revenue 5.00 USD/oz although worth did not attain TP3/TP4. With out TSL, the static SL at 1995.00 would have been hit when worth fell to 2016 (loss 5.00 USD/oz). TSL turned a shedding commerce right into a successful one.
Instance 2: SELL Order with ATR TSL
Situation: SELL sign on XAUUSD H1. TSL Methodology = ATR, ATR Multiplier = 2.5, ATR at activation time = 8.00 USD. Activation R:R = 1.0.
Preliminary Parameters:
Entry: 2050.00
SL: 2063.00
Danger (R) = 13.00 USD
TP1: 2037.00 (R:R 1.0)
Activation stage = 2050.00 – 13.00 × 1.0 = 2037.00
ATR Trailing distance = 8.00 × 2.5 = 20.00 USD (frozen right here)
TSL Evolution:
| Bar | Shut Worth | Lowest Worth Seen | TSL Place | State |
|---|---|---|---|---|
| Entry | 2050.00 | 2050.00 | — | INACTIVE (ready for R:R 1.0) |
| +8 | 2037.00 (TP1 hit) | 2037.00 | 2037.00 + 20 = 2057.00 | TRACKING prompts |
| +12 | 2030.00 | 2030.00 | 2030.00 + 20 = 2050.00 | Path down |
| +16 | 2022.00 | 2022.00 | 2022.00 + 20 = 2042.00 | Path down |
| +20 | 2028.00 | 2022.00 | 2042.00 | Worth recovers — TSL HOLDS |
| +23 | 2043.00 | 2022.00 | 2042.00 | Worth continues up, hits TSL |
| HIT | 2042.00 | — | — | Exit at -8.00 USD revenue |
End result: SELL order exits at 2042.00 — revenue 8.00 USD/oz (from Entry 2050.00). ATR trailing distance stayed mounted at 20 pips all through the commerce due to the freeze mechanism at activation.
7. Continuously Requested Questions (FAQ)
Q1: Does TSL utterly change the preliminary SL?
No. TSL dietary supplements the preliminary SL, it doesn’t change it. When a brand new sign seems, the static SL is ready instantly to guard in case worth by no means touches Entry. When worth enters the commerce and TSL begins trailing, TSL step by step takes over the safety position. If TSL hasn’t moved far sufficient to be higher than static SL, the static SL stays the first safety.
Q2: Does TSL routinely place an actual order on MT5?
No. That is an indicator (not an EA/robotic). The TSL line on the chart is a visible information to your reference — you set the SL manually in accordance with it. The system tracks and calculates, however doesn’t place orders routinely. To automate, you would wish a separate EA integration.
Q3: Does TSL proceed trailing in any case TPs are hit?
Sure. TSL continues trailing even after TP1/TP2/TP3/TP4 are all hit. That is the mechanism to catch trades that run additional than anticipated. TSL solely stops when hit (HIT state) or sign expires (EXPIRED state).
This fall: Is the TSL Donchian Interval the identical because the preliminary SL Donchian Interval?
No. TSL makes use of an unbiased Donchian calculation, utterly separate from the preliminary SL. You should utilize Interval 20 for preliminary SL and Interval 10 for TSL — or vice versa. These two parameters do not have an effect on one another.
Q5: Why does the TSL line generally soar a big step unexpectedly?
With Donchian TSL, when an previous candle with very low low (outlier) drops out of the N-candle window, Donchian Low jumps up. That is regular and proper habits — TSL displays the precise construction inside the present N-candle window. If the soar feels too giant, attempt rising Interval or swap to ATR TSL.
Q6: How does TSL LOCKED state work?
LOCKED state happens when TSL is locked at breakeven. This characteristic is disabled by default. When enabled (lockOnTP1), after TP1 is hit, TSL routinely locks at Entry — making certain the commerce can not lose. The TSL line turns lime inexperienced to sign security state.
Q7: What occurs if I disable TSL mid-trade?
When you disable “Allow Trailing Cease Loss” whereas a sign is TRACKING, TSL stops transferring instantly. The TSL line disappears from the chart. The preliminary static SL is just not routinely restored. Advice: do not disable TSL whereas a commerce is operating.
8. Utilization Ideas
Tip 1: Begin with Donchian Interval 20 and Do not Change Too Rapidly
The default settings (Donchian Interval 20, Activation R:R 0.0) are designed to work nicely on H1–H4. Observe precise habits for a minimum of 2–3 weeks earlier than adjusting. Altering too rapidly primarily based on just a few trades would not present dependable statistics.
Tip 2: Use Activation R:R = 1.0 on Pullback-Inclined Markets
XAUUSD usually has robust pullbacks proper after Entry. When you see TSL triggered shortly after Entry regardless of legitimate alerts, attempt setting Activation R:R = 1.0. TSL will keep put till the commerce is 1R in revenue, then begin defending.
Tip 3: Use ATR TSL Throughout Excessive Volatility Classes
London session (14:00–17:00 VN) and New York session (20:00–23:00 VN) usually have brief spikes unrelated to construction. Donchian TSL could be triggered by such spikes. Throughout these periods, ATR TSL with Multiplier 2.5–3.0 supplies extra even trailing, much less false triggers.
Tip 4: Examine TSL Statistics on Dashboard Frequently
The dashboard shows Wins/Losses/Web Pips particularly for TSL. If TSL Losses > Wins, take into account rising Donchian Interval (TSL is simply too tight) or rising Activation R:R (TSL triggers too early). If Web Pips is adverse regardless of Wins > Losses, TSL is exiting too early — attempt rising Interval to provide the commerce extra room.
Tip 5: Mix TSL with Partial Closing Technique
TSL works greatest mixed with a partial closing technique:
TP1 hit: Manually shut 25% place → scale back threat
TP2 hit: Shut one other 25% → revenue secured
TP3+: Let TSL handle the rest — catch greater strikes
→ End result: by no means lose all income
whereas capturing prolonged tendencies
Fast Abstract
=== TRAILING STOP LOSS — QUICK REFERENCE ===
Allow/Disable: Allow Trailing Cease Loss = true/false
Methodology:
Donchian TSL → TSL at precise Excessive/Low (structure-based, default)
ATR TSL → TSL by mounted volatility (ATR frozen at activation)
Activation:
Activation R:R = 0.0 → Begin trailing instantly on Entry
Activation R:R = 1.0 → Wait till commerce is 1R revenue, then path
Core Rule:
TSL solely advances towards revenue — NEVER retreats
Line Colours:
BUY → Orange
SELL → Yellow
LOCKED → Lime Inexperienced
States: INACTIVE → TRACKING → HIT (or EXPIRED)
This documentation applies to model 1.15. Final up to date: 2026-02-17. Writer: Ich Khiem Nguyen — https://www.mql5.com/en/customers/khiemni/vendor All rights reserved.