Skip to content

srlcarlg/rangedf-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rangedf-java

Transform Tick Data into OHLCV Range!
Java Implementation of rangedf

normal nongap
frontend docs

Java OHLC charts plotted by XChart

Usage

In essence, it's the same way as in Python version.
The 'only' difference is using the OHLCV wrapper for Ticks/Range list.

import rangedf.Range;
import rangedf.wrappers.OHLCV;

List<OHLCV> ticksList = new ArrayList<>();
// only Close and Datetime are needed.

Range r = Range(ticksList, rangeSize);
List<OHLCV> rangeList = r.rangedf("normal");

Tests and examples

The tests verify that the OHLCV data (with floating-point-arithmetic) of all(2) range-modes is strictly equal to the rangedf python version.
The Ticks data used is the same as in the rangedf repository and the validation data is obtained from it.

There are 3 simple examples using the XChart to plot data.

Dependencies

JUnit 5 testing framework
parquet-io-java to read Parquet files.
XChart for plotting data / create charts.

About

Transform Tick Data into OHLCV Range!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages