一、三把鎖指標(biāo)介紹 1、“三把鎖”邏輯:使用“特別K+CCI+立樁量”相結(jié)合,產(chǎn)生“看漲”信號(hào); 2、出現(xiàn)“看漲”信號(hào)后,在操盤線和黃金線上,紅色K持有;兩線之下,藍(lán)色K出局; 3、黃色虛線為支撐線,藍(lán)色虛線為壓力線;突破前一次的壓力線可考慮加倉,跌破前一次的支撐線則需求賣出。 二、圖例展示 三、指標(biāo)源碼 {三把鎖主圖指標(biāo)} ABC11:=1; ABC12:=((((2*CLOSE)+HIGH)+LOW) / 4); ABC14:=LLV(LOW,5); ABC15:=HHV(HIGH,4); C1:=(EMA{公共號(hào):公式編寫}((((ABC12-ABC14)/(ABC15-ABC14))*100),4)*ABC11),COLORRED,LINETHICK2; C2:=(EMA(((0.667*REF(C1,1))+(0.333*C1)),2)*ABC11),COLORFFFFFF,LINETHICK2; AA:=C1>=C2 ; BB:=C2>C1; STICKLINE(AA,C,O,3,0),COLORRED; STICKLINE(AA,H,L,0.5,0),COLORRED; STICKLINE(BB,C,O,3,0),COLOR00FF00; STICKLINE(BB,H,L,0.5,0),COLOR00FF00; STICKLINE(AA,CLOSE,OPEN,3,0),COLOR000099; STICKLINE(AA,CLOSE,OPEN,2.2,0),COLOR0000CC; STICKLINE(AA,CLOSE,OPEN,1.5,0),COLOR0000FF; STICKLINE(AA,CLOSE,OPEN,0.5,0),COLORCC66FF; STICKLINE(BB,CLOSE,OPEN,3,0),COLORFF7700; STICKLINE(BB,CLOSE,OPEN,2.2,0),COLORFF9900; STICKLINE(BB,CLOSE,OPEN,1.5,0),COLORFFBB00; STICKLINE(BB,CLOSE,OPEN,0.5,0),COLORCYAN; 操盤線:MA(C,5),COLORWHITE,LINETHICK1; 黃金線:MA(C,10),COLOR00FFFF,LINETHICK2; AAF:=LLV(LOW,34),LINETHICK1,COLORFFFFCC; BBF:=MA(AAF,4),LINETHICK1,COLORYELLOW; TYP := (HIGH + LOW + CLOSE)/3; CCI1:=(TYP-MA(TYP,6))/(0.015*AVEDEV(TYP,5)); 差值1:=ABS(REF(CCI1,1)-CCI1),LINETHICK0; CCI2:=(TYP-MA(TYP,10))/(0.015*AVEDEV(TYP,10)); 差值2:=ABS(REF(CCI2,1)-CCI2),LINETHICK0; CCI3:=(TYP-MA(TYP,20))/(0.015*AVEDEV(TYP,20)); 差值3:=ABS(REF(CCI3,1)-CCI3),LINETHICK0; CCI4:=(TYP-MA(TYP,30))/(0.015*AVEDEV(TYP,30)); 差值4:=ABS(REF(CCI4,1)-CCI4),LINETHICK0; CCI5:=(TYP-MA(TYP,60))/(0.015*AVEDEV(TYP,60)); 差值5:=ABS(REF(CCI5,1)-CCI5),LINETHICK0; CCI:=CCI1+CCI2+CCI3+CCI4+CCI5; AAA:=(3*C+H+L+O)/6; ABC1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3) +4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36; ABC2:=(HHV(ABC1,5)+HHV(ABC1,10)+HHV(ABC1,20))/3; ABC3:=(LLV(ABC1,5)+LLV(ABC1,10)+LLV(ABC1,20))/3; ABC4:=(HHV(ABC2,5)+HHV(ABC2,10)+HHV(ABC2,20))/3; ABC5:=(LLV(ABC3,5)+LLV(ABC3,10)+LLV(ABC3,20))/3; ABC6:=(LLV(ABC1,2)+LLV(ABC1,4)+LLV(ABC1,6))/3; 短線:=ABC1,COLORWHITE; 中線:=ABC6,COLORRED; 下跌:=IF(ABC1=ABC6,ABC6, DRAWNULL),COLORGREEN; ACB1:= CCI1>差值4; 立樁量:=FILTER{公共號(hào):公式編寫}(ACB1,0),NODRAW; ACB2:=IF(BARSLAST(立樁量)=1 ,1,0); STICKLINE(立樁量 !=1,REF(HIGH,BARSLAST(立樁量)), REF(HIGH,BARSLAST(立樁量)),1,1),COLORCYAN; 成立1:=ACB2=1; 條件成立1:=FILTER(成立1,5); ACB11:= CCI1<-差值4 ; 立樁量2:=FILTER(ACB11,0),NODRAW; ACB22:=IF(BARSLAST(立樁量2)=1 AND CLOSE>REF(HIGH,1),1,0); 突破2:=ACB22=1;AAB:=C>MA(C,10); STICKLINE(CLOSE AND 下跌!= ABC6,REF(LOW,BARSLAST(立樁量2)), REF(LOW,BARSLAST(立樁量2)),1,1),COLORYELLOW; ACB:=IF(BARSLAST(立樁量2)=1 AND CLOSE>REF(LOW,1),1,0); 成立2:=ACB=1; 條件成立2:=FILTER(成立2,5) AND AAB; DRAWICON(條件成立2,L-0.1,18); {三把鎖副圖指標(biāo)} ABC11:=1; ABC12:=((((2*CLOSE)+HIGH)+LOW) / 4); ABC14:=LLV(LOW,5); ABC15:=HHV{公共號(hào):公式編寫}(HIGH,4); C1:=(EMA((((ABC12-ABC14)/(ABC15-ABC14))*100),4)*ABC11),COLORRED,LINETHICK2; C2:=(EMA(((0.667*REF(C1,1))+(0.333*C1)),2)*ABC11),COLORFFFFFF,LINETHICK2; AA:=C1>=C2 ; BB:=C2>C1; AAF:=LLV(LOW,34),LINETHICK1,COLORFFFFCC; BBF:=MA(AAF,4),LINETHICK1,COLORYELLOW; TYP := (HIGH + LOW + CLOSE)/3; CCI1:=(TYP-MA(TYP,6))/(0.015*AVEDEV(TYP,5)); 差值1:=ABS(REF(CCI1,1)-CCI1),LINETHICK0; CCI2:=(TYP-MA(TYP,10))/(0.015*AVEDEV(TYP,10)); 差值2:=ABS(REF{公共號(hào):公式編寫}(CCI2,1)-CCI2),LINETHICK0; CCI3:=(TYP-MA(TYP,20))/(0.015*AVEDEV(TYP,20)); 差值3:=ABS(REF(CCI3,1)-CCI3),LINETHICK0; CCI4:=(TYP-MA(TYP,30))/(0.015*AVEDEV(TYP,30)); 差值4:=ABS(REF(CCI4,1)-CCI4),LINETHICK0; CCI5:=(TYP-MA(TYP,60))/(0.015*AVEDEV(TYP,60)); 差值5:=ABS(REF(CCI5,1)-CCI5),LINETHICK0; CCI:=CCI1+CCI2+CCI3+CCI4+CCI5; AAA:=(3*C+H+L+O)/6; ABC1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3) +4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36; ABC2:=(HHV(ABC1,5)+HHV(ABC1,10)+HHV(ABC1,20))/3; ABC3:=(LLV(ABC1,5)+LLV(ABC1,10)+LLV(ABC1,20))/3; ABC4:=(HHV(ABC2,5)+HHV(ABC2,10)+HHV(ABC2,20))/3; ABC5:=(LLV(ABC3,5)+LLV(ABC3,10)+LLV(ABC3,20))/3; ABC6:=(LLV(ABC1,2)+LLV(ABC1,4)+LLV(ABC1,6))/3; 短線:=ABC1,COLORWHITE; 中線:=ABC6,COLORRED; 下跌:=IF(ABC1=ABC6,ABC6, DRAWNULL),COLORGREEN; ACB1:= CCI1>差值4; 立樁量:=FILTER(ACB1,0),NODRAW; ACB2:=IF(BARSLAST(立樁量)=1 ,1,0); 成立1:=ACB2=1; 條件成立1:=FILTER(成立1,5); ACB11:= CCI1<-差值4 ; 立樁量2:=FILTER(ACB11,0),NODRAW;AAB:=C>MA(C,10); ACB22:=IF(BARSLAST(立樁量2)=1 AND CLOSE>REF(HIGH,1),1,0); 突破2:=ACB22=1; ACB:=IF(BARSLAST(立樁量2)=1 AND CLOSE>REF(LOW,1),1,0); 成立2:=ACB=1; 三把鎖看漲:FILTER(成立2,5) AND AAB ,COLORMAGENTA LINETHICK2; DRAWTEXT(三把鎖看漲,0.8,' ★看漲'),COLORRED; {三把鎖選股指標(biāo)} ABC11:=1; ABC12:=((((2*CLOSE)+HIGH)+LOW) / 4); ABC14:=LLV(LOW,5); ABC15:=HHV(HIGH,4); C1:=(EMA{公共號(hào):公式編寫}((((ABC12-ABC14)/(ABC15-ABC14))*100),4)*ABC11),COLORRED,LINETHICK2; C2:=(EMA(((0.667*REF(C1,1))+(0.333*C1)),2)*ABC11),COLORFFFFFF,LINETHICK2; AA:=C1>=C2 ; BB:=C2>C1; AAF:=LLV(LOW,34),LINETHICK1,COLORFFFFCC; BBF:=MA(AAF,4),LINETHICK1,COLORYELLOW; TYP := (HIGH + LOW + CLOSE)/3; QXS:=NOT(CODELIKE('4')); QKC:=NOT(CODELIKE('688')); QST:=IF(NAMELIKE('S'),0,1); QXX:=IF(NAMELIKE('*'),0,1); QBJ:=NOT(CODELIKE('8')); TTXD:=QXS AND QST AND QKC AND QXX AND QBJ; CCI1:=(TYP-MA(TYP,6))/(0.015*AVEDEV(TYP,5)); 差值1:=ABS(REF(CCI1,1)-CCI1),LINETHICK0; CCI2:=(TYP-MA(TYP,10))/(0.015*AVEDEV(TYP,10)); 差值2:=ABS(REF(CCI2,1)-CCI2),LINETHICK0; CCI3:=(TYP-MA(TYP,20))/(0.015*AVEDEV(TYP,20)); 差值3:=ABS(REF(CCI3,1)-CCI3),LINETHICK0; CCI4:=(TYP-MA{公共號(hào):公式編寫}(TYP,30))/(0.015*AVEDEV(TYP,30)); 差值4:=ABS(REF(CCI4,1)-CCI4),LINETHICK0; CCI5:=(TYP-MA(TYP,60))/(0.015*AVEDEV(TYP,60)); 差值5:=ABS(REF(CCI5,1)-CCI5),LINETHICK0; CCI:=CCI1+CCI2+CCI3+CCI4+CCI5; AAA:=(3*C+H+L+O)/6; ABC1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3) +4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36; ABC2:=(HHV(ABC1,5)+HHV(ABC1,10)+HHV(ABC1,20))/3; ABC3:=(LLV(ABC1,5)+LLV(ABC1,10)+LLV(ABC1,20))/3; ABC4:=(HHV(ABC2,5)+HHV(ABC2,10)+HHV(ABC2,20))/3; ABC5:=(LLV(ABC3,5)+LLV(ABC3,10)+LLV(ABC3,20))/3; ABC6:=(LLV(ABC1,2)+LLV(ABC1,4)+LLV(ABC1,6))/3; 短線:=ABC1,COLORWHITE; 中線:=ABC6,COLORRED; 下跌:=IF(ABC1=ABC6,ABC6, DRAWNULL),COLORGREEN; ACB1:= CCI1>差值4; 立樁量:=FILTER(ACB1,0); ACB2:=IF(BARSLAST(立樁量)=1 ,1,0); 成立1:=ACB2=1; 條件成立1:=FILTER(成立1,5); ACB11:= CCI1<-差值4 ; 立樁量2:=FILTER(ACB11,0);AAB:=C>MA(C,10); ACB22:=IF(BARSLAST(立樁量2)=1 AND CLOSE>REF(HIGH,1),1,0); 突破2:=ACB22=1; ACB:=IF(BARSLAST(立樁量2)=1 AND CLOSE>REF(LOW,1),1,0); 成立2:=ACB=1; 三把鎖看漲:FILTER(成立2,5) AND AAB AND TTXD; |
|