Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.ta4j:ta4j:0.17'
}
dependencies {
implementation("com.github.ta4j:ta4j:0.17")
}
<dependency>
<groupId>com.github.ta4j</groupId>
<artifactId>ta4j</artifactId>
<version>0.17</version>
</dependency>
libraryDependencies += "com.github.ta4j" % "ta4j" % "0.17"
:dependencies [[com.github.ta4j/ta4j "0.17"]]
Technical Analysis For Java
Ta4j is an open source Java library for technical analysis. It provides the basic components for creation, evaluation and execution of trading strategies.
Ta4j is available on Maven Central. You just have to add the following dependency in your pom.xml
file.
<dependency>
<groupId>org.ta4j</groupId>
<artifactId>ta4j-core</artifactId>
<version>0.17</version>
</dependency>
For snapshots, add the following repository to your pom.xml
file.
<repository>
<id>sonatype snapshots</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</repository>
The current snapshot version is 0.18-SNAPSHOT
from the develop branch.
<dependency>
<groupId>org.ta4j</groupId>
<artifactId>ta4j-core</artifactId>
<version>0.18-SNAPSHOT</version>
</dependency>
You can also download example code from the maven central repository by adding the following dependency to your pom.xml:
<dependency>
<groupId>org.ta4j</groupId>
<artifactId>ta4j-examples</artifactId>
<version>0.17</version>
</dependency>
The wiki is the best place to start learning about ta4j. For more detailed questions, please use the issues tracker.
Here are some ways for you to contribute to ta4j:
See also: the contribution policy and Code of Conduct
<a href = https://github.com/ta4j/ta4j/graphs/contributors> <img src = https://contrib.rocks/image?repo=ta4j/ta4j> </a>