VR Close Orders - Close and delete all orders

License: Free

Price: 0$

Published: 13.12.2014

Updated: 05.10.2020

Version: 20.103

Downloaded: 1400

Views: 5687

Size: 1.24Mb

VR Close Orders - Close and delete all orders

>Overview

The VR Close orders script is designed to close positions in the terminal at a profit or loss mark set by the trader. The program is written as a script and can work together on the same chart with any other indicators and expert advisors. The program has a simple visual panel and is easy to configure with the mouse. With this program's help, the trader can automatically close positions and delete orders depending on the conditions set. 

There is often a situation when you need to close positions of a working expert advisor. the VR Close Orders script will help you close positions in profit, loss, or all at once with the specified settings

Script for closing orders and deleting an advisor

>Advantages

  • It can close positions based on profit in points, percentage of the balance, and profit in the deposit currency.
  • It can close positions on a loss in points, a percentage of the balance, or a loss in the deposit currency.
  • It can work together on the same chart with another expert advisor or indicator.
  • It can close positions one at a time or all at once under the specified conditions.
  • It can be used to open locks.
  • Suitable for both beginners and professionals.
  • It can work with any financial instruments (Forex, Crypto, CFD, Futures, Metals).
  • It can work on any timeframe.

>Operation algorithm

The script's algorithm may seem complicated at first glance, but it's actually quite simple.

Closing positions on profit.

  • Profit button - activates the function of closing positions on profit.
  • Input field - the trader enters the value of the desired profit in points, percentages, or deposit currency.
  • Buttons for selecting the type of profit - P - points, % - percentage, $ - deposit currency.
  • Buy button - tells the script to close only those positions for which the profit is greater than or equal to the one set by the trader.
  • Sell button - tells the script to close only those positions for sale that have a profit greater than or equal to the one set by the trader.
  • All button - tells the script to count the total profit and close all positions if the total profit is greater than the specified one.
  • Buy + All buttons - tells the script to close all buy positions if their total profit is greater than the one set by the trader.
  • The Sell + All buttons - tells the script to close all positions for sale if their total profit is greater than the one set by the trader.
  • The Buy + Sell + All - tell the script to close all buy and sell positions if their total profit is greater than the one set by the trader.
  • Check mark button - confirms the application of settings and activates the script.

Important note for Buy + Sell + All, if the amount of lots for buying and selling is the same, this mode will not work. Reason: the same volume of lots to buy and the same volume of lots to sell make it impossible to make a profit or loss, since all positions are fully locked.

Closing a loss position.

  • It works the same way as closing a profit position, only the loss value is specified in the input field.

Additional buttons and capabilities of VR Close Orders.

  • The Delete Pending button - indicates to the script an additional action, after closing all market positions, to delete pending orders if there are no market positions.
  • Push button - tells the script to send a message to the smartphone about the script completion.
  • Goggles button - Displays information about current And closed positions.
  • Check Mark button - confirms the application of settings and activates the script.

>Profitability

This program is a script for closing positions and orders, the profitability of such a program can not be calculated.

>Recommendations

It would be a good solution to assign scripts a hotkey in the MetaTrader terminal. This way you will always be able to close all orders and positions as quickly as possible.

>Settings

  • 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.

>Video

>Updates


Version 20.103 - 05.10.2020
● The program is completely rewritten, new functionality is added.


>Planned

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

How to test

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

For MetaTrader 4

  • VR-Close-Orders-RU.ex4 - Russian version program file
  • VR-Close-Orders-EN.ex4 - English version program file

For MetaTrader 5

  • VR-Close-Orders-RU.ex5 - Russian version program file
  • VR-Close-Orders-EN.ex5 - English version program file

Documents

  • VR-Close-Orders-RU.pdf - user's manual in Russian
  • VR-Close-Orders-EN.pdf - user's manual in English

>FAQ

Question:how do scripts differ from expert advisors and indicators?

Answer:Unlike expert advisors, which work all the time, a script works once, so you run a script, it does its job and deletes itself. This is a one-use code. There are ways to loop scripts, that is, the script runs until the user deletes it. You can also delete looped scripts when you change a financial instrument or chart period. The advantage of looped scripts is that they can work even if another expert advisor is already running on the chart. The script works in the general flow of the terminal.

>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 Alert warned means armed

Published: 22.12.2015

Updated: 09.07.2020

Version: 20.072

Downloaded: 4738

Views: 21791

Size: 2Mb

VR Alert indicator notifies the trader that the price has reached the specified level. You do not have to sit for hours and days waiting for the price to reach the desired value anymore.

License: Paid-Free

Price: 0$/10$/30$

VR Atr Pro - determining target levels

Published: 10.02.2014

Updated: 16.09.2020

Version: 20.091

Downloaded: 8607

Views: 20680

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: 0$/10$/30$

VR Break Charts

Published: 05.01.2015

Updated: 11.07.2017

Version: 17.100

Downloaded: 648

Views: 8099

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: 0$/10$/30$

VR Template Switcher - work with templates

Published: 17.05.2020

Updated: 10.07.2020

Version: 20.070

Downloaded: 67

Views: 296

Size: 2.24Mb

VR Template Switcher is a powerful tool designed as an indicator that allows a trader to manage chart templates in the MetaTrader terminal with a single mouse click. Now you will be able to scroll, save, load, and even sync templates with other MetaTrader terminals on Your computer without any problems. Working with the program is easy and simple, everything is done on the principle of "Installed, configured and forgot about it".

License: Paid-Free

Price: 0$/10$/30$

*— required fields
Log in via a social network