HomeSample Page

Sample Page Title


Trailing Cease Loss (TSL) Consumer Information

Desk of Contents

  1. What’s Trailing Cease Loss?
  2. Two TSL Strategies
  3. Enter Configuration Information
  4. How TSL Works — Sign Lifecycle
  5. Activation R:R Parameter — When Does TSL Begin?
  6. Actual-World Examples
  7. Continuously Requested Questions (FAQ)
  8. 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 affairsWith out TSLWith TSL
Worth rises strongly then reverses immediatelyOrder hits previous SL — loses full threatTSL has moved — exits with revenue
Worth touches TP1, then falls under EntryRemaining revenue is given againTSL protects revenue behind TP1
Worth runs far past all preset TPsShould watch and exit manuallyTSL 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.

Donchian TSL locations the trailing line on the precise market excessive or low within the 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:

Methodology 2: ATR TSL

ATR TSL calculates trailing place primarily based on common volatility at activation time.

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:

Fast Comparability of Two Strategies

StandardsDonchian TSLATR TSL
Calculation foundationPrecise Excessive/Low of N candlesCommon volatility (ATR)
Does ATR replace constantly?N/ANo — frozen at activation
Finest forConstruction-based buying and sellingVolatility-based buying and selling
Default?Sure (beneficial)No
Fundamental parameterDonchian 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 IdentifyKindDefaultClarification
Allow Trailing Cease Loss (auto-move SL)ToggleOn (true)Allow or disable whole TSL characteristic
TSL Methodology (Donchian channel or ATR)ChooseDonchianSelect how you can calculate trailing place
├─ Donchian Interval (5-100, 20=customary)Integer20Variety of candles to seek out Excessive/Low for Donchian TSL
├─ ATR Multiplier (x ATR, 2.5=customary)Float2.5Multiplier for ATR in ATR TSL
Begin Trailing at R:R (0=instantly)Float0.0Minimal 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.

IntervalTraitsFinest For
5–10Very tight trailingScalping, fast revenue safety
15–25Balanced (default 20)Most conditions, H1–H4
30–50Wider trailingSwing buying and selling, D1
> 50Very broad trailingLengthy-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

StateWhich meansTransition Situation
INACTIVETSL registered, not but trailingWorth hasn’t touched Entry, or Activation R:R not but reached
TRACKINGActively trailing — TSL strikes with worthWorth touches Entry AND Activation R:R reached (if set > 0)
LOCKEDTSL locked at breakeven (disabled by default)When lockOnTP1 setting is enabled
HITTSL touched — sign endsWorth reverses and hits TSL line
EXPIREDSign expired, TSL eliminatedSign exceeds wait time

Typical Lifecycle (BUY order instance)

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.

Visible Show on Chart

StateTSL Line ColourImage
INACTIVENot displayed
TRACKING (BUY)Orange — staircaseNone
TRACKING (SELL)Yellow — staircaseNone
LOCKEDLime InexperiencedNone
HITX 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.

Instance Walkthrough

State of affairsAdvisable Setting
Commonplace technique, need early safety0.0 (default)
Market tends to pullback after Entry0.5 — 1.0
Need TSL to guard solely actual income1.0
Swing buying and selling, longer-term trades1.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:

BarShut WorthDonchian Low (20 candles)TSL PlaceState
Entry2010.001995.001995.00TRACKING begins
+52018.001997.001997.00Path up +2.00
+102025.00 (TP1 hit)2001.002001.00Path up +4.00
+152031.002006.002006.00Path up +5.00
+182027.002006.002006.00Worth falls — TSL HOLDS
+222038.00 (TP2 hit)2010.002010.00Path up +4.00
+252044.002015.002015.00Path up +5.00
+282016.002015.00Worth drops sharply, hits TSL
HIT2015.00Exit 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

TSL Evolution:

BarShut WorthLowest Worth SeenTSL PlaceState
Entry2050.002050.00INACTIVE (ready for R:R 1.0)
+82037.00 (TP1 hit)2037.002037.00 + 20 = 2057.00TRACKING prompts
+122030.002030.002030.00 + 20 = 2050.00Path down
+162022.002022.002022.00 + 20 = 2042.00Path down
+202028.002022.002042.00Worth recovers — TSL HOLDS
+232043.002022.002042.00Worth continues up, hits TSL
HIT2042.00Exit 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:

Fast Abstract

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.

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles