Autotrading Control Center

The Autotrading Control Center window

An agent is a trading script instance linked to your accounts.

The number of agents created on the basis of one script is unlimited.

The "Autotrading Control Center" window displays the general status of agents, settings, current trading results and tools for starting and stopping agents.

If there are several instruments in the script, only one instrument is displayed in the "Ticker" column, according to the first source in the script (the Source block that was added to the editor first).

You can open this window from the Main Menu | Trading | Autotrading Control Center .

You can apply filters in the table of the Autotrading Control Center window.

Hidden table sorting features: - Sort one column, for example, Ticker. - When sorting the second column, for example, Agent, hold down the Shift button.

Commands

Context Menu

To open the context menu, right-click on the workspace of the "Autotrading Control Center" window.

Properties

"Autotrading Control Center" window properties can be opened from the context menu of the window or using the "Properties" button located in the right corner of the window title bar.

Attention! The "Font settings" and "Background color" settings can be returned to the default ones using the "Select default settings" button located to the right of the drop-down menu of this properties. Applying custom settings is indicated by a red indicator on the "Select default settings" button.

Appearance

Columns

Agent settings

You can create a new agent by clicking on the "Add agent" button.

Clicking on the button will open the window for creating and configuring the agent. Two tabs will be available: Common and Trade

Common agent settings

In the Common menu, you can select the required script from the list to connect to the agent, specify the source of trade data, and also specify the limit management type.

After creating an agent, you can open this menu by clicking on the list icon in the Agent column

Agent trade settings

The agent Trade settings, as well as the common settings, are available when creating a new agent, the Trade settings window can also be opened by clicking on the gear icon in the Agent column.

Check out the full description of trading settings in the articles:

Agent Trade Settings - Agent Execution

Agent Trading Settings - Placing Orders

Agent Trade Settings - Events

Shortcut buttons

Chart

Opens a Сhart in a separate window with the same instrument and with the same Period as in the agent.

Agent

Shows the Agent chart, Log, Results, Trades, Parameters and Income tabs.

Agent chart

This tab displays the agent's schedule and control panel (if it exists).

Results

Shows the results of the agent. This tab becomes available after starting the agent.

Parameters

The tab is designed to work with the saved values and results of optimization parameters.

Saved parameter sets

List of optimization parameters and its’ values

Results table

Table of results of the optimization parameters.

Commands

Agent trades

The tab shows a table of trades.

Trades statuses:

  • Green - normal state of agent operation;

  • Yellow - there are not submitted/placed orders;

  • Red - there are mistakes in order execution.

Log

Tab showing agent event log.

Profit

Tab showing agent income.

Partial position closing and opening

Partial position closing

If the "Wait for exit" parameter is activated, then the volume of the position closing is added in the amount of the number of candles specified in the parameter. Then the position is closed by the market in the amount of candles specified in the "Automated closing (bars)" parameter.

The number of bars in "Automated closing (bars)" must be more than in the "Wait for exit" parameter. If the value in the "Automated closing (bars)" parameter is less than or equal to "Wait for exit", then the automated closing will not work.

Partial position opening

If the "Wait for entry" parameter is activated, then the volume of the position is added in the amount of the number of candles specified in the parameter. Then the market position is added in the amount of the number of candles specified in the "Automated opening (bars)" parameter.

The number of bars in "Automated opening (bars)" must be more than in "Wait for entry". If the value in the "Automated opening (bars)" parameter is less than or equal to "Wait for entry", then the automated opening will not work.

Agents window statistics

Virtual positions are taken into account in agent management.

Agent management has its own statistics, and there is a possibility of error in it. This is due to the orders for which no response from the broker was received and to the calculation algorithm described below.

It is not yet clear how to eliminate errors. There were suggestions that it is worth removing this information altogether. Modification of the window is required. At the moment, all instruments within one agent are not taken into account and are not shown.

Now in agent management, statistics are calculated as follows: The script breaks all trades into pairs, if there is no pair, then the trades are thrown away. For example, you have 2 lots in a long position, but if you look at the "Trades" table in the agent, then there is no such trade(s). I.e, the script does not actually maintain the position.

In agent management, the generalized position for the script is shown. That is, pressing the "Forget errors" button, skipping an entry, skipping an exit, or automated opening / closing can throw a trade without a pair from statistics.

Agent management statistics do not affect the agent's operation, no special actions are required.

You cannot clear the agent management statistics, you can only start an agent with a new trade name.

Therefore, the statistics of agent management cannot be trusted yet.

Last updated