Create a new project in Visual Studio using Empty Trade Bot template.
Set the name of your Trade Bot Project (e.g. MyTradeBotTest) and click Create.
In the Solution Explorer section, you’ll see the following structure:
If you want to use the latest version of API, check for updates in NuGet explorer, select Manage NuGet Packages for Solution...
After creating the Trade Bot project you will get the following template:
Bots have the following methods:
Let's look at the example of a trade bot that you can create using Sample Trade Bot template:
Build your project selecting Build Solution command in the Solution Explorer context menu.
Upload a package with the created bot to Ticktrader Algo Servers: Explorer > Algo Servers > Upload Package.
Select the Add Bot Instance command in the context menu: select server name (local) and your trading account from the list, select the downloaded Algo Bot and enter Instance Id (optional). Click OK.
Right-click the added bot and select the Start Bot command to run it.
Set the name of the project (e.g. MyIndicatorTest) and click Create.
In the Solution Explorer section, you’ll see the following structure:
If you want to use the latest version of API, check for updates in NuGet explorer, select Manage NuGet Packages for Solution...
After creating the Indicator project you will get the following template:
There are the following methods:
Let's look at the example of an indicator that you can create using Sample Indicator template:
This indicator is the simplest trend indicator based on the average price value for a selected period of time (moving average).
Build your project selecting Build Solution command in the Solution Explorer context menu.
The indicator package should be placed in Algo Packages folder that can be opened by selecting Tools > Open Algo Packages folder.
The indicator can be added to a chart from its context menu. Right-click the chart area and select Load Indicator > My Indicators.
After the indicator is loaded you can view and configure its settings by using Indicators List > Edit Indicator context menu item.