27.08.2020

Scripts for setting the grid of deferred orders. Forex script for postponed orders Download the script of deferred orders in different directions


Scripts for opening or closing transactions (orders) today use all novice traders. But before talking about the intricacies of using such programs, it is worth dealing with what a script is.

The script is small by volume, but not the value of the program. It is additionally installed on the MT4 or 5 terminal.

Unlike advisers, scripts do not fulfill their role constantly, it is used at all. That is, for committing a certain operation and only once. Such an operation may be, for example, opening or closing a warrant or. In general, scripts are written for a variety of purposes.

Script opening and closing several orders for the MT4 platform

In the MT4 platform, some scripts are already spelled out. This, in particular the opening script. It is used to open the position. Also, there is a script to remove an previously open position. All scripts are stored in the section of the same name in a special navigator window. Here, you can view the entire list of available software modules.

In order to start working with some script, it needs to be transferred to an open schedule. You will need to activate the script in the appeared window, with the question really we want to attach "Close" to the EUR / USD Daily chart?

When you press the "Yes" key, the script will start. And after performing the function, it will automatically close and removes the graph, without distracting attention. Remove the script can and early. For example, if it is no longer needed.

To delete, right-click, click on the schedule and click the Delete Script feature. Ready.

Order orders in MT4

Installing scripts directly to open / close several orders in addition to the existing

Any scripts today can be found on the network. Scripts for MT4, also easy to download on the forums. In order to get started, make sure you have the MetaTrader4 program installed the scripts as a rule, downloaded entire archives.

After downloading, such an archive must be unpaid. All its contents should be copied to the MQL4 / Scripts folder. By the way, it is in the data directory itself. Next, you need to go to this directory: File \u003d\u003e Open the data directory.

The next step - Opening the MQL4 scripts folder. It is here that the downloaded scripts are placed. After a successful copy, the MT4 platform needs to be restarted. Without this action, scripts will not appear.

Now you can start the MT4 program again and do the following steps:

  • Select on the top panel SERVICE \u003d\u003e Settings
  • In the Advisor tab, arrange cross / ticks as shown in the picture below:
  • Last item - Press "OK"

Now you can open the schedule selected. On the schedule you can drag the installed script.

We change the parameters of the opening script and closing of protective orders in MT4

Script opening / closing orders (one or more), works well with pre-installed parameters. But sometimes these parameters require a small adjustment. For example, if you want to increase or decrease the lot that open. To change the parameters of the script, you need to change its code. You can do this only if you have a source code in MQL format.

First you need:

Find in the program you need the script and select the Change menu item when clicking on the right button.

In the opened window of the MetaEditor application, the parameters are changed. The main thing is not to change too much. Carefully follow what parameters change. Otherwise, your script will simply stop working correctly and instead of benefit only harm, and therefore - losses.

After performing all the necessary changes, save them by pressing the "Complite" key. After that, you need to close the entire MT4 program.

Difficulties with programs or some unforeseen situations should not occur. Since all scripts are extremely clear and easy.

It should be borne in mind that scripts exist all sorts. There are quite useful, but not quite. But there is a whole set of scripts that will not damage. In the list of the most common many items.

Script Closure and Opening Protective Orders - Urdala Helper

This script helps perfectly when trading on Forex goes in manual mode. Control the simplest - mouse, as in working with standard Windows windows. This script is designed to open orders. Moreover, both the market and with the Take Profit exhibited and stop the loss.

Urdala Helper is used and when closing orders (one or a whole group). It can even be all orders at once. And with this script, you can modify orders. You can also work with one or several orders. They can be translated to the profit above or below the line, and the profit is not lost at the same time.

Working with the script is extremely easy. It needs to be dragged on the schedule. In the settings window A and decoration.

The script appears in the form of windows. It starts the action you chose and automatically closes on its execution.

How is the script for several orders?

To open a market order, you need to move the price label Take profit (green) or stop loss (red) to where you are planning the foot orders. The same with a deferred warrant.

Deferred orders allow the trader to ensure the automatic execution of a particular trading operation when a certain level is achieved. Such an operation can be in opening, closing or changing the position. Some trading strategies suggest the placement of many deferred orders that are triggered when the required market situation occurs. At the same time, they are relevant only a certain time interval, after which their activation can only bring losses. In such cases, it is advisable download script to remove deferred ordersproviding quick execution of this function.

See video review articles

When you need to install and remove postponed orders

As a rule, a pending order (OO) is triggered when the asset is reached asset asset. After installing the OO trader, there is no need to expect the execution required for a specific trade Strategy Conditions set to open, closing or change position. A broker through which leads his trade activities The trader carries out the automatic execution of the OO at the most favorable price (i.e. the order is performed even when the trading terminal is turned off).

At the same time, deferred orders do not have the deadline for execution - after installation, they remain active until the moment of operation. During their installation, you can also specify the necessary dimensions of stop loss and Take profit, and in the installed OO, any parameters can be changed.

