Previous  Next

Basic Principles

Before you proceed to study the trade functions of the platform, you must have a clear understanding of the basic terms: order, deal and position.

Interrelation of orders, deals and positions

The platform allows you to easily track how a position was opened or how a deal was performed. Each trading operation has its unique ID called a "ticket". Each order and deal receive a ticket relating to their relevant position. Each deal receives a ticket of an order, by which it was concluded.

If a position was affected by multiple deals, for example in the case of a partial closing or increasing volumes, each of the deals feature the position's ticket. This makes it easy to track the entire history of the position as a whole.

If trading operations are sent to an exchange or a liquidity provider, they additionally feature an ID from an external system. This allows additional tracking of the interrelation of operations away from the platform.

The history of opening a position can be tracked by tickets

A General Scheme of Trading Operations

Scheme of trade operations: from order creation to execution by broker

Position Accounting System

Two position accounting systems are supported in the trading platform: Netting and Hedging. The system used depends on the account and is set by the broker.

Netting System

With this system, you can have only one common position for a symbol at the same time:

It does not matter, what has caused the opposite deal — an executed market order or a triggered pending order.

The below example shows execution of two EURUSD Buy deal 0.5 lots each:

Execution of the two Buy deals resulted in one net position.

Execution of both deals resulted in one common position of 1 lot.

Hedging System

With this system, you can have multiple open positions of one and the same symbol, including opposite positions.

If you have an open position for a symbol, and execute a new deal (or a pending order triggers), a new position is additionally opened. Your current position does not change.

The below example shows execution of two EURUSD Buy deal 0.5 lots each:

Execution of the two Buy deals resulted in two trading positions.

Execution of these deals resulted in opening two separate positions.

Impact of the System Selected

Depending on the position accounting system, some of the platform functions may have different behavior:

Types of Orders

The trading platform allows to prepare and issue requests for the broker to execute trading operations. In addition, the platform allows to control and manage open positions. Several types of trading orders are used for these purposes. An order is a trader's instruction to the broker to perform a trade operation. In the platform, orders are divided into two main types: market and pending. In addition, there are special Stop Loss and Take Profit orders.

Market Order

A market order is an instruction given to a brokerage company to buy or sell a financial instrument. Execution of this order results in the execution of a deal. The price at which the deal is executed is determined by the type of execution that depends on the symbol type. Generally, a security is bought at the Ask price and sold at the Bid price.

Pending Order

A pending order is the trader's instruction to a brokerage company to buy or sell a security in future under pre-defined conditions. The following types of pending orders are available:

  • For symbols with Exchange Stocks, Exchange Futures and Futures Forts calculation modes, all types of pending orders are triggered according to the rules of the exchange where trading is performed. Usually, Last price (price of the last performed transaction) is applied. In other words, an order triggers when the Last price touches the price specified in the order. But note that buying or selling as a result of triggering of an order is always performed by the Ask and Bid prices respectively.
  • In the "Exchange execution" mode, the price specified when placing limit orders is not verified. It can be specified above the current Ask price (for the Buy Limit orders) and below the current Bid price (for the Sell Limit orders). When placing an order with such a price, it triggers almost immediately and turns into a market one. However, unlike market orders where a trader agrees to perform a deal by a non-specified current market price, a pending order will be executed at a price no worse than the one specified.
  • If during pending order activation the corresponding market operation cannot be executed (for example, the free margin on the account is not enough), the pending order will be canceled and moved to history with the "Rejected" status.

Types of pending orders

Current market state

— current market state

Forecast

— forecast

Current price

— current price

Order price

— order price

Price, reaching which a pending order will be placed

— price, reaching which a pending order will be placed

Expected growth

— expected growth

Expected fall

— expected fall

Take Profit

The Take Profit order is intended for gaining the profit when the security price reaches a certain level. Execution of this order results in the complete closing of the entire position. It is always connected to an open position or a pending order. The order can be requested only together with a market or a pending order. This order condition for long positions is checked using the Bid price (the order is always set above the current Bid price), and the Ask price is used for short positions (the order is always set below the current Ask price).

