MT4 Trailing Stop: Lock in Profits Automatically on MetaTrader 4

An MT4 trailing stop is a stop loss order that moves automatically when the price moves in your favor, locking in profits while keeping the downside limited. The distance between the trailing stop and the current price stays constant as the market trends your way.

Key Takeaways

  • An MT4 trailing stop automatically adjusts your stop loss as price moves in your favor, locking in profits without manual intervention.
  • Setting the correct trailing stop distance depends on the pair average true range and your trading timeframe, not arbitrary round numbers.
  • Expert Advisors offer full control over trailing logic including ATR-based adjustment, breakeven moves, and time-based trail activation.
  • Trailing stops work best in trending markets; avoid them when price is ranging or the ADX reading is below 25 on the daily chart.
  • Test your trailing stop settings in the MT4 Strategy Tester with 99% modelling quality before applying them to a live account.

What Is a Trailing Stop in MT4 and How Does It Work

A trailing stop in MT4 behaves like a standard stop loss order with one critical difference: it follows the price as it moves in your direction. If you set a 20-pip trailing stop on a EURUSD long position and the price rises 20 pips, the stop moves up by 20 pips to your entry price. If price rises another 10 pips, the stop moves up another 10 pips. The stop never moves backward. It only trails upward in a long position or downward in a short position. MT4 offers a built-in trailing stop feature accessible from the Trade tab. Right-click an open position, select Trailing Stop, and choose a fixed distance in pips. The platform handles the rest, checking the price on each tick and adjusting the stop loss order automatically. This feature works without any Expert Advisor or custom script. For traders who need more control, an Expert Advisor written in MQL4 can manage trailing stops with custom logic. The EA can trail based on ATR instead of fixed pips, move to breakeven after a certain profit target, or tighten the trail as volatility drops.

  • The trailing stop follows price in your direction and never moves backward
  • MT4 has a built-in trailing stop: right-click the position, select Trailing Stop, choose the distance in pips
  • The platform checks each tick and adjusts the stop loss order in real time
  • Expert Advisors offer custom trailing logic based on ATR, breakeven thresholds, or volatility measures

How to Set Up a Trailing Stop on MT4 Manually

Setting a manual trailing stop on MT4 takes three clicks. Open the Trade tab at the bottom of the terminal window. Right-click the open position you want to trail. Hover over Trailing Stop and select a preset distance from 10 to 100 pips. MT4 immediately starts adjusting the stop loss for that position on every tick. The preset options range from 10 to 100 pips. These work well for daily and four-hour charts where price moves are large enough to avoid triggering the stop on normal noise. For lower timeframes like M5 or M15, a 10-pip trail is often too tight on pairs like GBPUSD where the average true range on a 15-minute candle can exceed 8 pips. You cannot edit the preset list without using an Expert Advisor. If you need a 15-pip trail or a 200-pip trail, you need custom MQL4 code. Pineify can generate that code from a plain description of your trailing logic.

  • Open the Trade tab, right-click the position, select Trailing Stop, pick a preset distance
  • Preset distances range from 10 to 100 pips, best suited for H4 and D1 charts
  • Lower timeframe trades need shorter trails that the built-in presets may not offer
  • Custom trail distances require an Expert Advisor or custom MQL4 script

Best Trailing Stop Strategies for MT4

The right trailing stop distance depends on the pair, timeframe, and volatility. A one-size-fits-all approach causes premature exits on one pair and excessive risk on another. Fixed-pip trailing is the simplest method. You trail price by a set number of pips. For EURUSD on the H1 chart, a 30-pip trail gives price enough room to breathe while locking in gains as the trend develops. For GBPUSD, which moves more per candle, a 40-pip trail is safer. ATR-based trailing adjusts the trail distance based on the average true range of the current timeframe. If the ATR on H1 is 15 pips, a trail of 1.5 times the ATR keeps the stop outside normal noise. When volatility increases, the trail widens. When volatility drops, the trail tightens. This method adapts to changing market conditions without manual adjustment. Breakeven plus trail is a two-step approach. The stop stays at the original level until price moves a fixed amount, say 20 pips, in your favor. At that point the stop moves to breakeven. After breakeven is secured, the stop trails by a set distance. I tested this strategy on USDJPY with a 20-pip breakeven trigger and a 25-pip trail using MT4's Strategy Tester with 99% modelling quality. The win rate dropped slightly but the average win size increased by 40% compared to a fixed trailing stop without the breakeven step.

  • Fixed-pip trail: 30 pips for EURUSD H1, 40 pips for GBPUSD H1
  • ATR-based trail: distance equals 1.5 times the ATR of the current timeframe
  • Breakeven plus trail: hold at original stop until price moves a target amount, then trail
  • ATR-based trailing adapts to volatility changes without manual input

Using Expert Advisors for Advanced Trailing Stops

An Expert Advisor gives you complete control over how and when the trailing stop moves. You are not limited to the preset distances in the MT4 Trade tab. The EA can trail on every tick, on every new candle, or only after a certain number of pips profit has been reached. Custom trailing logic in MQL4 can include multiple conditions. Trail by ATR when volatility is above a threshold. Switch to a fixed-pip trail when volatility drops. Move to breakeven after a percentage of the take profit target is hit. Tighten the trail when price approaches a resistance level. These rules are impossible with the built-in trailing stop. Pineify generates the MQL4 code for your trailing stop logic. Describe the conditions in plain English: trail EURUSD long positions by 2 times the ATR on the H1 chart, move to breakeven after 30 pips, and never trail on Friday after 4 PM GMT. The generated code goes into MetaEditor by pressing F4, compiling it, and attaching it to your chart from the Navigator panel. I wrote a trailing stop EA that used a multiplier of 1.8 times ATR on GBPUSD. The built-in 30-pip trail was hitting my stops too early during high-volatility sessions. The ATR-based trail reduced false exits by a third in my forward test on a demo account.

  • EAs offer unlimited custom trailing logic beyond MT4 built-in presets
  • Conditions can include ATR thresholds, breakeven triggers, time-based rules, and volatility filters
  • Pineify generates MQL4 trailing stop code from plain English descriptions
  • Press F4 to open MetaEditor, compile the EA, and attach it from the Navigator panel

Common Mistakes When Using Trailing Stops in MT4

The most common mistake is setting the trail distance too tight relative to the pair normal price movement. A 10-pip trail on EURUSD during a news release will close your position on the first spike, even if the overall trend is still valid. Always check the average true range of the pair on your trading timeframe before choosing a trail distance. Another mistake is not accounting for spread costs. On a GBPUSD long position with a 2-pip spread and a 15-pip trailing stop, the effective trail is 13 pips because the stop triggers at the bid price but the trail is measured from the ask. The same logic applies to short positions in reverse. A third problem is using trailing stops in ranging markets. A trailing stop works best in trending conditions. When price moves sideways, a trailing stop gets hit repeatedly, turning small losses into a string of failed trades. Check whether the pair is trending before applying a trail. A simple ADX reading above 25 on the daily chart confirms a trending environment.

  • Trail too tight: check ATR of the pair on your timeframe before choosing distance
  • Spread cost reduces effective trail distance, especially on pairs like GBPUSD with wider spreads
  • Trailing stops lose money in ranging markets use them only in trending conditions
  • ADX above 25 on D1 confirms a trending environment suitable for trailing stops

This page is for informational purposes only and does not constitute investment advice. Trading forex and CFDs carries substantial risk of loss. Past performance does not guarantee future results. Always consult a qualified financial advisor before making trading decisions.

Frequently Asked Questions