コード例 #1
0
ファイル: backtest.py プロジェクト: rngrofl/kuegiBot
def plot(bars):
    forplot = bars[:]

    logger.info("initializing indicators")
    indis = [KuegiChannel()]

    logger.info("preparing plot")
    fig = prepare_plot(forplot, indis)
    fig.show()
コード例 #2
0
 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