All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.fair_acc.sample.financial.service.consolidate.OhlcvConsolidationAddon Maven / Gradle / Ivy

Go to download

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();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy