crm

Login

 

Instrument Pull_Up

Categorized as:AutoGraf

» Instrument Pull_Up

Languages:Русский  中文  



Instrument Pull_Up



Pull_Up (1) is an order instrument used for order modification.

Permissions for Placing the Instrument

Instrument Pull_Up can be placed on the following order lines:

- StopLoss and TakeProfit of a market order of any type;

- OpenPrice of a Pending order of any type.



Limitations

If Instrument Pull_Up is going to be placed (see down):

If Pull_Up instrument is going to be placed on an order line and one of the following instruments has already been placed on this line:

2 - Pull_Down,

3 - Following_The_Price,

6 - Pull_Not_Above,

7 - Pull_Not_Below,

9 - Pull_After_Object_Up,

10 - Pull_After_Object_Down,

11 - Following_The_Object,

these instruments are deleted automatically.

Instrument Pull_Up cannot be placed on a StopLoss of a Sell Market Order if Instrument 5 (Stop_ 0_Sell) has been already placed on the order.





If Instrument Pull_Up has already been placed (across):

If Instrument Pull_Up has been placed on an order line, it will be deleted automatically when a user places one of the following instruments on the same line:

2 - Pull_Down,
3 - Following_The_Price,
9 - Pull_Afetr_Object_Up
10 - Pull_After_Object_Down,
11 - Following_The_Object.



If Pull_Up instrument has been placed on a StopLoss of a Sell Market Orderan Instrument 5 Stop_0_Sell cannot be placed on the same order.



Requirements

No other instruments are required to place Pull_Up instrument.
Placing Instrument Pull_Up meets the requirements for placing Instrument 6 Pull_Not_Above.



Placing Instrument

To place the instrument, click the instrument icon in the Control Panel, drag it to the order line of your choice and release the mouse button. If the line choice complies with permission rules for Instrument Pull_Up, the instrument icon will be displayed close to the order line, on the bar where the user released the mouse button. If the instrument is placed successfully, the notification area will display a confirmation message and you will also hear a corresponding sound alert.

Placing Instrument Pull_Up on the OpenPrice of a BuyLimit order.



When trying to place Pull_Up on an invalid order line, placing the instrument will fail. In this case the notification area will display a message stating that the user has made a mistake. You will also hear a corresponding sound alert.

Parameters
The following parameters are characteristic of Instrument Pull_Up:


Index

0 1 2 3 4 5 6

Parameter

0/1 i_B   Ds St    

Example:

1.0 12.0 0.0 20.0 3.0 0.0 0.0

The indexes of the instrument parameters correspond to the indexes of these parameters in the array Instrument[or][ol][1][j], where:

or - the current index of an order in array Order[][];
ol - number of an order line (1 - OpenPrice, 2 - StopLoss, 3 - TakeProfit);
1 - the number of Pull_Up instrument ;
j - the index of Pull_Up instrument parameter.



Array Instrument[][][][]



- the fact of placing the instrument; this parameter can be modified in the manual mode by placing and deleting the instrument.

- the index of the bar on which the instrument is placed; this parameter can be modified in the manual mode by moving the instrument icon inside the price chart (horizontally).

- the distance in pips between the current market price and the order line (‘following the price’ if the order line is below the market price or ‘running away from price’ if the order line is above the current price).

When the instrument is placed, the parameter takes on the value of the actual distance between the order line and the Correct Price (Correct Price is the price of a two-way quote that is used to execute an order). To modify the parameter in the manual mode, click the instrument icon and move it inside the price chart (vertically) or select the desired value from the scale.

Dragging the instrument icon upwards decreases the distance, dragging it down – increases it. The parameter is modified proportionally to the distance between the current position of the instrument icon (which is being moved by the user) and the correct market price (used to execute the order). The current parameter value is displayed to the left of the instrument icon. When the user releases the mouse button, a new parameter value is accepted and the instrument icon returns back to the order line.

Parameter value can also be modified by choosing a new value from the scale. To bring up the scale, click the current parameter value that is displayed to the left of the instrument icon and move it minimally in a sideways direction. The value chosen by the user on the scale is accepted as the new order parameter.

