Esempio n. 1
0
 def __init__(self, slow_period, fast_period, macd_period, bt_data):
     self.obj_error = None
     self.slow_period = slow_period
     self.fast_period = fast_period
     self.macd_period = macd_period
     # self.bt_data:BackTest_Data = bt_data
     self.bt_data = bt_data
     base_indicator.__init__(self)
Esempio n. 2
0
    def __init__(self, slow_period, fast_period, macd_period, bt_data):
        self.obj_error = None
        self.slow_period = slow_period
        self.fast_period = fast_period
        self.macd_period = macd_period
        # self.bt_data:BackTest_Data = bt_data
        self.bt_data = bt_data
        base_indicator.__init__(self)

        self.last_base_index = None
        self.last_candle_index = None
        self.last_data_type = None
        self.last_get_error = None
        self.last_data = None
        self.last_error = None
Esempio n. 3
0
 def __init__(self, period, bt_data):
     self.obj_error = None
     self.period = period
     #self.bt_data:BackTest_Data = bt_data
     self.bt_data = bt_data
     base_indicator.__init__(self)