Class DurationBarAggregator

    • Constructor Detail

      • DurationBarAggregator

        public DurationBarAggregator​(Duration barDuration)
        Creates the Aggregator with the given Duration.
        Parameters:
        barDuration - the duration
    • Method Detail

      • update

        public void update​(ZonedDateTime timestamp,
                           Number latestPrice)
        Updates the bar data.
        Specified by:
        update in interface BarAggregator
        Parameters:
        timestamp - time of the tick
        latestPrice - latest price
      • getBarFlux

        public reactor.core.publisher.Flux<org.ta4j.core.Bar> getBarFlux()
        Gets the Flux.
        Specified by:
        getBarFlux in interface BarAggregator
        Returns:
        flux of Bars