Esempio n. 1
0
    def init_factors(self, security_type, exchanges, codes, the_timestamp, start_timestamp, end_timestamp):
        factor = CrossMaFactor(security_type=security_type, exchanges=exchanges, codes=codes,
                               the_timestamp=the_timestamp, start_timestamp=start_timestamp,
                               end_timestamp=end_timestamp)
        factor.run()

        self.must_factors = [factor]
Esempio n. 2
0
    def init_factors(self, security_type, exchanges, codes, the_timestamp,
                     start_timestamp, end_timestamp):
        ma_factor = CrossMaFactor(security_type=security_type,
                                  exchanges=exchanges,
                                  codes=codes,
                                  the_timestamp=the_timestamp,
                                  start_timestamp=start_timestamp,
                                  end_timestamp=end_timestamp,
                                  provider=self.provider,
                                  level=self.level)
        ma_factor.run()

        self.must_factors = [ma_factor]