def __init__(self):
     '''
     params 不过滤
     '''
     IStockFilter.__init__(self,None)
     self.filterName = u'不过滤'
     self.FilterDescribe = u'不过滤'
 def __init__(self,low=-10.5, high=10.5):
     '''
     params 涨跌幅限制
     '''
     IStockFilter.__init__(self,None)
     self.filterName = u'涨幅%s%%-%s%%'%(low , high)
     self.FilterDescribe = u'涨跌幅在 %s%%-%s%% 之间过滤' %(low , high)
     
     self.threshold = (low,high)
Beispiel #3
0
    def __init__(self, params):
        '''
        params 是阈值 表示乖离值
        '''
        IStockFilter.__init__(self, params)
        self.filterName = u'长期均线乖离过滤'
        self.FilterDescribe = u'长期均线粘合过滤'

        self.threshold = params
    def __init__(self, params):
        '''
        params:是量比值,带量突破
        '''
        IStockFilter.__init__(self, params)
        self.filterName = u'中轨之下破上轨'
        self.FilterDescribe = u'从中轨之下放大阳,带量突破上轨'

        self.threshold = params
Beispiel #5
0
 def __init__(self, params):
     '''
     params:大于MA N
     '''
     IStockFilter.__init__(self, params)
     self.filterName = u'大于MA%03d线' %(int(params))
     self.FilterDescribe = u'大于MA N'
     
     self.threshold = params
Beispiel #6
0
 def __init__(self, params):
     '''
     params:穿过线根数,量比
     '''
     IStockFilter.__init__(self, params)
     self.filterName = u'一阳穿%s线' %(params[0])
     self.FilterDescribe = u'带量,一阳穿过多根均线'
     
     self.threshold = params