def plot(bars): forplot = bars[:] logger.info("initializing indicators") indis = [KuegiChannel()] logger.info("preparing plot") fig = prepare_plot(forplot, indis) fig.show()
def withChannel(self, max_look_back, threshold_factor, buffer_factor, max_dist_factor, max_swing_length): self.channel = KuegiChannel(max_look_back, threshold_factor, buffer_factor, max_dist_factor, max_swing_length) return self