添加k线动能理论
This commit is contained in:
+3
-3
@@ -71,11 +71,11 @@ class ChanKLC():
|
||||
if self.high >= klu.bbup302 and klu.bbup302 > 0 and (self.klc_fx_type == Chan_KLC_FX.TOP1 or self.klc_fx_type == Chan_KLC_FX.TOP2):
|
||||
self.bb_out = True
|
||||
#print(self.end_time, self.high, klu.bbup302, self.klc_fx_type)
|
||||
if self.high >= klu.bbup30 and klu.bbup30 > 0:
|
||||
if self.high >= klu.bbup30 and klu.bbup30 > 0 and self.next and (self.next.macd - self.macd) < 0:
|
||||
self.klc_fx_type = Chan_KLC_FX.TOP4
|
||||
if self.low <= klu.bblow302 and klu.bblow302 > 0 and (self.klc_fx_type == Chan_KLC_FX.BOTTOM1 or self.klc_fx_type == Chan_KLC_FX.BOTTOM2):
|
||||
self.bb_out = True
|
||||
if self.low <= klu.bblow30 and klu.bblow30 > 0:
|
||||
if self.low <= klu.bblow30 and klu.bblow30 > 0 and self.next and (self.macd - self.next.macd) < 0:
|
||||
self.klc_fx_type = Chan_KLC_FX.BOTTOM4
|
||||
if self.fx ==Chan_FX_TYPE.TOP:
|
||||
if self.macd > 0:
|
||||
@@ -85,7 +85,7 @@ class ChanKLC():
|
||||
if self.macd < 0:
|
||||
self.bb_out = True
|
||||
def cal_macd_state(self, dir):
|
||||
|
||||
macd_state = 0
|
||||
return macd_state
|
||||
def cal_indicators(self):
|
||||
for index in range(1, len(self.klus)):
|
||||
|
||||
Reference in New Issue
Block a user