If the trader installed with a dozen pending orders or more when the corresponding signals used by the TC, then to remove them when changing market conditions It will be necessary to spend certain time and effort. Although it seems that such an operation is performed very simply and easily, but the multiple implementation of it is tiring. In such cases, the script will be useful to remove deferred orders, ensuring their operational deactivation for the minimum number of manipulations. After completing its operation, a window is displayed with alerts on the removal of all OO (Fig. 1),

Such quick removal of OO in demand with high-frequency trade on short timeframes (for example, when scalping), when the profitability of the trading strategy directly depends on the decision-making rate.

Another case when the use of postponed orders is advisable - channel trade on the FLET. For example, when trading inside the channel (Fig. 2), a purchase is set at the level of the bottom border of the channel with a stop loss under it and with a Take profit in the center of the canal. Accordingly, OO for sale is set to the upper boundary of the channel with a stop loss over it and a Take profit in the middle of the channel.

It is much easier to trade on the channel breakdown. In this case, when identifying its boundaries, BUY STOP and SELL STOP orders are set, respectively, on the upper and lower channel boundaries (Fig. 3). When the price is released from the channel, the corresponding OO is triggered, and the other is removed.

What other scripts for deferred forex orders

At the request of traders, programmers create a wide variety of algorithmic sequences that perform the necessary trade operations with deferred orders. For example, Del_Orders_Afte_Vline can delete oo in time. The point of removal is displayed on the graph in the form of a vertical straight line (red in Fig. 4) and is initially placed on 10 periods ahead of the current candle (the number of those remaining before the closure of all OO seconds is displayed in the upper left corner of the price chart window). This straight line can be captured by the mouse and move on or closer.

And allows you to close strictly defined types of orders. At startup, it displays the window (Fig. 5) in which you can specify the values \u200b\u200bof the following parameters:

  • Close_Telated_BUY-orders? - whether to use buy-orders;
  • Close_Sell-orders? - whether to apply to SELL-orders;
  • Close_Profit_Order? - whether to apply to profitable orders;
  • Close-up_r._dar? - to apply if unprofitable orders;
  • Delete_date_ordar? - whether to apply to oo;
  • Close / delete_Roda_Tejk_nizhik? - whether the script is used only to orders possessing the Madzhik coinciding with the number of "Majik" parameter;
  • Majik - the number corresponding to the Madzhik orders that will be deleted / closed when the True value of the "Close / delete_Der__TER_S_S_S_MAJ_NEZ_NEK_" parameter is valid? ";
  • Skalping - the maximum value of the change in the market price from the one at which the closing / removal of the order was activated to be activated.

All variables whose name is formulated as a question, can take two values \u200b\u200btrue (yes) or false (no).

Below are some other scripts for deferred orders that simplify and facilitate trade:

  • Closes all exhibited orders at the moment when the price reaches horizontal lineoriginally placed at a distance from current priceequal to the value of the TAKEPROFIT variable. The position of this line can be changed. From each order will be closed part indicated as percentage in the PERCENTCLOSE variable.
  • Dear positions.
  • Deletes only orders satisfying the specified conditions defined in the parameters: Magic - the number of transactions; Magicall - whether to close everything orders (True - Yes, False - no); PROFIT - Profit size, sufficient for the closure of OO (0 - all oo); TipOrder - Type of OO closed (0 - all, 1 - Buy, -1 - SELL); Symbolall - on all currency pairs to close OO (true - yes, false - only on the current); DeleteOrders - what orders are deleted (true - all, false - only market); Attempts - the number of closing attempts.

The MetaTrader4 trading terminal provides the ability to install postponed orders:

  • stop type, in whose parameters the trader indicates to purchase trading Instruments The value of the price is higher than the market and for the sale of a trading tool - the value of the price is lower than the market. The species of the SELLSTOP and BuyStop protective order are designed for deferred sale by breaking the level of support and deferred purchase to break the level of resistance. Stop Protective Orders are used by traders working on the breakdown strategy of significant levels, and are exhibited after the competent analysis of the situation.
  • limit type, in the settings of which the trader indicates the price below the market - to buy a trading tool, and the price is higher than the market - for the sale of a trading tool. The so-called "limit" orders of BUYLIMIT and SELLLIMIT can be displayed manually or using an automated assistant to perform one-time action - script. BUYLIMIT type warrant is a bit higher than a significant level of support, since as a result of lowering the price before the specified level, its turn may occur, and the warrant will be caught a good input moment. SellLimit Type Orders work in the same way: sets insignificantly below the resistance level. When the price from a significant level and its reversal, the order will occur at an optimal price.

In all cases, orders are triggered by reaching the price of the level specified in the settings of the parameters.

Many traders in order to avoid confusion with the opening of orders prefer to use forex script for pending orders. To do this, in the terminal settings, you must resolve the function of the autotort and install the necessary checkboxes. The BUYLIMIT and BUYSTOP orders are installed using the SETUP_BUY_PENDINGORDER script by simply dragging them to the price schedule, to the level where they are planned to trigger according to the functionality. The SellLimit and Sellstop orders can be installed on the price schedule using the setup_sell_pendingorder script by analogy. At the same time, the script itself produces the calculation of the type of the order, which must be set at this level.

