Transform Tick Data into OHLCV Range!
Java Implementation of rangedf
normal | nongap |
---|---|
![]() |
![]() |
Java OHLC charts plotted by XChart
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");
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.
JUnit 5 testing framework
parquet-io-java to read Parquet files.
XChart for plotting data / create charts.