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
| Setting | Default | What it does |
|---|---|---|
| All positions | false | (True To modify all positions ) False(modify chart positions) |
| Profit trailing | True | (To Trail only postions on profit not loss ) |
| Trailing stop | 5 | Minimum is 5 |
| Profit target | 0 | Setting this value will calculate all open trades and close if profit reached. |
| Trailing step | 1 | Trailing stop distance or switch |
| Use sound | True | Turn this alert on or off |
| Name file sound | expert.wav | Turn this alert on or off |
How to install
- Download the ZIP from your PolyMaria library and unzip it.
- In MetaTrader 4 open File → Open Data Folder, then go to MQL4 → Scripts.
- Copy the .mq4 file(s) there. Put any .mqh files in MQL4 → Include.
- Open the .mq4 file in MetaEditor and press Compile (F7) if MetaTrader does not show it.
- Drag the script onto a chart to run it once.
Tags: Trailing Stop & Break-even · MT4 Expert Advisor · MQL4 Source Code