通達(dá)信《雙紫一紅擒龍戰(zhàn)法》全新升級(jí)版排序指標(biāo)源碼 輕松抓牛!指標(biāo)用法說(shuō)明:
雙紫擒龍主圖 上通道:MA(L+(H-L)/2,25)*1.15,COLORLIGREEN,DOTLINE,LINETHICK1; 下通道:MA(L+(H-L)/2,25)*0.95,COLORBROWN,LINETHICK1,DOTLINE; 中軌:(上通道+下通道)/2,COLORBROWN,DOTLINE; 股價(jià):=C,COLORWHITE,LINETHICK2; 次上通道:(MA(C,5)+MA(O,5))/2*1.06,COLORYELLOW,LINETHICK2; 次下通道:(MA(C,5)+MA(O,5))/2*0.98,COLORYELLOW,LINETHICK2; 強(qiáng)弱線:(次上通道+次下通道)/2,COLORYELLOW; LC:=REF(CLOSE,1); VAR28:=SMA(MAX(CLOSE-LC,0),5.5,1)/SMA(ABS(CLOSE-LC),6,1)*100; DRAWTEXT(CROSS(84,RSI) AND CROSS(76,VAR28),H*1.01,'賣出'),LINETHICK4,COLORGREEN; MTM:=C-REF(C,1); DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6); 買:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0); DRAWTEXT(FILTER(買=1,5),LOW-0.1,'買入'),COLORMAGENTA; HJ_1:=CLOSE/REF(CLOSE,1)>=1.098 AND C=H; HJ_22:=COUNT(HJ_1,2)>=1 AND NOT(COUNT(HJ_1,3)>=2); 妖啟:=FILTER(HJ_22,13),COLORDDDDDD; HJ_23:=COUNT(HJ_1,3)>=2 AND NOT(COUNT(HJ_1,4)>=3); 妖升:=FILTER(HJ_23,13),COLORGREEN; 主升:=妖升 AND COUNT(妖升,18)=1; ZT:=C/REF(C,1)>1.097 AND C=H; STICKLINE(ZT,C,O,0.3,0),COLORYELLOW; STICKLINE(C>上通道 AND ZT,C,O,3.3,0),COLORFF00FF; STICKLINE(C>上通道 AND ZT,C,O,2.3,0),COLORDA70D6; STICKLINE(C>上通道 AND ZT,C,O,1.6,0),COLOREE82EE; STICKLINE(C>上通道 AND ZT,C,O,1,0),COLORD8BFD8; STICKLINE(C>上通道 AND ZT,C,O,0.15,0),COLORF8F8FF; STICKLINE(C>上通道 AND ZT,C,O,0.01,0),COLORFFFFFF; DRAWICON(FILTER(主升,1) AND ZT ,L,26); DRAWICON(FILTER(主升,1) AND ZT ,L*0.98,26); DRAWICON(FILTER(主升,1) AND ZT ,L*0.96,26); 啟動(dòng):=妖啟 AND COUNT(妖啟,18)=1; STICKLINE(啟動(dòng) AND C<上通道,O,C,3,0),COLOR005555; STICKLINE(啟動(dòng) AND C<上通道,O,C,2.6,0),COLOR007777; STICKLINE(啟動(dòng) AND C<上通道,O,C,2.1,0),COLOR009999; STICKLINE(啟動(dòng) AND C<上通道,O,C,1.5,0),COLOR11BBBB; STICKLINE(啟動(dòng) AND C<上通道,O,C,0.9,0),COLOR33DDDD; STICKLINE(啟動(dòng) AND C<上通道,O,C,0.3,0),COLOR55FFFF; DRAWICON(啟動(dòng),L,25); DRAWICON(啟動(dòng),L*0.98,25); DRAWICON(啟動(dòng),L*0.96,25); N:=10; T1:=CONST(HHVBARS(V,10)),NODRAW; 前期壓力位:IF(CURRBARSCOUNT<=N+15,CONST(IF(T1=0,C,REF(C,T1))),DRAWNULL),COLORWHITE,LINETHICK1,DOTLINE;DRAWTEXT(ISLASTBAR,前期壓力位,' 前壓力'); 共振追漲紫信號(hào)三合一副圖 VAR1:=(3*CLOSE+HIGH+LOW+OPEN)/6; VAR2:=EMA(VAR1,35); VAR3:=(HHV(VAR2,10)+HHV(VAR2,30)+HHV(VAR2,90))/3; VAR4:=(LLV(VAR2,10)+LLV(VAR2,30)+LLV(VAR2,90))/3; VAR5:=(HHV(VAR3,5)+HHV(VAR3,15)+HHV(VAR3,30))/3; VAR6:=(LLV(VAR4,5)+LLV(VAR4,15)+LLV(VAR4,30))/3; VAR7:=EXPMA(CLOSE,6); VAR8:=EXPMA(CLOSE,18); M1:=500*(VAR7-VAR8)/VAR8+2,COLORYELLOW,LINETHICK2; ZZ:=M1>2 AND EMA(EMA(VAR1,2),2)>VAR6; 共振追漲紫:ZZ AND ZZ>=REF(ZZ,1),COLORLIRED; STICKLINE(共振追漲紫,0,2,3,0),COLORLIMAGENTA; X_1:=INDEXH; X_2:=INDEXO; X_3:=INDEXL; X_4:=INDEXC; X_5:=INDEXV; X_6:=(3*CLOSE+HIGH+LOW+OPEN)/6; X_7:=EMA(X_6,35); X_8:=(HHV(X_7,5)+HHV(X_7,15)+HHV(X_7,30))/3; X_9:=(LLV(X_7,5)+LLV(X_7,15)+LLV(X_7,30))/3; 牛線:=(HHV(X_8,5)+HHV(X_8,15)+HHV(X_8,30))/3; X_10:=(LLV(X_9,5)+LLV(X_9,15)+LLV(X_9,30))/3; X_11:=X_4/EMA(X_4,120); 大盤中線:=EMA(EMA(CLOSE,120)*X_11,2); X_12:=X_6>=牛線 AND X_6>=大盤中線; 強(qiáng)勢(shì)起爆紫:X_12=1,COLORMAGENTA; STICKLINE(強(qiáng)勢(shì)起爆紫,0,1.5,2.5,0),COLORMAGENTA; TT:=(2*CLOSE+OPEN+HIGH+LOW)*100; FF:=TT/EMA(TT,4)-1; 動(dòng)能2紅:FF>REF(FF,1) AND FF>0,COLORRED; STICKLINE(動(dòng)能2紅,0,1,1.5,0),COLORRED; STICKLINE(FF<REF(FF,1) AND FF>0,0,1,1.5,0),COLORYELLOW; STICKLINE(FF<REF(FF,1) AND FF<0,0,1,1.5,0),COLORGREEN; STICKLINE(FF>REF(FF,1) AND FF<0,0,1,1.5,0),COLORFFAA00; 趨勢(shì)動(dòng)能:ROUND2(FF*100,1),COLORYELLOW,LINETHICK2; HJ_1:=CLOSE/REF(CLOSE,1)>=1.098 AND C=H; HJ_22:=COUNT(HJ_1,2)>=1 AND NOT(COUNT(HJ_1,3)>=2); 妖股授精:=FILTER(HJ_22,13),COLORDDDDDD; HJ_23:=COUNT(HJ_1,3)>=2 AND NOT(COUNT(HJ_1,4)>=3); 龍頭啟動(dòng):妖股授精 AND COUNT(妖股授精,18)=1,COLORWHITE; STICKLINE(龍頭啟動(dòng),0,2,0.1,0),COLORWHITE; DRAWTEXT(龍頭啟動(dòng),3,'啟動(dòng)'),COLORWHITE; 妖股孕育:=FILTER(HJ_23,13),COLORGREEN; 主升:=妖股孕育 AND COUNT(妖股孕育,18)=1; 龍頭主升:主升,COLORYELLOW; STICKLINE(龍頭主升,0,2,0.1,0),COLORYELLOW; DRAWICON(龍頭主升,2.5,1); DRAWICON(龍頭主升,3,1); DRAWICON(龍頭主升,3.5,1); DRAWTEXT(龍頭主升,4,'主升'),COLORYELLOW; 強(qiáng)弱線:2,COLORWHITE,DOTLINE; 主力動(dòng)能副圖 TT:=(2*CLOSE+OPEN+HIGH+LOW)*100; 龍啟動(dòng):TT/EMA(TT,4)-1,COLORSTICK; FF:=龍啟動(dòng); 獲利回吐:STICKLINE(FF<REF(FF,1)AND FF>0,0,FF,2,0),COLOR33DFDD; 做空賣出:STICKLINE(FF<REF(FF,1)AND FF<0,0,FF,2,0),COLOR00DD00; 空頭回補(bǔ):STICKLINE(FF>REF(FF,1)AND FF<0,0,FF,2,0),COLORFFAA00; 做多買進(jìn):STICKLINE(FF>REF(FF,1)AND FF>0,0,FF,2,0),COLOR0000DD; 0; HH10:=IF(BARSCOUNT(C)>60 AND DYNAINFO(4)>0,FF=HHV(ABS(FF),10),0); HH20:=IF(BARSCOUNT(C)>60 AND DYNAINFO(4)>0,FF=HHV(ABS(FF),20),0); HH30:=IF(BARSCOUNT(C)>60 AND DYNAINFO(4)>0,FF=HHV(ABS(FF),30),0); HH50:=IF(BARSCOUNT(C)>60 AND DYNAINFO(4)>0,FF=HHV(ABS(FF),50),0); HH100:=IF(BARSCOUNT(C)>60 AND DYNAINFO(4)>0,FF=HHV(ABS(FF),80),0); 龍:=(HH10+HH20+HH30+HH50+HH100)/50,LINETHICK3; DRAWTEXT(HH100 ,ABS(FF)*1.1,'龍'),COLORWHITE; 共振追漲副圖 1,COLORWHITE; 啟動(dòng)線:1.02,DOTLINE,COLORFF9900; 粘合:INTPART(MAX(MAX(MA(CLOSE,5),MA(CLOSE,10)),MA(CLOSE,20))/MIN(MIN(MA(CLOSE,5),MA(CLOSE,10)),MA(CLOSE,20))*1000)/1000,COLORGREEN,LINETHICK2; 共振:BARSLASTCOUNT(MA(CLOSE,5)>REF(MA(CLOSE,5),1) AND MA(CLOSE,10)>REF(MA(CLOSE,10),1) AND MA(CLOSE,20)>REF(MA(CLOSE,20),1)),NODRAW,COLORYELLOW; 多頭:BARSLASTCOUNT(MA(CLOSE,5)>MA(CLOSE,10) AND MA(CLOSE,10)>MA(CLOSE,20)),NODRAW,COLORRED; 多頭共振:BARSLASTCOUNT(多頭 AND 共振),NODRAW,COLORMAGENTA; 信號(hào):共振 OR 多頭,NODRAW; STICKLINE(粘合<=啟動(dòng)線,粘合,啟動(dòng)線,2,0),COLORFF9900; STICKLINE(共振 AND NOT(多頭),啟動(dòng)線,粘合,2,0),COLORYELLOW; STICKLINE(多頭 AND NOT(共振),啟動(dòng)線,粘合,2,0),COLORRED; STICKLINE(多頭 AND 共振,啟動(dòng)線,粘合,2,0),COLORMAGENTA; 龍頭啟動(dòng)主升副圖 HJ_1:=CLOSE/REF(CLOSE,1)>=1.098 AND C=H; HJ_22:=COUNT(HJ_1,2)>=1 AND NOT(COUNT(HJ_1,3)>=2); 妖股授精:=FILTER(HJ_22,13),COLORDDDDDD; HJ_23:=COUNT(HJ_1,3)>=2 AND NOT(COUNT(HJ_1,4)>=3); 龍頭啟動(dòng):妖股授精 AND COUNT(妖股授精,18)=1 COLORYELLOW; 妖股孕育:=FILTER(HJ_23,13); 主升:=妖股孕育 AND COUNT(妖股孕育,18)=1; 龍頭主升:主升 COLORRED; 強(qiáng)勢(shì)起爆副圖 X_1:=INDEXH; X_2:=INDEXO; X_3:=INDEXL; X_4:=INDEXC; X_5:=INDEXV; X_6:=(3*CLOSE+HIGH+LOW+OPEN)/6; X_7:=EMA(X_6,35); X_8:=(HHV(X_7,5)+HHV(X_7,15)+HHV(X_7,30))/3; X_9:=(LLV(X_7,5)+LLV(X_7,15)+LLV(X_7,30))/3; 牛線:(HHV(X_8,5)+HHV(X_8,15)+HHV(X_8,30))/3,COLORYELLOW; X_10:=(LLV(X_9,5)+LLV(X_9,15)+LLV(X_9,30))/3; X_11:=X_4/EMA(X_4,120); 大盤中線:EMA(EMA(CLOSE,120)*X_11,2),COLORRED; STICKLINE(1,0,大盤中線,0.1,1),COLORRED; X_12:=X_6>=牛線 AND X_6>=大盤中線; X_13:=X_6<牛線 AND X_6>=大盤中線 AND 牛線>大盤中線; X_14:=X_6<=大盤中線 AND X_6<=牛線 OR (X_6>=牛線 AND X_6<大盤中線 AND 牛線<大盤中線); STICKLINE(X_12=1,HIGH,LOW,3,1),COLORMAGENTA; STICKLINE(X_12=1,OPEN,CLOSE,3,0),COLORMAGENTA; STICKLINE(X_13=1,HIGH,LOW,3,1),COLORRED; STICKLINE(X_13=1,OPEN,CLOSE,3,0),COLORRED; STICKLINE(X_14=1,HIGH,LOW,3,1),COLORGRAY; STICKLINE(X_14=1,OPEN,CLOSE,3,0),COLORGRAY; 美女:IF(X_12=1,1,(-1)),NODRAW,COLORWHITE; 關(guān)注:IF(美女=1 AND REF(美女,1)=(-1),1,0),NODRAW,COLORGREEN; 雙紫擒龍排序副圖 VAR1:=(3*CLOSE+HIGH+LOW+OPEN)/6; VAR2:=EMA(VAR1,35); VAR3:=(HHV(VAR2,10)+HHV(VAR2,30)+HHV(VAR2,90))/3; VAR4:=(LLV(VAR2,10)+LLV(VAR2,30)+LLV(VAR2,90))/3; VAR5:=(HHV(VAR3,5)+HHV(VAR3,15)+HHV(VAR3,30))/3; VAR6:=(LLV(VAR4,5)+LLV(VAR4,15)+LLV(VAR4,30))/3; VAR7:=EXPMA(CLOSE,6); VAR8:=EXPMA(CLOSE,18); M1:=500*(VAR7-VAR8)/VAR8+2,COLORYELLOW,LINETHICK2; ZZ:=M1>2 AND EMA(EMA(VAR1,2),2)>VAR6; 共振追漲紫:ZZ AND ZZ>=REF(ZZ,1); X_1:=INDEXH; X_2:=INDEXO; X_3:=INDEXL; X_4:=INDEXC; X_5:=INDEXV; X_6:=(3*CLOSE+HIGH+LOW+OPEN)/6; X_7:=EMA(X_6,35); X_8:=(HHV(X_7,5)+HHV(X_7,15)+HHV(X_7,30))/3; X_9:=(LLV(X_7,5)+LLV(X_7,15)+LLV(X_7,30))/3; 牛線:=(HHV(X_8,5)+HHV(X_8,15)+HHV(X_8,30))/3,COLORYELLOW; X_10:=(LLV(X_9,5)+LLV(X_9,15)+LLV(X_9,30))/3; X_11:=X_4/EMA(X_4,120); 大盤中線:=EMA(EMA(CLOSE,120)*X_11,2),COLORRED; X_12:=X_6>=牛線 AND X_6>=大盤中線; 強(qiáng)勢(shì)起爆紫:X_12=1; TT:=(2*CLOSE+OPEN+HIGH+LOW)*100; FF:=TT/EMA(TT,4)-1; 主力動(dòng)能紅:FF>REF(FF,1) AND FF>0; HJ_1:=CLOSE/REF(CLOSE,1)>=1.098 AND C=H; HJ_22:=COUNT(HJ_1,2)>=1 AND NOT(COUNT(HJ_1,3)>=2); 妖股授精:=FILTER(HJ_22,13),COLORDDDDDD; HJ_23:=COUNT(HJ_1,3)>=2 AND NOT(COUNT(HJ_1,4)>=3); 龍頭啟動(dòng):妖股授精 AND COUNT(妖股授精,18)=1; 妖股孕育:=FILTER(HJ_23,13),COLORGREEN; 龍頭主升:妖股孕育 AND COUNT(妖股孕育,18)=1; 趨勢(shì)動(dòng)能:ROUND2(FF*100,1); 龍頭啟動(dòng)選股 HJ_1:=CLOSE/REF(CLOSE,1)>=1.098 AND C=H; HJ_22:=COUNT(HJ_1,2)>=1 AND NOT(COUNT(HJ_1,3)>=2); 妖股授精:=FILTER(HJ_22,13),COLORDDDDDD; HJ_23:=COUNT(HJ_1,3)>=2 AND NOT(COUNT(HJ_1,4)>=3); 龍頭啟動(dòng):=妖股授精 AND COUNT(妖股授精,18)=1; 妖股孕育:=FILTER(HJ_23,13); 主升:=妖股孕育 AND COUNT(妖股孕育,18)=1; 龍頭主升:=主升; XG:龍頭啟動(dòng); 龍頭主升選股 HJ_1:=CLOSE/REF(CLOSE,1)>=1.098 AND C=H; HJ_22:=COUNT(HJ_1,2)>=1 AND NOT(COUNT(HJ_1,3)>=2); 妖股授精:=FILTER(HJ_22,13),COLORDDDDDD; HJ_23:=COUNT(HJ_1,3)>=2 AND NOT(COUNT(HJ_1,4)>=3); 龍頭啟動(dòng):=妖股授精 AND COUNT(妖股授精,18)=1; 妖股孕育:=FILTER(HJ_23,13); 主升:=妖股孕育 AND COUNT(妖股孕育,18)=1; 龍頭主升:=主升; XG:龍頭主升; |
|