Stop Loss

This order is used for minimizing losses if the security price moves the wrong direction. If the security price reaches this level, the entire position is closed automatically. Such orders are always associated with an open position or a pending order. They can be requested only together with a market or a pending order. This order condition for long positions is checked using the Bid price (the order is always set below the current Bid price), and the Ask price is used for short positions (the order is always set above the current Ask price).

If during Take Profit or Stop Loss activation the corresponding market operation cannot be executed (for example, it is rejected by the exchange), the order will not be deleted. It will trigger again at the next tick corresponding to the order activation conditions.

Rules of Stop Loss and Take Profit inheritance (netting):

Stop Loss and Take Profit inheritance rule (hedging):

These rules apply both when trading manually and when placing orders from Expert Advisors (MQL5 programs).

  • Trailing Stop can be used to make Stop Loss follow the price automatically.
  • Activation of Take Profit or Stop Loss results in the complete closing of the entire position.
  • For symbols with Exchange Stocks, Exchange Futures and Futures Forts calculation modes, Stop Loss and Take Profit orders are triggered according to the rules of the exchange where trading is performed. Usually, Last price (price of the last performed transaction) is applied. In other words, a stop-order triggers when the Last price touches the specified price. However note that buying or selling as a result of activation of a stop-order is always performed by the Bid and Ask prices.

Trailing Stop

Stop Loss is used for minimizing losses if the security price moves the wrong direction. Once a position becomes profitable, its Stop Loss can be manually moved to a break-even level. Trailing Stop automates this process. This tool is especially useful during a strong unidirectional price movement or when it is impossible to monitor the market continuously for some reason.

Trailing Stop is always associated with an open position or a pending order. It is executed in the trading platform rather than on the server like Stop Loss. To set a Trailing Stop, select "Trailing Stop" in the context menu of a position or an order in the "Trading" tab:

To enable Trailing Stop, open the context menu of a position and specify its value

Select a necessary value of a distance between the Stop Loss level and the current price.

For each open position or pending order only one Trailing Stop can be set.

Scheme of Trailing Stop Operation

  • When a pending order triggers, the trailing stop of the current position for the same symbol is overwritten with the trailing stop specified for the order.
  • If a deal made as a result of triggering of a pending order has the opposite direction to the current position for the symbol and has less or equal volume, then the trailing stop is not overwritten.

With each automatic modification of Stop Loss an entry is added to the journal.

To disable Trailing Stop, set the "None None" parameter in the control menu. The "Delete all Delete All" command disables Trailing Stops of all open positions and pending orders.

  • The Trailing Stop is executed in the trading platform rather than on the server (like Stop Loss or Take Profit). This is why it will not work, unlike the above orders, if the platform is off. In this case, only the Stop Loss level set by the Trailing Stop will trigger.
  • For one position, Trailing Stop cannot occur more than once every 10 seconds.
  • If there are several positions with Trailing Stop at a single symbol, the Trailing Stop is processed in a specific way. When a tick arrives, only a Trailing Stop of the last opened position is processed. If yet another tick arrives for the same symbol within 10 seconds, a Trailing Stop of the next position (opened second last) is processed. If the next tick arrives later than 10 seconds, a Trailing Stop of the position opened last is processed again.

State of Orders

After an order has been formed and sent to a trade server, it can undergo the following stages:

You can view the state of orders on the "History" tab in field "State". The state of pending orders that haven't triggered yet can be viewed on the "Trade" tab.

The order status shows the current order processing step

 

Types of Execution

Four order execution modes are available in the trading platform:

Execution mode for each security is defined by the brokerage company.

Fill Policy

In addition to common rules of order execution set by a broker, a trader can indicate additional conditions in the "Fill Policy" field of the order placing window:

Use of fill policies depending on the execution type can be shown as the following table:

Type of Execution/Fill Policy

Fill or Kill

Immediate or Cancel

Book or Cancel

Return

Instant Execution

+

Request Execution

+

Market Execution

+

+

+

Exchange Execution

+

+

+

+