Autotrading Control Center window
Autotrading Control Center window
Agent is a trading copy of the script linked to your accounts. The number of agents that can be created based on one script is not limited.
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, which was added to the editor first).
The Autotrading Control Center window can be opened by selecting the Main menu item: Trading - Autotrading Control Center.
![](https://doc.tslab.pro/~gitbook/image?url=https%3A%2F%2F45805883-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-MaCiHiFV0s-5gqtvIid-1703796690%252Fuploads%252Fu2p2AXF8Wk1O3ChoK8CV%252Ftsl_agentWindow.png%3Falt%3Dmedia%26token%3D6980d061-599b-4ccc-aae0-82a5c97c34a8&width=768&dpr=4&quality=100&sign=c17603b5&sv=1)
"Autotrading Control Center" window commands
![](https://doc.tslab.pro/~gitbook/image?url=https%3A%2F%2F45805883-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-MaCiHiFV0s-5gqtvIid-1703796690%252Fuploads%252FbapeY1pNjYQFldGw5qwP%252Ftsl_agentBtn.png%3Falt%3Dmedia%26token%3D6f82a7ad-6dd6-4bd9-8280-ca32883fc3c3&width=768&dpr=4&quality=100&sign=22191528&sv=1)
Button | Description |
---|---|
Add agent | Opens the window for adding and configuring an agent. |
Delete agents | Removes an agent from the list. If the agent is active, has open positions, deletion is impossible. |
Forget errors | The agent stops broadcasting messages about current errors. Read the article Forget errors of the Agent |
Start all agents | Starts all agents |
Stop all agents | Stops all agents. |
Start selected agents | Starts the selected agents |
Stop selected agents | Stops the selected agents |
Edit script | Opens in the editor the script on which the selected agent is based. Saving the edited script will restart this agent. |
"Autotrading Control Center" window columns
Column | Description |
---|---|
Agent | Agent name. If the agent has a trade name, it is displayed in brackets. For your convenience, in the field displaying the name of the agent, there are buttons "Agent" (monitor), "Common settings" (list) and "Trading settings" (gear). |
Ticker | Short name of the instrument. For your convenience, in the field displaying the ticker, there is a button "Show chart" made in the form of a chart. |
Script | Agent related script |
Account | Broker account name. |
TSCloud | Broadcast agent to TSCloud service |
State | The current state of the agent (Started/Stopped), toggled by pressing the button. |
Volume of limit | Indication of the amount of funds available for trading by the agent. |
Slippage % | Allowable slip value set as a percentage. |
Slippage | Allowable slip value set in absolute terms. |
Active | Indication of the possibility of trading (trading account is active). |
Connected | Indication of connection to the trade server. |
Positions (lots) | The current position on the script-instrument link in lots. |
Positions (money) | The current position on the link agent - instrument is in the money. |
Currency | Indication of the currency of the account connected to the agent |
NP/L | Unrealized profit / loss. |
P/L | Profit / Loss. |
P/L (day) | Profit / loss daily. |
Assessed price | The average price of transactions of the current open position for the instrument. |
Balance price | The price assigned to shares for accounting purposes. |
Current | The current price of the instrument broadcast by the broker. |
Status | Status of the trading session for the instrument. |
Long positions (lots) | The number (in lots) of long positions managed by the agent at the moment. |
Short positions (lots) | The number (in lots) of short positions managed by the agent at the moment. |
Commission | The commission paid by you on a set of transactions in the "instrument - agent" link. |
Column filters in the "Autotrading Control Center" window
The data in the "Autotrading Control Center" table can be sorted using the built-in filtering system. You can access the filters by clicking on the special button located in the header of the table.
![](https://doc.tslab.pro/~gitbook/image?url=https%3A%2F%2F45805883-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-MaCiHiFV0s-5gqtvIid-1703796690%252Fuploads%252FskKetcg2Fmirm6J4SA0C%252Ftsl_agentFilter.png%3Falt%3Dmedia%26token%3Dd7f296d9-928e-4c35-9d61-fd11fd2838a2&width=768&dpr=4&quality=100&sign=5c714ab5&sv=1)
Context menu of the "Autotrading Control Center" window
The context menu is available by pressing the right mouse button in the workspace of the "Autotrading Control Center" window.
Menu item | Description |
---|---|
Properties | Opens the properties of the "Autotrading Control Center" window. |
Show at | Moves the window "Autotrading Control Center" to one of the existing sheets. |
Clone window | Creates a copy of the "Autotrading Control Center" window. |
"Autotrading Control Center" window properties
The "Autotrading Control Center" window properties can be opened:
from the context menu of the "Autotrading Control Center" window;
using the "Properties" button located on the window's title bar;
by selecting the Main menu item: Edit - Window Properties
Attention! The settings of the "Font Settings" and "Background row color" properties that you have chosen can be returned to their original settings using the "Select Default Settings" button located to the right of the drop-down menu for this property. The application of custom settings is indicated by a red indicator on the "Select Default Settings" button.
![](https://doc.tslab.pro/~gitbook/image?url=https%3A%2F%2F45805883-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-MaCiHiFV0s-5gqtvIid-1703796690%252Fuploads%252FnAG4tSCatsNKUdKsxtOR%252Ftsl_agentsFont.png%3Falt%3Dmedia%26token%3D3c4854fd-0f8f-4eab-85b9-cb6ed9c1a8a0&width=768&dpr=4&quality=100&sign=fc740440&sv=1)
Appearance
Menu item | Description |
---|---|
Use alternating row colors | Highlighting every second line with an alternative color. |
Background row colors | Background color of table rows. |
Font settings | Select font type and size. |
Columns caption | Shows/Hides column headers. |
Quick access buttons
![](https://doc.tslab.pro/~gitbook/image?url=https%3A%2F%2F45805883-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-MaCiHiFV0s-5gqtvIid-1703796690%252Fuploads%252FF1uG1Sk20UtBs330CaqE%252Ftsl_agentsQuickBTNs.png%3Falt%3Dmedia%26token%3De93c75c1-5fb3-4d21-8587-fddef0eb1a80&width=768&dpr=4&quality=100&sign=b1ce2217&sv=1)
Chart
![](https://doc.tslab.pro/~gitbook/image?url=https%3A%2F%2F45805883-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-MaCiHiFV0s-5gqtvIid-1703796690%252Fuploads%252FAivV6ProCwI2xVon7Ddj%252Ftsl_agentsChart.png%3Falt%3Dmedia%26token%3D447e750e-8d0e-40bf-be1d-cc7ef4a5cb5f&width=768&dpr=4&quality=100&sign=78c80622&sv=1)
Opens in a separate window the Chart of the same instrument, with the same Period as in the agent.
Agent
![](https://doc.tslab.pro/~gitbook/image?url=https%3A%2F%2F45805883-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-MaCiHiFV0s-5gqtvIid-1703796690%252Fuploads%252FzeivcyzDLA5d6MDx90WR%252Ftsl_agentsAgent.png%3Falt%3Dmedia%26token%3D7600abe0-923d-41ee-aa74-d0c60a326a21&width=768&dpr=4&quality=100&sign=d74144a8&sv=1)
Clicking the button opens the Agent window. The tab of the Agent window has a graphic designation in the form of the letter "A" and a name corresponding to the name of the agent.
In the Agent window, you can access the Agent Chart, Log, Results, Trades, Parameters and Profit tabs.
![](https://doc.tslab.pro/~gitbook/image?url=https%3A%2F%2F45805883-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-MaCiHiFV0s-5gqtvIid-1703796690%252Fuploads%252FYFjHF7JDt56dMcNnR9oL%252Ftsl_agentsAgentWindow.png%3Falt%3Dmedia%26token%3D00233103-1995-4139-b90a-6d6d51c8be31&width=768&dpr=4&quality=100&sign=4f725d8b&sv=1)
Common agent settings
In the "Common" menu, you can select the required script from the list to connect it to the agent, specify the source of trading data, and also specify the type of limit management.
In order to make changes to the general settings of an agent, you must stop the agent itself. Make sure the button in the State column is in the disabled (gray) state
![](https://doc.tslab.pro/~gitbook/image?url=https%3A%2F%2F45805883-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-MaCiHiFV0s-5gqtvIid-1703796690%252Fuploads%252FWjYGApDasRkfPdYPJvZQ%252Ftsl_agentsCommonSettings.png%3Falt%3Dmedia%26token%3Dbe1cea45-3e86-4635-916a-f595c2e19ac0&width=768&dpr=4&quality=100&sign=a49d4b61&sv=1)
Agent trading settings
The agent's Trading settings as well as the Common settings are available when creating a new agent. The Trade Settings window can be opened by clicking on the gear icon in the Agent column
![](https://doc.tslab.pro/~gitbook/image?url=https%3A%2F%2F45805883-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-MaCiHiFV0s-5gqtvIid-1703796690%252Fuploads%252FrGjuxm1A3lsBOkF1WecP%252Ftsl_agentsTradeSettings.png%3Falt%3Dmedia%26token%3D7eedde98-17d2-45d5-be88-db1f120bd4d8&width=768&dpr=4&quality=100&sign=3efa5590&sv=1)
Agent State
The button in the State column is responsible for starting and stopping the agent. When a provider is enabled, the button turns green. In the disabled state, the color of the button is gray.
The agent can be started even if there is no connection to the data provider. TSLab remembers the state of the agent when the program is turned off
![](https://doc.tslab.pro/~gitbook/image?url=https%3A%2F%2F45805883-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-MaCiHiFV0s-5gqtvIid-1703796690%252Fuploads%252F9mpvGmm6YDNlKf7mtOWW%252Ftsl_agentsState.png%3Falt%3Dmedia%26token%3D96d9411b-3efe-4d05-b94a-e00ea6968c9b&width=768&dpr=4&quality=100&sign=e6549781&sv=1)
TSCloud
The TSCloud button allows you to broadcast or receive data from the TSCloud cloud service. To work with the service, you must have an account set up in the TSCloud system, as well as a connection to the service in the program itself. Connection in the program is carried out in the corresponding section of the Main menu of the program.
![](https://doc.tslab.pro/~gitbook/image?url=https%3A%2F%2F45805883-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-MaCiHiFV0s-5gqtvIid-1703796690%252Fuploads%252FbxTIUPbDlaHfpenDU71j%252Ftsl_agentsTSChannel.png%3Falt%3Dmedia%26token%3D9bf49b33-fbc6-4843-9e0f-b8e5058c8563&width=768&dpr=4&quality=100&sign=98fc620d&sv=1)
Last updated