試著改了一下通達(dá)信用的,請(qǐng)大家試試
MA5:MA(CLOSE,5); MA10:MA(CLOSE,10); MA20:MA(CLOSE,20); MA60:MA(CLOSE,60); {通用條件} LASTK:=(REF(ISLASTBAR,2)=0); 上漲:=CLOSE>REF(CLOSE,1); 未跌破:=REF(CLOSE,1)>LOW AND REF(CLOSE,2)>LOW AND REF(CLOSE,3)>LOW; 縮量:=VOL>0.35*(REF(VOL,1)+REF(VOL,2)+REF(VOL,3)) AND VOL>REF(VOL,1);{1.05/3,5%} 逐級(jí)縮量:=VOL>REF(VOL,1) AND REF(VOL,1)>REF(VOL,2) AND REF(VOL,2)>REF(VOL,3); 逐級(jí)價(jià)升:=CLOSE<REF(CLOSE,1) AND REF(CLOSE,1)<REF(CLOSE,2) AND REF(CLOSE,2)<REF(CLOSE,3); {倍量柱} 倍量柱:=VOL>=(REF(VOL,1)+REF(VOL,1))*0.9,LINETHICK0,COLORWHITE; {高量柱} 高量柱:=VOL>0.3*(REF(SUM(VOL,3),1)+REF(SUM(VOL,3),3)) AND VOL>REF(VOL,1) AND VOL>REF(VOL,1),LINETHICK0,COLORWHITE;{1.8/6,1.8倍} {平量柱} 平量柱:=VOL>REF(VOL,1)*0.97 AND VOL<REF(VOL,1)*1.03 AND VOL>=2*REF(VOL,1),LINETHICK0,COLORWHITE; {梯量柱} 梯量柱:=VOL>REF(VOL,1) AND REF(VOL,1)>REF(VOL,2) AND CLOSE>REF(CLOSE,1) AND REF(CLOSE,1)>REF(CLOSE,2),LINETHICK0,COLORWHITE;{雖然是梯量柱,但也不能太小} {將軍柱} 將軍柱:=LASTK AND 上漲 AND 未跌破 AND (倍量柱 OR 高量柱 OR 平量柱 OR 梯量柱),LINETHICK0,COLORYELLOW; {黃金柱} 黃金柱:=將軍柱 AND 縮量,LINETHICK0,COLORYELLOW; {標(biāo)準(zhǔn)黃金柱} 標(biāo)準(zhǔn)黃金柱:=黃金柱 AND 逐級(jí)縮量 AND 逐級(jí)價(jià)升,LINETHICK0,COLORRED; {輸出} DRAWICON(黃金柱 AND 標(biāo)準(zhǔn)黃金柱=0 AND BARSLAST(REF(黃金柱,1))>1,LOW,8),COLORRED; DRAWICON(標(biāo)準(zhǔn)黃金柱,LOW,4),COLORRED; DRAWICON(將軍柱 AND BARSLAST(REF(將軍柱,1))>1 AND BARSLAST(黃金柱)>1,LOW,10),COLORRED; MA135:=MA(VOL,135); TJ1:=(VOL=HHV(VOL,10) AND VOL>1.7*REF(VOL,1) AND C>=REF(C,1) AND C>=O AND VOL<=MA135*3.5); LJL:=FILTER(TJ1,3); TJ3:=IF(BARSLAST(LJL)=1 AND CLOSE>REF(LOW,3),1,0); ST:=TJ3=1; CL:=FILTER(ST,3); STICKLINE(C,REF(L,BARSLAST(CL)),REF(L,BARSLAST(CL)),0.8,0),COLORYELLOW; STICKLINE(CLOSE,REF(L,BARSLAST(LJL)),REF(L,BARSLAST(LJL)),0.8,0),COLORCYAN; STICKLINE(LJL,OPEN,CLOSE,0.8,0),COLORYELLOW; DRAWTEXT(LJL,L*0.99,'支撐'),COLORF00FF0; GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5)); GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10)); GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20)); GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30)); BAIJIN1:=BARSLAST(CROSS(30,GJTJ1))<2 AND BARSLAST(CROSS(GJTJ1,50))<2; BAIJIN2:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2 AND GJTJ1>GJTJ4; BAIJIN3:=GJTJ1>60 AND GJTJ4>70; DRAWTEXT(BAIJIN1 AND BAIJIN2 AND BAIJIN3,L-0.02,'白金'); HUANGJIN1:=BARSLAST(CROSS(50,GJTJ1))<3 AND BARSLAST(CROSS(GJTJ1,50))<3; HUANGJIN2:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2 AND GJTJ1>GJTJ4; DRAWTEXT(HUANGJIN1 AND HUANGJIN2,L-0.03,'黃金'); XG:=BARSLAST(CROSS(GJTJ4,GJTJ1))<5 AND GJTJ1>GJTJ4; DRAWTEXT(COUNT(XG,3)=1 AND XG AND C>MA(C,20),L-0.02,'暴漲啟動(dòng)'),COLORRED; ZHENCANG1:=BARSLAST(CROSS(GJTJ4,GJTJ1))>3 AND BARSLAST(CROSS(GJTJ1,GJTJ4))<3; ZHENCANG2:=BARSLAST(CROSS(GJTJ4,GJTJ2)); ZHENCANG3:=GJTJ3<GJTJ4 AND GJTJ2<GJTJ4; ZHENCANG4:=BARSLAST(CROSS(GJTJ4,GJTJ3))>3 AND BARSLAST(CROSS(GJTJ1,GJTJ4))<3; ZHENCANG5:=GJTJ2<GJTJ3 AND GJTJ1=100; ZCB1:=ZHENCANG1>0 AND REF(ZHENCANG1,1)=0 AND REF(ZHENCANG1,2)>0; DRAWTEXT(ZHENCANG1 AND ZHENCANG2 AND ZHENCANG3 AND ZHENCANG4 AND ZHENCANG5,L-0.05,'震倉啟點(diǎn)'),COLORYELLOW; AA:=BARSLAST(CROSS(97,GJTJ1))<=1 AND BARSLAST(CROSS(GJTJ1,85))<=1; BB:=BARSLAST(CROSS(97,GJTJ2))<=1 AND BARSLAST(CROSS(GJTJ2,85))<=1; AA1:=AA AND BB; AAA:=BARSLAST(CROSS(97,GJTJ1))<=2 AND BARSLAST(CROSS(GJTJ1,85))<=1; BAA:=BARSLAST(CROSS(97,GJTJ2))<=2 AND BARSLAST(CROSS(GJTJ2,85))<=1; AA2:=AA AND BB ; AAAA:=BARSLAST(CROSS(97,GJTJ1))<=3 AND BARSLAST(CROSS(GJTJ1,85))<=1; BAAA:=BARSLAST(CROSS(97,GJTJ2))<=3 AND BARSLAST(CROSS(GJTJ2,85))<=1; AA3:=AAAA AND BAAA ; BB1:=REF(AA1,1); BB2:=REF(AA2,1); BB3:=REF(AA3,1); DD1:=GJTJ1=100 AND GJTJ2=100 AND AA1 ; DD2:=GJTJ1=100 AND GJTJ2=100 AND AA2 ; DD3:=GJTJ1=100 AND GJTJ2=100 AND AA3 ; DRAWTEXT(DD1 OR DD2 OR DD3,L-0.02,'短線追漲'),COLORBROWN; AW:=BARSLAST(CROSS(95,GJTJ1))<=2; BW:=BARSLAST(CROSS(95,GJTJ2))<=2; EW:= GJTJ4<GJTJ1 AND GJTJ1<GJTJ3; FW:=GJTJ2>50 AND GJTJ3>50; GW:=GJTJ1=100 AND GJTJ2=100; TXW:=COUNT(GW,2)=1; DRAWTEXT(AW AND BW AND EW AND FW AND TXW,L-0.03,'起漲首日'),COLORBLUE; AQ:=GJTJ3=100; BQ:=GJTJ4<90; DRAWTEXT(COUNT(AQ,2) = 2 AND BQ,L-0.02,'波啟前兆'),COLORCYAN; AA8:=AMOUNT/V; BB8:=L<AA8*0.9; CC1:=(C-REF(C,1))/REF(C,1)*100>1.2; DD8:=L<MA(C,5)*0.921; EE1:=V<MA(V,5)*1.5; 老鼠倉:=BB1 AND CC1 AND DD1 AND EE1,LINETHICK0; DRAWTEXT(老鼠倉,(LOW* 0.99),'老鼠倉'),COLORLIGREEN; 轉(zhuǎn)載請(qǐng)注明出自股海明燈論壇 http://www./,本貼地址:http://www./thread-103282-1-1.html
|
|