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=2.0.1 \
-DgroupId=tech.cassandre.trading.strategy \
-DartifactId=ta4j-strategy \
-Dversion=1.0-SNAPSHOT \
-Dpackage=tech.cassandre.trading.strategy

Maven Central

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

ta4j-strategy/
├── pom.xml
└── src
├── main
│   ├── java
│   │   └── tech
│   │   └── cassandre
│   │   └── trading
│   │   └── strategy
│   │   ├── Application.java
│   │   ├── package-info.java
│   │   └── SimpleTa4jStrategy.java
│   └── resources
│   └── application.properties
└── test
├── java
│   └── tech
│   └── cassandre
│   └── trading
│   └── strategy
│   └── SimpleTa4jStrategyTest.java
└── resources
└── tickers-btc-usdt.tsv