# Orders & Positions history

### **Orders history**

Orders history panel shows all orders sent during the backtesting. History range can be set in Backtesting setup -> Range.

![](/files/-LiJ8Lx9Mx6oMr7z7VQ_)

The following columns are available in the panel:

* Account – an account's name of a user who created an order;
* Symbol – a symbol for which an order was created;
* Side – a trade type (Buy or Sell);
* Type – an order type;
* Price – an order price at which a trade took place;
* Quantity – a filled amount of an order, in lots or in currency units, depending on what is selected in the settings dialog box;
* Date/Time – date and time of an order placement;
* Order ID – an order's unique identifier. If a position is opened based on an order, this position will have the same number;
* Validity – allows specifying order validity by selecting among the following time frames: Day, GTC, IOC, GTD, FOK, GTS;
* Stop price – stop price for a special stop order;
* Bought

&#x20;      \- In case of Forex:

if 'Side = Buy', then this column shows the value of 'Price \* Lot size \* Qty.' in base currency;

if 'Side = Sell', then this column shows the value of 'Price \* Lot size \* Qty.' in quoting currency.

&#x20;      \- In case of Futures, Futures CFD, Options

with 'Quoting type=Tick cost/Tick size':

if 'Side = Buy', then this column shows the value of 'Qty';

if 'Side = Sell', then this column shows the value of 'Qty \* Tick cost/Tick size \* Price'.

with 'Quoting type=Lot size':

if 'Side = Buy', then this column shows the value of 'Qty';

if 'Side = Sell', then this column shows the value of 'Qty \* Lot size \* Price'.

&#x20;      \- In other cases:

if 'Side = Buy', then this column shows the value of 'Qty. \* Lot size' – amount of bought assets (contracts, equities);

if 'Side = Sell', then this column shows the value of 'Price \* Lot size \* Qty.' in quoting currency.

* Sold

&#x20;      \- In case of Forex:

if 'Side = Sell', then this column shows the value of 'Price \* Lot size \* Qty.' in base currency;

if 'Side = Buy', then this column shows the value of 'Price \* Lot size \* Qty.' in quoting currency.

&#x20;      \- In case of Futures, Futures CFD, Options

with 'Quoting type=Tick cost/Tick size':

if 'Side = Buy', then this column shows the value of 'Qty\* Tick cost/Tick size \* Price';

if 'Side = Sell', then this column shows the value of 'Qty'.

with 'Quoting type=Lot size':

if 'Side = Buy', then this column shows the value of 'Qty \* Lot size \* Price';

if 'Side = Sell', then this column shows the value of 'Qty' .

&#x20;      \- In other cases:

if 'Side = Buy', then this column shows the value of 'Price \* Lot size \* Qty.' in quoting currency;

if 'Side = Sell', then this column shows the value of 'Qty. \* Lot size' – amount of sold assets (contracts, equities).

* Strike price – price of an option contract performance;
* Expiry date – a contract expiration date;
* Trading exchange – indicates whether the instrument has a stock exchange or off-exchange type.

Customer can also use standard functions from context menu of the panel:

* Clear – allows deleting all orders from the panel;
* Search – allows to show/hide a Search lookup in the panel;
* Export – allows to export table to CSV or Excel format;
* Group by – allows to group orders by symbol, account, side, event, type, date/time, bought, sold.

### **Positions history**

Positions history panel shows positions which were opened for a certain period during the backtesting.&#x20;

![](/files/-LiJ955OC0CpG2nf94ZZ)

The following columns are available in the panel:

* Account – login name of an account that opened a position;
* Symbol – a traded symbol;
* Position ID – a unique number that the trading system assigns to each position;
* Open price – price at which a position was opened;
* Quantity – amount of a position, either in lots or in units, depending on what is selected in the Settings dialog box;
* Gross P/L – profit/loss in account currency, calculated on base of price difference:

&#x20;          For Long position: Gross P/L = Qty. \* Lot size \* (Current price - Open price)

&#x20;          For Short position: Gross P/L = Qty. \* Lot size \* (Open price - Current price)

&#x20;          P/L for Spreadbet instrument type is calculated depending on price change in ticks:

&#x20;          For Long position: Gross P/L = Qty. \* Bet size \* Cross price \* ((Current price - Open price)/Tick size))

&#x20;          For Short position: Gross P/L = Qty. \* Bet size \* Cross price \* ((Open price - Current price)/Tick size))

&#x20;          Cross price is applied in the case when account currency doesn't correspond to the Betting currency.

* Open time – time when position was opened;
* Open date – date when position was opened;
* Close time – time when position was closed;
* Close date – date when position was closed;
* Operation – type of trade (Buy or Sell).

For this panel the same functions as for Orders history are available in context menu.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://guide.traderevolution.com/project/evocode/backtesting-panel/orders-and-position-history.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
