Skip to main content
Cart Log in Sign up
Trade assistant

Trailing Stop on Profit: trail only after profit

An expert advisor that trails the stop-loss of your trades behind price, but only after a trade has reached the profit you set.

Platform

License

Price

≈

Version

You own this product. Go to My products
Get the demo

  • Automatic, instant delivery once payment confirms
  • Free updates for every future version
  • 12 months of technical support
  • Refunds under a transparent policy
  • Pay with USDT, BTC, ETH and more
  • Free: no payment, download it right now

Risk warning: Trading financial markets carries a risk of losing capital, and past performance does not guarantee future results. Terms & conditions

Product type
Trade assistant
Platforms
MT4 · MT5 · cT
Market / symbol
Gold, FX majors, FX minors, Indices, Crypto, Oil
Experience level
Beginner
Delivery
File download from your dashboard
Last update
November 30, 2026
Broker
Any broker

Overview

An ordinary trailing stop starts moving the stop from the first tick and often closes the trade too early. This tool waits until the trade is, say, 100 points in profit, and only then trails the stop at a fixed distance behind price.

It opens no trades and closes none. It only moves the stop-loss of trades that you or another robot opened. A small button on the chart switches trailing on and off.

  • Trailing starts only after a set profit is reached
  • Fixed stop distance from price
  • Filters by symbol, direction, magic number and comment
  • Option to remove the take-profit when trailing starts, so the trade exits on the trail
  • Notification on every stop move
  • Chart lines for the activation price and the next stop level

It suits traders who enter manually and want exits handled by one simple rule. This is a trade-management tool and promises no profit; the right numbers depend on the symbol and your style, so try it on a demo account first.

Source and licence

This tool is the open-source project Trailing Stop on Profit by EarnForex.com, released under the Apache 2.0 licence. The source code is included in the download unchanged, with the licence text next to it. TradeKit provides the description, install guide and support. Original repository: github.com/EarnForex/Trailing-Stop-on-Profit

Strategy logic

The trailing rule

  • For a buy: once Bid is Profit above the open price, the new stop is Bid minus TrailingStop.
  • For a sell: once Ask is Profit below the open price, the new stop is Ask plus TrailingStop.
  • The stop only moves in the direction of profit and never steps back.
  • With the defaults (50 and 100), the first stop placed is 50 points beyond the entry price.

Filters

  • By default only trades in the chart’s symbol are handled. Turn OnlyCurrentSymbol off to cover every symbol on the account.
  • The comment filter matches “contains”, not an exact match.

Differences between versions

  • On MT4 and MT5 the values are in points. The cTrader version treats the same numbers as pips, so the default of 50 is a much wider distance there.
  • cTrader filters by label instead of magic number, and needs the address typed into the Email Address parameter for emails.
  • Mobile and email notifications default to on in MT5 and off in MT4 (both only work when EnableNotify is on).

Specifications

Requirements

  • MetaTrader 4, MetaTrader 5 or cTrader desktop
  • Algo Trading enabled
  • The terminal must stay open; trailing stops when it closes
  • No DLL or internet access needed
Platforms
MT4MT5cT
Delivery
Use case
Scalping، Swing، Trend following
Market
Gold، FX majors، FX minors، Indices، Crypto، Oil
Experience level
Beginner

Compatible brokers

Which brokers this product works with, and which it works best with.

Works with every broker

No broker restriction: it works with any broker that offers the product's platform.

The broker choice is yours; TradeKit is not a broker. Check account terms before depositing. All brokers

Input parameters

Input parameters
ParameterDefaultDescription
TrailingStopDistance of the stop from price, in points (pips on cTrader) 50 Distance of the stop from price, in points (pips on cTrader)
ProfitProfit the trade must reach before trailing starts, in points (pips on cTrader) 100 Profit the trade must reach before trailing starts, in points (pips on cTrader)
DisableTPonTSLRemove the take-profit when trailing kicks in false Remove the take-profit when trailing kicks in
OnlyCurrentSymbolWork only on trades in this chart’s symbol true Work only on trades in this chart’s symbol
OnlyTypeAll trades, buys only or sells only All All trades, buys only or sells only
UseMagicFilter by magic number (on cTrader: filter by label) false Filter by magic number (on cTrader: filter by label)
MagicNumberMagic number, if the filter above is on 0 Magic number, if the filter above is on
UseCommentOnly trades whose comment contains the CommentFilter text false Only trades whose comment contains the CommentFilter text
EnableTrailingParamStart with trailing enabled; otherwise you must click the chart button false Start with trailing enabled; otherwise you must click the chart button
EnableNotifySend a notification each time the stop is moved false Send a notification each time the stop is moved
ShowPotentialSLLinesDraw a line showing where the stop would be placed false Draw a line showing where the stop would be placed
ShowActivationLinesDraw the price line where trailing will start false Draw the price line where trailing will start

Install guide

MetaTrader 4 and 5

  1. Unzip the download. It contains an MQL4 or MQL5 folder.
  2. In MetaTrader choose File › Open Data Folder.
  3. Copy the folder’s contents into the folder of the same name there.
  4. Restart the terminal, or right-click in Navigator and choose Refresh. The source compiles on its own.
  5. Drag Trailing Stop on Profit from Expert Advisors onto a chart.
  6. Enable Algo Trading (AutoTrading on MT4).
  7. Click the button on the small chart panel to enable trailing. It is off by default.

cTrader

  1. The zip holds a single .cs file.
  2. Open Algo in cTrader and create a new cBot.
  3. Replace the default code with the file’s content and click Build.
  4. Add the cBot to a chart and start it.

Changelog

  1. v1.04 MT4 New November 30, 2026
    • Published on TradeKit
  2. v1.04 MT5 November 30, 2026
    • Published on TradeKit
  3. v1.04 cT November 30, 2026
    • Published on TradeKit

Buyer reviews

No reviews yet.

Only verified buyers can review. Reviews are moderated before publishing.

Only verified buyers can review. Reviews are moderated before publishing.

Sign in to write a review

FAQ

I attached it but the stop does not move. Why?
Check three things: Algo Trading is on, the button on the chart panel is enabled (it is off by default), and the trade really is <code>Profit</code> in profit. If the trade is on another symbol, turn <code>OnlyCurrentSymbol</code> off.
What happens if I close the terminal?
Trailing stops, but the last stop-loss that was set stays with the broker.
How do I choose the point values?
A point is the symbol’s smallest price step. On a five-digit currency pair 10 points make one pip. The right value depends on the symbol’s volatility, and the defaults will not suit every symbol. If the distance is below your broker’s minimum, the stop change is rejected.
Does it cover a trade that has no stop-loss?
Yes. Once the trade reaches the set profit, it places a stop. Until then the trade has no stop and the tool does not protect it.

Related products

More Trade assistants and tools from the same family

Compare Compare now