EMA Trailing Stop 2
EMA Trailing Stop 2 — a MetaTrader 4 script kept in the Old Kings collection. Judging by its name, it is built around moving averages and trailing stops. Its source code uses moving averages. It has 9 settings, for example Trail All Symbols (default true), Trail Only In Profit (default false) and Close When Profit (default 0.0). Drop it on a demo chart first to see exactly what it does. Inside: 2 EA files with source code (.mq4) you can open and edit in MetaEditor. 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 EMA Trailing Stop 2
EMA Trailing Stop 2 is a script for MetaTrader 4 based on Moving Average. It has 9 settings, such as Trail all symbols, Trail only in profit and Close when profit. MQL source code included.
Files in the download: EMA Trailing Stop\EMATrailingStop_v1.4.mq4, EMA Trailing Stop\EMATrailingStop_v1.mq4.
Settings
| Setting | Default | What it does |
|---|---|---|
| Trail all symbols | true | Trailing stop distance or switch |
| Trail only in profit | false | Trailing stop distance or switch |
| Close when profit | 0.0 | |
| Show messages | true | |
| Ema time frame | 0 | Period or timeframe used by the calculation |
| Price | 0 | |
| Ema period | 13 | Period or timeframe used by the calculation |
| Ema shift | 2 | Bar shift (0 = current bar) |
| Initial stop | 100 |
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: Moving Average · Trailing Stop & Break-even · MT4 Expert Advisor · MQL4 Source Code