Exemplo n.º 1
0
 def __init__(self, code, cycle='D'):
     Qualification.__init__(self, code, 'dmt' + '_' + cycle, cqcx=False)
     self.cycle = cycle
     if cycle == 'W':
         self.dfile = WeeklyFile(code, cqcx=False)
         self.d_data = self.dfile.getData()
     mafile = MA(code, cycle)
     self.madata = mafile.getValues()
     pass
Exemplo n.º 2
0
 def __init__(self, code, cycle='D'):
     Qualification.__init__(self, code, 'Rng' + '_' + cycle, cqcx=False)
     self.cycle = cycle
     if cycle == 'W':
         self.dfile = WeeklyFile(code, cqcx=False)
         self.d_data = self.dfile.getData()
     kdjfile = KDJ(code, cycle)
     self.kdjdata = kdjfile.getValues()
     pass
Exemplo n.º 3
0
 def __init__(self, code, cycle='D', cqcx=False):
     Qualification.__init__(self, code, 'KDJ' + '_' + cycle, cqcx)
     self.cycle = cycle
     if cycle == 'W':
         self.dfile = WeeklyFile(code, cqcx)
         self.d_data = self.dfile.getData()
     if cycle == 'H':
         self.dfile = HourFile(code)
         self.d_data = self.dfile.getData()
     if cycle == 'Q':
         self.dfile = QuarterFile(code)
         self.d_data = self.dfile.getData()
Exemplo n.º 4
0
 def __init__(self, code, cycle='D', cqcx=False):
     Qualification.__init__(self, code, 'MACD' + '_' + cycle, cqcx)
     self.cycle = cycle
     if cycle == 'W':
         self.dfile = WeeklyFile(code, cqcx)
         self.d_data = self.dfile.getData()