We are in social networks
VR Close Orders - Close and delete all orders

License: Free

Price - 0 $

Published: 13.12.2014

Updated: 17.02.2020

Version: 20.020

Downloaded: 1396

Views: 5678

Size: 0.36Mb

I want it for free Download the program Instructions How to install Recommended brokers Alpari RoboForex Gerchik & Co Avatrade Forex4you InstaForex WelTrade Recommended VPS Fozzy

VR Close Orders - Close and delete all orders

This page was translated via Yandex machine translation. We are working on high-quality translation already. Follow our Telegram channel news -  high-quality translation is coming soon.


Script for closing and deleting orders in the MetaTrader 4 terminal. Designed to facilitate the routine work of the trader, as well as for the fastest possible closing of all orders in the terminal. The version for the MetaTrader 5 terminal will appear with the update of the current version.


  • Easy to use
  • Suitable for beginners and professionals
  • It can work with any financial instruments (Forex, Crypto, CFD, Futures, Metals)
  • It can work for any time period

>Operation algorithm

The script analyzes all orders in the terminal and after analysis makes an attempt to close all orders, orders are closed in turn. When an order is closed, information about a closed or deleted order is displayed in the Experts log, as well as information is duplicated on the chart. Thanks to the script, a trader can close orders by type, profit, or magic number.


This program is a script for closing positions and orders, the return on such a program is impossible to calculate. The only way the program can affect the profitability is to quickly close profitable or unprofitable orders.


A good solution is to assign a hotkey to the script in the MetaTrader 4 terminal. This way You will always be able to close all orders and positions as quickly as possible.


  • Symbols - filter by tool:
    • All - all trading instruments;
    • Current - the tool that the script is thrown on.
  • Close Type - filter by order type:
    • BUY - only buy orders;
    • SELL - only sell orders;
    • BUY_LIMIT - is a pending limit buy orders;
    • SELL_LIMIT - pending limit orders for sale;
    • BUY_STOP - pending stop orders to buy;
    • SELL_STOP - pending stop orders for sale;
    • All - all market and pending orders;
    • ALL_MARKET - only market orders;
    • ALL_STOP - only stop orders;
    • ALL_LIMIT - only the order limit.
  • Close Profit or loss - filter by order profit:
    • Off - excluding profit;
    • Profit > Value - the profit is greater than The value set in the setup;
    • Profit < Value - the profit is less than The value set in the setup;
    • Profit = Value - the profit is equal to The value set in the configuration.
  • Value - the value for the setting above;
  • Magic Number - filter by unique order number:
    • -1 - all orders (expert Advisor Orders + orders opened manually);
    • 0 - only orders opened manually;
    • >0 - number of orders opened by another expert Advisor.
  • Slippage - slippage.



Version 20.020 - 2020.02.17
The program is compiled for the new Version of the MetaTrader 4 terminal, build 1260.

Version 17.31 - 2017.03.30
Fixed the behavior of settings:
When setting the value for closing on profit (Profit = Value) equal to the value (Value), the value Off was previously dropped.


At the moment, there are no plans for further development.
You can suggest an idea or revision in the "Reviews and discussions" section.

You can't test the script in the strategy tester, but you can test it on a training or demo account. To conduct tests, it is enough to open a large number of different types of orders on a demo account, and then run the script. You can open a training account with any of our partner brokers.

>What's in the archive

VR-Close-All.ex4 - For The MetaTrader 4 terminal

How the script works to close all orders
Result of the script




>Reviews and discussions

To leave a comment or ask a question,
You should be registered and authorized.
Loading comments...

These programs may be of interest to You

VR Atr Pro - determining target levels

Published: 10.02.2014

Updated: 16.03.2020

Version: 20.031

Downloaded: 8604

Views: 20660

Size: 1Mb

The VR ATR Pro indicator is a powerful professional tool for determining target levels on a particular financial instrument. The indicator effectiveness has been proven by thousands of tests on both real and demo accounts. VR ATR Pro is an indicator that works on real data using live real statistics.

License: Paid-Free

Price - 30 $

VR Break Charts

Published: 05.01.2015

Updated: 11.07.2017

Version: 17.100

Downloaded: 645

Views: 8079

Size: 0.95Mb

Three Line break chart is a type of chart used in technical analysis of stock and currency markets.

License: Paid-Free

Price - 30 $

VR Small Chart a mini chart of a financial instrument

Published: 28.10.2015

Updated: 19.01.2016

Version: 17.100

Downloaded: 159

Views: 1241

Size: 0.18Mb

The indicator for charts of The MetaTrader terminal allows the trader to open charts of any other trading instruments in the main working window.

License: Paid-Free

Price - 30 $

VR Close All-Close all orders if ...

Published: 04.08.2015

Updated: 12.08.2015

Version: 17.100

Downloaded: 4768

Views: 23943

Size: 0.58Mb

Designed for closing/deleting all orders in the terminal. It helps to fix profit or loss on the entire trading account.

License: Free

Price - 0 $

*— required fields
Log in via a social network