Create the project

Introduction.

We are going to use ta4j, an open-source Java library for technical analysis. It provides the basic components for the creation, evaluation, and execution of trading strategies.

Create your project.

Type this command :

mvn -B archetype:generate -DarchetypeGroupId=tech.cassandre.trading.bot \
-DarchetypeArtifactId=cassandre-trading-bot-spring-boot-starter-basic-ta4j-archetype \
-DarchetypeVersion=3.0.0 \
-DgroupId=com.example \
-DartifactId=ta4j-strategy \
-Dversion=1.0-SNAPSHOT \
-Dpackage=com.example

Maven Central

The created project is a spring boot project with the following structure :

ta4j-strategy/
├── pom.xml
└── src
├── main
│   ├── java
│   │   └── com
│   │   └── example
│   │   ├── Application.java
│   │   ├── package-info.java
│   │   └── SimpleTa4jStrategy.java
│   └── resources
│   └── application.properties
└── test
├── java
│   └── com
│   └── example
│   └── SimpleTa4jStrategyTest.java
└── resources
├── tickers-btc-usdt.tsv
├── user-main.tsv
└── user-trade.tsv