io.fair_acc.sample.financial.service.consolidate.OhlcvConsolidationAddon Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of samples Show documentation
Show all versions of samples Show documentation
Small sample applications to showcase the features of the chart-fx library.
The newest version!
package io.fair_acc.sample.financial.service.consolidate;
import io.fair_acc.sample.financial.dos.DefaultOHLCV;
import io.fair_acc.sample.financial.dos.OHLCVItem;
public interface OhlcvConsolidationAddon {
/**
* Base method for addon calculation process
* @param ohlcv existed ohlcv structure
* @param incrementItem incremental ohlc item
* @return enhanced signal
*/
DefaultOHLCV consolidationUpdateAddon(DefaultOHLCV ohlcv, OHLCVItem incrementItem);
/**
* Base method for addon calculation process
* @param ohlcv existed ohlcv structure
* @param incrementItem incremental ohlc item
* @return enhanced signal
*/
DefaultOHLCV consolidationAdditionAddon(DefaultOHLCV ohlcv, OHLCVItem incrementItem);
/**
* @return true = addon needs recalculation per tick in the consolidation process,
* false = the computation is processing by new tick which create new bar. It means
* in the end of previous closed bar - on close of bar.
*/
boolean isDynamic();
}