Loading…

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

SettingDefaultWhat it does
Profit target25closes all orders once Float hits this $ amount
Close all nowfalsecloses all orders now
Close profitable trades onlyfalsecloses only profitable trades
Proftable trade amount1Only trades above this amount close out
Close pending onlyfalsecloses pending orders only
Use alertsfalseTurn this alert on or off

How to install

  1. Download the ZIP from your PolyMaria library and unzip it.
  2. In MetaTrader 4 open File → Open Data Folder, then go to MQL4 → Scripts.
  3. Copy the .mq4 file(s) there. Put any .mqh files in MQL4 → Include.
  4. Open the .mq4 file in MetaEditor and press Compile (F7) if MetaTrader does not show it.
  5. Drag the script onto a chart to run it once.

Download the PDF guide

Tags: MT4 Expert Advisor · MQL4 Source Code

Old Kings — classic MT4 & MT5 collection · PolyMaria