Loading…

Trailing Stop

Trailing Stop — a MetaTrader 4 script kept in the Old Kings collection. As the name suggests, the idea behind it is trailing stops. It has 7 settings, for example All Positions (default false), Profit Trailing (default True) and Trailing Stop (default 5). Drop it on a demo chart first to see exactly what it does. Inside: 1 EA file with source code (.mq4) you can open and edit in MetaEditor and a PDF guide. Old Kings are classic community tools shared as-is. Not tested by PolyMaria. Try it on a demo account first. Are you the author of this tool? Message us on Telegram (@abumarket_support) and we will credit you or take it down.

Script · MT4 · v1.0 · Free

About Trailing Stop

Trailing Stop is a script for MetaTrader 4. It has 7 settings, such as All positions, Profit trailing and Trailing stop. MQL source code included.

Files in the download: TrailingStop.mq4, Trailing_Stop_Manual.pdf.

Settings

SettingDefaultWhat it does
All positionsfalse(True To modify all positions ) False(modify chart positions)
Profit trailingTrue(To Trail only postions on profit not loss )
Trailing stop5Minimum is 5
Profit target0Setting this value will calculate all open trades and close if profit reached.
Trailing step1Trailing stop distance or switch
Use soundTrueTurn this alert on or off
Name file soundexpert.wavTurn this alert on or off

How to install

  1. Download the ZIP from your PolyMaria library and unzip it.
  2. In MetaTrader 4 open File → Open Data Folder, then go to MQL4 → Scripts.
  3. Copy the .mq4 file(s) there. Put any .mqh files in MQL4 → Include.
  4. Open the .mq4 file in MetaEditor and press Compile (F7) if MetaTrader does not show it.
  5. Drag the script onto a chart to run it once.

Download the PDF guide

Tags: Trailing Stop & Break-even · MT4 Expert Advisor · MQL4 Source Code

Old Kings — classic MT4 & MT5 collection · PolyMaria