添加新的配置
This commit is contained in:
@@ -88,8 +88,6 @@ class ChanKLU:
|
|||||||
if self.klc and self.klc.pre and self.klc.next:
|
if self.klc and self.klc.pre and self.klc.next:
|
||||||
if self.klc.klc_fx_type != Chan_KLC_FX.UNKNOWN or self.klc.pre.klc_fx_type != Chan_KLC_FX.UNKNOWN or self.klc.next.klc_fx_type != Chan_KLC_FX.UNKNOWN:
|
if self.klc.klc_fx_type != Chan_KLC_FX.UNKNOWN or self.klc.pre.klc_fx_type != Chan_KLC_FX.UNKNOWN or self.klc.next.klc_fx_type != Chan_KLC_FX.UNKNOWN:
|
||||||
self.separate_div = 99
|
self.separate_div = 99
|
||||||
else:
|
|
||||||
self.separate_div = 0
|
|
||||||
def set_next(self, next):
|
def set_next(self, next):
|
||||||
self.next = next
|
self.next = next
|
||||||
#if self.fx_type != Chan_FX_TYPE.UNKNOWN and self.fx_strength > 1:
|
#if self.fx_type != Chan_FX_TYPE.UNKNOWN and self.fx_strength > 1:
|
||||||
|
|||||||
@@ -61,6 +61,9 @@ class ChanSBI():
|
|||||||
included = False
|
included = False
|
||||||
else:
|
else:
|
||||||
included = False
|
included = False
|
||||||
|
# high小于,low大于,右包含
|
||||||
|
if self.low > bi.low:
|
||||||
|
included = True
|
||||||
if included:
|
if included:
|
||||||
if self.pre:
|
if self.pre:
|
||||||
if self.high > self.pre.high and self.low < self.pre.low:
|
if self.high > self.pre.high and self.low < self.pre.low:
|
||||||
@@ -75,4 +78,5 @@ class ChanSBI():
|
|||||||
# DOWN -> min(gn)
|
# DOWN -> min(gn)
|
||||||
self.high = bi.high
|
self.high = bi.high
|
||||||
#self.print(bi, "Z")
|
#self.print(bi, "Z")
|
||||||
|
#print(self.start_bi.start_time, bi.start_time, included)
|
||||||
return included
|
return included
|
||||||
Vendored
BIN
Binary file not shown.
@@ -5918,9 +5918,9 @@
|
|||||||
lineWidth: 2,
|
lineWidth: 2,
|
||||||
lineStyle: 0,
|
lineStyle: 0,
|
||||||
upperColor: '#ff6b6b',
|
upperColor: '#ff6b6b',
|
||||||
middleColor: '#667eea',
|
middleColor: '#ffffff',
|
||||||
lowerColor: '#4ecdc4',
|
lowerColor: '#ff6b6b',
|
||||||
visible: true
|
visible: false
|
||||||
};
|
};
|
||||||
bollingerBands.push(defaultBB);
|
bollingerBands.push(defaultBB);
|
||||||
console.log('添加默认布林带: BB(20, 2, 2)');
|
console.log('添加默认布林带: BB(20, 2, 2)');
|
||||||
|
|||||||
Reference in New Issue
Block a user