Close All Positions At Profit Target 2
From the Old Kings archive: Close All Positions At Profit Target 2, a script for MetaTrader 4. Judging by its name, it is built around price targets drawn as lines and closing open orders in one step. It has 6 settings, for example Profit Target (default 25), Close All Now (default false) and Close Profitable Trades Only (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 All Positions At Profit Target 2
Close All Positions At Profit Target 2 is a script for MetaTrader 4. It has 6 settings, such as Profit target, Close all now and Close profitable trades only. MQL source code included.
Files in the download: close all positions at profit target (1).mq4.
Settings
| Setting | Default | What it does |
|---|---|---|
| Profit target | 25 | closes all orders once Float hits this $ amount |
| Close all now | false | closes all orders now |
| Close profitable trades only | false | closes only profitable trades |
| Proftable trade amount | 1 | Only trades above this amount close out |
| Close pending only | false | closes pending orders only |
| Use alerts | false | 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: MT4 Expert Advisor · MQL4 Source Code