Agent trade settings
Last updated
Last updated
You can create a new agent by clicking on the "Add agent" button in the Autotrading Control Center window. You can access the Autotrading Control Center window by selecting the tab of the main menu Trade -> Autotrading Control Center
To open the window for creating and configuring an agent, click the Add agent button. You will have access to two tabs: Common and Trade
Open the Trade tab.
After the agent is created, you can access the Trade settings by clicking on the gear icon in the Agent column
After the agent is created, you can access the Trade settings by clicking on the gear icon in the Agent column
Q:
There are 2 lots in a limit order for position closing. At the first recalculation, only 1 lot was closed. If there is a signal, will the order for the other 1 lot remain or be re-placed?
A:
The order will remain at the same price as long as the Wait for exit parameter works.
To implement re-placement of a limit order to close a position, you can use the Quantity and Updatable value blocks, together with the "Ignore exit signal not on latest bar" setting.
If the Automated closing parameter is set, the remaining position will be closed automatically according to the market.
If the Wait for exit parameter is less than the Automated closing parameter, the rest of the position will be closed as soon as the Wait for exit parameter stops. The same applies to the "Partial opening" of lots per position, in accordance with the names of the settings. To open a position, the "Keep virtual position active. Maximum bars" setting should be enabled.
Q:
Neither the Wait for entry parameter nor the Automated opening parameter is set, and the "Keep virtual position active. Maximum bars" parameter is set to 0. A limit order for 10 lots was placed, and 5 was executed. A signal for 1 bar appeared. How will the program behave?
A:
The program will remove the remaining lots and without any messages will operate with 5 lots. The algorithm will continue to execute with the open number of lots.
Q:
What if my entry point has gone beyond history? The history of the last two days is loading, but the login was 4 days ago. How will the script or agent behave in this case? Will this deal be closed in terms described in the script or will the calculation be carried out incorrectly?
A:
If there is no entry bar, then the data of this bar is accordingly unknown. It is necessary to set such a number of bars so that the last entry to the position is always visible in the history.
The calculation MAY be carried out incorrectly.
Q:
The script makes several consecutive entries, some of which go beyond the history. In this case, how will the positions that have gone beyond history be closed?
A:
MAY close incorrectly. Signals can be triggered that would not have been triggered if the entire history had been loaded. More depends on the settings and on the calculated values that calculate the exit from the position. For example, if the "Ignore positions outside history" parameter is enabled in the trade settings.
Recommendation: Place such a number of bars so that not closed position entries are on their own bars and do not move to the first bar of the loaded history.