Running Algo bots on Algo server

Running Algo bots on Algo server

To launch a bot, you need to add an account to the Algo server and upload a package with a bot, which should be launched.
To add a package, select Upload Package command from the Explorer > Algo Server context menu. Then, select the Add Bot Instance command and click Upload Package.

To launch a bot on Algo Server in TickTrader terminal, follow the next steps:
  1. After the Algo Server installation is completed, AlgoServer Configurator should start (if the corresponding checkbox is selected on the last installation page).

    Otherwise, run TickTrader Win terminal. Select Help > Algo Server Configurator in the terminal menu.


  2.  In Algo Server Configurator there are 3 types of logins:

    • Admin. A user will have the full rights to modify Algo Server state. Available both in a browser and Algo terminal.
    • Viewer. A user will have a read-only access to the Also Server state. A viewer can download logs and see packages, accounts, logs, bots, statuses; but cannot see Algo data and downloaded packages. Available only in Algo Terminal.
    • Dealer. A user will have the same access as a Viewer but can start and stop bots. Available only in Algo Terminal.
  3. Start Server clicking the 'arrow' button.
    The TT Algo Server is stopped, the connection indicator is red (before the Server starts).

  4. Once the Server starts, the status will change to 'Running'; the connection indicator is green.

  5. Check that a connection to the Algo Server has been added in the Explorer > Algo Server window of the terminal.
    If there is no connection, please add it:

    • In the TickTrader Desktop Terminal go to the Explorer > Algo Servers tab.
    • Right-click Algo Servers and select the Add Algo Server Connection command from the context menu.
    • Complete the fields in the' Add Algo Server Connection' window and click Connect:
      • Server Name: Name of the server where the Algo Server service machine is installed.
      • Server Address: Address of the server where the Algo Server service machine is installed.
        If the Algo server is installed on the same computer as the win terminal, then enter localhost in the 'Server Address' field.
      • Port, Login, Password: Fill in the parameters as they were set in the AlgoServer Configurator window.


    • If the correct data has been entered, a connection to the Algo Server will occur (the color indicator will be green).
  6. Right-click the previously added Algo server to view the whole context menu. The following options and commands are available:

    • Connect to Algo Server: Select the command to connect to the Algo server.
    • Disconnect from Algo Server: The command closes the current connection to the Algo server.
    • Stop reconnecting to Algo Server: The command stops retrying to connect to the Algo server.
    • Change Algo Server Connection: The command allows editing an existing connection.
    • Remove Algo Server Connection: The command removes the added Algo server.
    • Add Account: The command allows to add an account to the selected Algo server.
    • Add Bot Instance: The command allows a user to add a new Bot Instance to the Algo server. 
    • Manage Bot Files: The command allows to manage logs and configs on the remote server.
    • Upload Package: The selected Algo package will be uploaded from the folder where the Terminal is installed.
    • Download Package: The selected Algo package will be downloaded from the remote Algo server to your PC.
    • Manage Packages: Use the command to manage Algo packages.
  7. Upload a package with Algo bots (.ttalgo file) to the Algo Server by calling the Upload Package command from the context menu of this server:

    • Algo Package: You can upload packages from the folder where the Terminal is installed.
    • Algo Server: The name of the Algo Server service.
    • File Name: The name of the file to be uploaded. If the package with that name already exists the Copy, Copy1, Copy2, etc. will be added to the file name.
  8. Add an account for this Algo Server. Add those accounts for which you're going to launch trading bots. To add an account to the Algo Server, do as follows:

    • In the Explorer > Algo Servers right-click an available Algo server and select the Add Account command.
    • Complete the fields in the 'Add Account' window:
      • Server Address: Server, to which you’re going to connect.
      • Login: Account number.
      • Display Name: An account name to be displayed in the Algo Servers section.
      • Password: Account password.

    • Click OK. After that the account will be available in the Algo Servers section.
  9. In the Explorer > Algo Servers right-click the Algo server and select the Add Bot Instance command to launch the bot. On the 'Common' tab fill in the fields:

    • Server Name: Contains bot services names associated with the Terminal (Local).
    • Account: Account to be selected for the bot instance run. The list is formed based on Algo Server selection.
    • Algo Bot: Combo box that contains the bots from the packages loaded to the selected Algo server.
    • Instance Id: Bot Instance name. 

     Click OK.


    You can change the bot's run settings and parameters on the 'Inputs' tab. Click OK to save your changes.

  10. To perform the following actions, right-click the added bot:

    • Start/Stop: The command allows to start or stop the bot. You can also start/stop the bot in the 'Status' window.
    • Status: In the 'Status' window you can see the bot status (Running/Stopped), bot info, logs and configure the bot settings.
    • Open Bot Settings: The window is similar to the 'Add Bot Instance' window.
    • Add Bot Instance: The command allows a user to add a new Bot Instance to the Algo server.
    • Remove BotThe command allows removing the bot from the Terminal and Algo.
    • Manage Bot Files: The command allows to manage logs and configs on the remote server.
    • Related Articles

    • Examples of TickTrader Algo bots

      Examples that will help you write your own bots can be found at: https://github.com/SoftFx/AlgoBots. This repository contains public indicators and bots for the Bot API: ImportAccountStateBot. This bot helps to integrate bots written on another ...
    • TickTrader Algo API

      Users can create their own trade bots and indicators using TickTrader.Algo.Api. To create a custom trade bot or indicator, please follow the next steps: Install Visual Studio Install TT Algo Visual Studio Extension Follow the instructions how to ...
    • MQL4 to TickTrader Algo Converter

      If you have Expert Advisors or Indicators written in MQL4 (for working in MetaTrader 4), then you can use a free converter to convert them into TickTrader Algo bots and indicators. The converter is located at: ...
    • Creating a TickTrader Algo bot

      To create a TickTrader Algo bot in Visual Studio, please follow these steps: Open the installed Visual Studio 2022 application. Create a new project by selecting the following command in the Visual Studio menu: File > New > Poject. In the window you ...
    • TT Algo Visual Studio Extension

      To simplify the development of Algo bots and indicators, we recommend that you install the extension for Visual Studio. To install/update TT Algo Visual Studio extension, follow the next steps: Select Tools > Install or Update TT Algo Visual Studio ...