AlgoTraderAlgoTrader Documentation
AlgoTrader can be built from its source either via command line or via IDE
AlgoTrader based trading strategies can be developed and started without building AlgoTrader first
To build AlgoTrader via command line please perform the following steps.
Download the algotrader
project zip file and unpack it in a directory of your choosing:
https://www.algotrader.com/downloads/latest-algotrader
user name and password will be provided when signing up for an AlgoTrader license
If you need an older AlgoTrader version, login to our maven repository
(https://repo.algotrader.com/nexus)
and click on Browse
on the left and select code-main
.
Then select the AlgoTrader version you want and download:
Go to the algotrader directory and execute the following maven command to build all maven projects
mvn clean install
When running the build process for the first time, this will take a few minutes since all maven dependencies have to be downloaded.
To build AlgoTrader from within IntelliJ IDEA please follow this process.
Download and unpack the code as per Section 2.1.1, “Code Installation”
On the main menu, select File / Open and navigate to the algotrader directory and press OK
Confirm you want to open the project, e.g. in a new Window.
Click on Project
on the top of the sidebar on the left and you
will see the algotrader
project in the package explorer, with the
sub-projects common
and core
.
To generate the code click on Maven
on the top of the
sidebar on the right to get the Maven menu, then press the
Execute Maven Goal
button at the top right and select
(double-click) Maven install
. This will download the
missing libraries and compile AltoTrader
Download and unpack the code as per Section 2.1.1, “Code Installation”, using the html5-ui project link instead of the algotrader project https://www.algotrader.com/downloads/latest-html5.
Execute the following maven command to build UI through maven
mvn clean install -DALGOTRADER_NPM_NEXUS_AUTH=auth_token
auth_token
is a username:password
for
AlgoTrader Nexus repository transformed by base64 function. That transformation
can for example be done by using Window Powershell:
$Bytes = [System.Text.Encoding]::UTF8.GetBytes("username:password") [Convert]::ToBase64String($Bytes)