Set Fixed SL and TP
Attach fixed SL/TP to a batch of naked positions in one run — protection without per-trade edits
Type
- Type
- Scripts · Batch Positions
- Platform
- MT4 / MT5
- License
- Apache-2.0 View license text
- Version
- 2026-10-09 (source snapshot)
- Size
- MT4 7 KB · MT5 8 KB
- Manually verified
- 2026-10-09
- Source repository
- https://github.com/EarnForex/Set-Fixed-SL-and-TP
Download
MT4 — a201d365c40bfe7c7cc4e0acf2b99d79885aaeb4a41a9b8c22c723f7f4020db9
MT5 — 57b8cd65cff96fac85868485d820376a9a16a1ad3aa4266c635726efa6a1967c
Integrity check — Compare SHA-256 before installing (Windows: certutil -hashfile file SHA256). Sources are unmodified; LICENSE and provenance notes are inside each archive. Downloads are static links: no click tracking, no IP logging.
What is this
Set Fixed SL and TP is a batch script for MT4/MT5: it sets stop-loss and take-profit at fixed point distances for selected (filterable) positions in one run. Two classic use cases: adding protection to manual entries, or covering naked positions inherited from other tools. Full filter set (symbol/magic/direction/P-L), runs once and exits.
How it works
- Computes SL/TP prices from fixed point distances (direction-aware for long/short)
- Filters which positions to touch: symbol, magic number, direction, and P/L are all optional
- Positions that already carry SL/TP can be skipped, overwritten, or merged (nearest/farthest wins)
Installation (3-step summary)
Full install guide →- 1. Download
Grab the zip via the buttons above
- 2. Unpack & copy
Put .ex4/.ex5 and .mq4/.mq5 into the matching MQL4/MQL5 folders
- 3. Enable
Restart or refresh the Navigator, drag it onto a chart, allow automated trading
Usage notes
- Compile from MQL4/Scripts (or MQL5/Scripts); drop on a chart to execute
- Points are quoted in fractional points — on 5-digit platforms 100 points = 10 pips; confirm before setting
⚠ Risk notes
- A fixed distance isn't a sane distance — volatility varies widely per instrument; ATR- or structure-based distances hold up better
Download Camovia Tray free — check quotes, manage positions, and hide in one click from your system tray.
Download FreeFrequently asked questions
▸ Will it overwrite existing stops?
Input-controlled: skip positions that already have SL, or force-overwrite them.
▸ Does it clash with auto-breakeven EAs?
No — the script modifies once at run time; after that, management EAs like Move Stop to Breakeven take over.
▸ How do points convert to pips?
On 5/3-digit platforms 10 points = 1 pip; script inputs are in points.
Related tools
Close All Orders
Double-click the script — every position and pending order gone in seconds
Breakeven
One double-click moves profitable trades' stops to breakeven — the single-shot version
Move Stop to Breakeven
Automatically moves stop-loss to breakeven at a profit threshold — lock principal, let profits run
Set Fixed SL and TP is third-party open-source software provided "as is" with no warranty of any kind. Camovia only curates and redistributes the original source code and is not affiliated with the original author or MetaQuotes. This page is educational and is not investment advice — trade at your own risk.
Found an issue? Broken link, outdated info, or wrong content — feedback is welcome. Email report