VR Close Orders - Close and delete all orders

License: Free

Price: 0 $

Published: 13.12.2014

Updated: 17.02.2020

Version: 20.020

Downloaded: 1408

Views: 5710

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 Draw

Published: 20.10.2014

Updated: 26.08.2015

Version: 17.100

Downloaded: 9354

Views: 38226

Size: 0.1Mb

A simple indicator for drawing any drawings on the chart in the MetaTrader terminal.

License: Free

Price: 0 $

VR Locker - successful lock trading

Published: 30.08.2017

Updated: 14.09.2017

Version: 17.100

Downloaded: 2630

Views: 13529

Size: 0.15Mb

The program trades according to a unique logic, the task of which is not just to fix the profit, but also to use the accumulated profit as a safety cushion, which significantly reduces the drawdown on the balance.

License: Paid-Free

Price: 199$ 0$/10$/149$

VR System is an effective strategy for all times

Published: 01.02.2014

Updated: 14.06.2020

Version: 20.060

Downloaded: 1622

Views: 31944

Size: 2.3Mb

VR System is not just an indicator, it is a well-balanced trading system that includes combined simple Moving Average and Donchian channel indicators. The system is based on classic trading rules. The VR System trading system takes into account the rules for entering the market, rules for holding a position in the market, and rules for exiting a position.

License: Paid-Free

Price: 0$/10$/150$

VR Null Bot - algorithm of a virtual network

Published: 08.07.2018

Updated: 08.07.2018

Version: 17.100

Downloaded: 1196

Views: 6230

Size: 0.1Mb

The basis of the expert Advisor is a virtual network of orders. The program calculates prices and lots inside its algorithm.

License: Shareware

Price: 0 $

*— required fields
Log in via a social network