Close At Profit.mq4
From the Old Kings archive: Close At Profit.mq4, a script for MetaTrader 4. It has 11 settings, for example use Profit To Close (default true), profit To Close (default 20) and use Loss To Close (default false). Scripts run once when you drop them on a chart; try it on a demo account first. Inside: 1 EA file 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 Close At Profit.mq4
Close At Profit.mq4 is a script for MetaTrader 4. It has 11 settings, such as Use profit to close, Profit to close and Use loss to close. MQL source code included.
Files in the download: CloseAtProfit.mq4.
Settings
| Setting | Default | What it does |
|---|---|---|
| Use profit to close | true | |
| Profit to close | 20 | |
| Use loss to close | false | |
| Loss to close | 100 | |
| All symbols | true | |
| Pending orders | true | |
| Max slippage | 3 | Maximum slippage allowed when opening a trade |
| Show menu | true | |
| Menu color | Blue | Colour on the chart |
| Variables color | Red | Colour on the chart |
| Font | 10 |
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: MT4 Expert Advisor · MQL4 Source Code