Move orders and deals to an agent
Button "Move trade" and "Move order"
The "Move trade" button in the "My trades" table and the "Move order" button in the "My orders" table have the same functionality. You can transfer an Order only with those transactions that belong to this order. It is impossible to transfer only one deal from one order. Because trades are tied to the exchange order ID.
To transfer an order from one agent to another, both agents must be set to the same Instrument, the same Account and the same Login!
If the connection with the server was interrupted while the program was running, and the agent missed the signal, then use the Commands Manager (Trading - Commands Manager) to execute the signal.
If you have completed requests not from the Command Manager, the agent in TSLab will not know anything about them (for example, through the broker's web interface). In this case, you can manually transfer orders in the "My orders" table using the "Move order" button. Transferring an order to an agent's signal (so that the agent accepts the order as his own) is possible only when the agent is OFF. (does not apply to the Option Board!)
How to move an order
Procedure:
Disable an agent in the Autotrading Control Center table;
In the My orders table, select the request that needs to be linked to the agent;
Click the Move order button;
Select the agent to which the request will be linked and specify the signal. The name of the signal is written manually. The input field for the signal name is case sensitive.
Start agent. If the order is not visible in the agent on the chart, then perform the same action for the Trades of this order in the My trades table
Moving multiple orders to close one position
If several orders for closing one position were manually executed, then it will not be possible to combine them into one order using the TSLab functionality. In this case, all these completed requests cannot be transferred to the agent, so there are two ways to do it.
The first method. Restarting the agent with a new trade name.
Restart the agent with a new trade name. The trade name in the agent is set in the agent settings. In the main menu of the program, select Trading - Autotrading Control Center - Common agent settings - Trading name
![](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%252F7oFbDzks8yPI09qcmxF1%252Ftsl_agentNewName.png%3Falt%3Dmedia%26token%3De2ff2f01-49d9-4dec-ba95-7f1cb17ea7c9&width=768&dpr=4&quality=100&sign=f00a408&sv=1)
This will be a new launch of the agent, from scratch. The old agent statistics will be available by the old trade name.
The second method. Forget errors
Click the Forget errors button in Autotrading Control Center, but that will only help keep the agent up and running for the rest of the day. Why just until the end of the day, if you can trade more? The problem is that when the button is clicked, the statistics in the Autotrading Control Center table are lost. The Forget Errors button is active only for a running 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%252FHsq9fJKXU37prNn8eM9r%252Ftsl_agentForgetError.png%3Falt%3Dmedia%26token%3D0b0c4fdb-1c42-4020-bc7c-4f76e9d282fe&width=768&dpr=4&quality=100&sign=24fefa88&sv=1)
Read also about the steps on how to link deals to agents from the Orders manager: Linking a manually completed order to an agent
Last updated