Script Container
Last updated
Last updated
A kind of script is a script container. The script container is an encrypted script. The container may have a limited expiration date. To use a container, you need a key provided by the container author.
Attention! The procedure for launching a container of scripts for trading is identical to working with scripts. You need to create a container-based agent, configure it, and run it.
A container can be created by selecting one script and clicking the "Create Container" button. You cannot create one container from a group of scripts and indicators.
When creating a script container, the author can limit users in the duration of the container. You can also limit the number of copies of the container, introduce a limit on funds in money, contracts and lots. The container author can allow or forbid changing trading settings and applying optimization. The author can personalize the use of the container by entering the user's account key in the "Account Key" field.
The TSLab program automatically creates a container key, which can be saved to a file with the "key" extension, if the author activates the corresponding option in the "Create Script Container" dialog box.
The container is loaded using the "Load Container" dialog box, which can be opened by clicking the "Load Container" button. In this dialog box, you must enter the container key and specify the path to the container. All containers have the ".tscont" extension. Then, by clicking "Next", you can proceed to the download.
If the container key was sent to you as a ".key" file, place this file in a folder with the container. The TSLab program will automatically read the data from the file and substitute the key in the container loading wizard. The name of the file with the key must be the same as the name of the container file.
You can review the container parameters at any time by clicking the "Container Parameters" button.
The script container can also be replaced. To do this, open the container replacement tab by clicking the "Replace container" button, enter the container key, specify the path to the container and click "Next".
If you need to create a container linked to a specific customer account, you can use the following instructions.
Note! After creating a container linked to an account, no one except the account owner (including the author of the container) will be able to use this container. The unique account key is designed to identify a specific account within the TSLab system, for example, to limit the execution of a script on only one account.
Ask the customer to provide you with their account key. To do this, go to the Accounts window (Trading - Accounts). Select the account you are interested in and in the Key column click the Copy to clipboard icon. Ask the user to give you the saved key.
On the container author's computer, open the Scripts window. Select the script you are interested in and click the Create Container button.
In the New Script Container Wizard, select Account Key. Insert the user's account key into the activated field. Fill in the rest of the fields as you wish.
Click the Next button to continue.
At the next stage, the program will generate a unique key for the container, which will need to be passed to the user in order for him to be able to open the container in the program.
You can save the key to a text file by selecting the appropriate option. The key file will be saved in the same directory as the container.
To finish, click on the Done button. Two files will appear in the selected folder. The container itself and the key to it.
Give these two files to the person who provided you with the Account Key. Only this client can use this container with this encryption key. No one else will be able to use this particular container, not even you.
Save the container file on your computer. All container files have the ".tscont" extension.
In the TSLab program, open the Scripts window (Lab - Scripts). Click the Load Container button. Specify the path to the files. In the Key field, paste the key to the container that the author gave you.
If the container key was sent to you as a ".key" file, place this file in a folder with the container. The TSLab program will automatically read the data from the file and substitute the key in the container loading wizard. The name of the file with the key must be the same as the name of the container file.
To finish loading the script from the container, click the Next button. The script will be added to the list of scripts in your workspace in the Scripts window.