Forex SETUP_BUY_PENDINGORDER and SETUP_SELL_PENDINGORDER and SETUP_SELL_PENDINGORDER are designed to simplify the opening of pending orders of all types ,. Again, you need to need to be clamped - "Auto-Trading" and in the terminal settings, in the Advisor tab were the corresponding checkboxes, about this in detail on the video. To set the deferred BUYSTOP type you just need to drag the script to the graph in the desired location, i.e. On the price that you want to set the peel. The BUYLIMIT order is also set, the difference is only that BuyStop you pull the script above the current price of the currency, and when installing Buylimit drags below the current tool price. SETUP_SELL_PENDINGORDER Script works similarly, but sets the types of types: Sellstop and SellLimit

Do not think, just expose to the right place and in the right direction (BUY / SELL) pending orders! The script itself calculates which one deferred by type you need to set.

Today it is difficult to start trading in the Forex market without using advisers. However, it is sometimes necessary to use special scripts that help these tools lead trading on the market.

In this article we will look at scripts for setting the grid of pending orders. And for a start, let's figure it out in detail with what it represents and why they are generally necessary.

What is a forex order order?

In essence, the order is an order for the dealer to perform an operation on the purchase or sale of the currency. On the currency market There are two orders of the order. First - .

At the same time, I simply define the order. To do this, remember one simple rule. The order version is always determined directly relative to the current cost, at the moment it is exposed.

If you need to buy higher or selling below, it means we are talking about STOP / LOSS. In the case when you should sell above, but to buy below, we are talking about TAKE / PROFIT.

It is important to know that, depending on the purpose of this or another order, it can always be qualified as a simple interdependent order and directly by execution.

So, simple order, (otherwise single) Used directly to enter or enter the position when the market is achieved in it. It is important to take into account that the order can be placed not over and not closer to ten items from the current market price.

Given that traders are always selling at the cost of BID, and buy currency at ASK. Recognized orders are a combination of orders mentioned above. Usually, this class of orders exhibit in the presence of an open position. And it is necessary for better control over the position.

Its main advantage is directly in the application of this tool, if you use one order, the second is automatically canceled. The execution orders are a bunch of several orders in which one is simple, and one remotely intended, in some cases, maybe even two.

The peculiarity of this ligament is that the user is completely not required to constantly sit at the computer monitor to track the market. The dealer himself can open the position to you, after which it is to control the state of this position until the actuation of some orders in this bundle is triggered.

Pending order - types, teams

Now let's talk directly about the deferred order. In fact, this is an order to the dealer when a certain kind of price is achieved to sell or buy a currency at a given price of a given number of lots.

Pending orders

As a rule, the New Order window is called for postponed orders. To do this, make the following procedure. Find the service "Service" after which you choose the "New Orders" section. After performing these tasks, you must press the F9 key. Now you can choose the "Market Overview" double.

With regard to the opened window "Order", it should be noted the option called " Delayed order" It is important to correctly fill in all fields that belong to this section. After that you can start the installation. Do not hurry. It should be gradually waiting for confirmation of the adoption of the order from the selected server. In the trading terminal window, information should appear indicating the successful installation of the order. Now, having familiarized with the main concepts, we are ready to reveal the basic essence of this article.

Scripts for setting the grid of deferred orders. Simple installation

This option is provided for the installation of deferred orders only with the mouse. This script allows the user to put postponed orders directly in trading Terminals.Thanks to the use of just a mouse.

It really repeatedly simplifies operations related to installation, because you are given the opportunity to visually watch where the cost of the currency is at a certain period of time. In addition, you get the opportunity to enter the process of trading all the necessary adjustments and parameters.

The script for putting postponed orders is a very convenient tool, with which you can on the graph of the selected currency pair Immediately install not one order, but also settings that will help as part of the stoploss / TakeProfit orders.

The basic settings of the script for exhibiting (installation) of the grid of deferred orders

First of all, you should talk about choosing positions. In this section, you can open or exceptionally short, or, on the contrary, only long positions. At the same time, LONG is only a purchase, and Short - orders exclusively for sale.

It should be understood that if you decide to choose Long and Short, then there may be 2 delayed orders on the graph of the specified chart, and in different directions.

Stop-Loss allows you to pre-set the risk in advance, which will make it possible to dispose of funds in some unableless transactions.

Take-Profit is also importantwhich refers to order Take Profit. It is responsible for determining the amount of profit, especially when the amount of profits is determined, within which the automatic closing of the instrument is achieved.

Slippage is an indicator of slippage.

In addition to the specified settings, there are also a number of other parameters, however, which are less important. Therefore, if you wish, you can find information and about their settings, but in trade they will not need. As for the script given in the example, I would like to note that in the MetaTrader 4 database it is wonderful.


2021.
Mamipizza.ru - Banks. Deposits and deposits. Money transfers. Loans and taxes. Money and state