The Ds parameter will also change when the order line is modified downwards. For order lines that are higher than the market price, the parameter value is decreased when the actual distance becomes less than Ds – St. For order lines that are lower than the market price, the parameter value is increased when the actual distance becomes greater than Ds + St. In the cases described above the parameter value is set equal to the actual distance between the order line and the Correct Price.

-order line modification step in pips.

When the instrument is placed, this parameter takes on the selected value of the St setting that is displayed in the sub-window.

Parameter value can be modified by choosing a new value from the scale. To bring up the scale, click the current parameter value that is displayed to the left of the instrument icon and move it minimally in a sideways direction. The value chosen by the user on the scale is accepted as the new order parameter.

1. When a user drags the order line downwards, the Ds parameter value of instrument Pull_Up increases.
2. When a user drags the order line upwards the Ds parameter value of instrument Pull_Up remains unchanged.



Instrument Execution

To allow instrument execution in AutoGraf 4, the semi-automatic or the automatic mode must be enabled (the AG or AT icons in the upward position).

The algorithm of the Pull_Up instrument is intended to modify an order line (increase the execution price as the current market price moves upwards on the chart). When placed on a line, the instrument monitors market price changes and, when the needed conditions are met, modifies the order in such a way, that the order line always remains at a fixed distance (determined by the Ds parameter value) from the market price. Modification in the opposite direction is not possible.

Conditions for instrument execution differ for order lines that are higher and lower than the market price. For order lines that are lower than the market price, the conditions of instrument execution are met when the following the price distance is equal to or exceeds the Ds + St value. For order lines that are higher than the market price the conditions of instrument execution are met when the ‘running away from price’ distance is equal to or less than the Ds-St value. When the instrument execution conditions are met, the instrument sets the price of an order line at a new value that is equal to CP – Ds (CP – the Correct Price is a price of two-way quote that is used for order execution). The value of i_B parameter is not taken into consideration when the instrument is executed.

Executing Instrument Pull_Up for Pending Orders triggers complete order modification. In this scenario the StopLoss and TakeProfit of the Pending Order are modified together with the order OpenPrice. The distance between the OpenPrice and StopLoss/TakeProfit remains the same. The only exception is when Instrument 13 (Bind_to_Price) has been placed on a StopLoss/TakeProfit price.

Bind_To_ Price



When the settings of instrument Pull_Up are changed by moving the instrument icon after the semi-automatic mode is enabled (the AG icon is upwards), the instrument is executed in accordance with the new settings.



When generating a trading order to execute an instrument, AutoGraf 4 takes into consideration all the requirements and limitations for trading as well as the directions initiated by other instruments. If there are any directions from other instruments, AutoGraf 4 generates one trading order that takes into consideration all the directions (placing instruments that may generate contradictory directions is not permitted in AutoGraf 4).

The Table of Permissions for the Use of Order Instruments



Deleting Instrument

All instruments in AutoGraf 4 are executed while they are placed and are present on the chart. To stop the execution of an instrument - delete it from the chart. The instrument can be deleted manually by the user or automatically (by the system).

To delete Instrument Pull_Up manually, click the icon and press Delete. Such control action is always executed by AutoGraf 4 application without failure (as opposed to trading orders that are executed on the server side). When deleting the instrument manually, make sure that other instruments or order lines are not selected. Deleting other objects together with the instrument icon might (depending on what kind of objects are deleted) result in deleting other instruments or generating unplanned trading orders (order deleting and modification).

Instrument Pull_Up is also deleted automatically when instrument 6 (Pull_Not_Above) is executed. If the order line execution price reaches the Pull_Not_Above instrument execution price, Pull_Not_Above instrument deletes the Pull_Up instrument, it then is deleted automatically, too.

Instrument Pull_Not_Above



Placing and deleting Pull_Up instrument automatically is illustrated in the following examples: Example 1, Example 2, Example 3, Example 4, Example 7.

 :   :