MA1:=MA(CLOSE,5); MA2:=MA(CLOSE,21); CC0:=REF(C,1); 漲停:=IF((C-CC0)*100/CC0>=(10-0.01*100/CC0),1,0); STICKLINE(漲停,OPEN,CLOSE,-1,0),COLORMAGENTA; STICKLINE(漲停,H,L,0,0),COLORMAGENTA; 漲停柱:=REF(C,BARSLAST(漲停)); 漲停線:STICKLINE(C,漲停柱,漲停柱,1,0),COLORMAGENTA; 前前停:REF(C,SUMBARS(漲停,2)-1),POINTDOT,COLORMAGENTA; 換手率:=VOL/CAPITAL*100; 倍量:=VOL/REF(VOL,1)>3 AND 換手率>5 AND C>REF(C,1); STICKLINE(倍量,OPEN,CLOSE,5,1),COLORGREEN;{劃柱線} STICKLINE(倍量,OPEN,CLOSE,3,0),COLORRED;{劃柱線} 倍:=FILTER(倍量,1); 倍量柱:=REF(C,BARSLAST(倍量)); 倍量線:STICKLINE(C,倍量柱,倍量柱,19,-1),COLORRED; TY:=C; DD1:=REF(TY,N)=HHV(TY,2*N+1); BB1:=FILTER(DD1,N); CC1:=BACKSET(BB1,N+1); HD:=FILTER(CC1,N); DD2:=REF(C,N1)=HHV(C,2*N1+1); BB2:=FILTER(DD2,N1); CC2:=BACKSET(BB2,N1+1); HD2:=FILTER(CC2,N1); AA:=REF(TY,N)=LLV(TY,2*N+1); BB:=FILTER(AA,N); CC:=BACKSET(BB,N+1); LD:=FILTER(CC,N); 前高10:REF(C,BARSLAST(HD)),COLORGREEN,POINTDOT; STICKLINE(C,前高10,前高10,9,0),COLORGREEN; 前前10:REF(C,SUMBARS(HD,2)-1),POINTDOT,COLORGREEN; {STICKLINE(H,前峰10,前峰10,9,0),COLORGREEN,DOTLINE,POINTDOT;} 前期谷底:=REF(L,BARSLAST(LD)); STICKLINE(L,前期谷底,前期谷底,9,-1),COLORYELLOW; {DRAWICON(CROSS(C,前高10),前高10+0,1); DRAWICON(CROSS(C,前高34),前高34-0.4,11);} 前高34:REF(C,BARSLAST(HD2))COLORCYAN,POINTDOT; STICKLINE(C,前高34,前高34,9,0),COLORCYAN,LINETHICK3; 前前34:REF(C,SUMBARS(HD2,2)-1),POINTDOT,COLORCYAN; A2:=REF(C,55)=HHV(C,2*55+1); B2:=FILTER(A2,55); D2:=BACKSET(B2,55+1); HD55:=FILTER(D2,55); 前高55:REF(C,BARSLAST(HD55))COLORWHITE,POINTDOT; STICKLINE(C,前高55,前高55,9,0),COLORWHITE,LINETHICK3; 峰頂55:REF(H,BARSLAST(HD55))COLORWHITE,POINTDOT; STICKLINE(C,峰頂55,峰頂55,9,0),COLORWHITE,DOTLINE,POINTDOT; 主力籌碼集中度:=(WINNER(C)*100)>99.9; 散戶籌碼集中度:=(WINNER(C*1.1)-WINNER(C*0.9))*100,; 散戶潰敗:=散戶籌碼集中度<=21&&主力籌碼集中度>=89; 籌碼柱:=REF(C,BARSLAST(主力籌碼集中度||散戶潰敗)); 線:STICKLINE(C,籌碼柱,籌碼柱,1,0),COLORBLUE,LINETHICK4; {DRAWICON(CROSS(C,籌碼柱),籌碼柱-0.3,23);} DRAWICON(主力籌碼集中度||散戶潰敗,C+0.4,41); 三日量縮:=MAX(MAX(V,REF(V,1)),REF(V,2))<=REF(V,3); 三日價漲:=MIN(MIN(C,REF(C,1)),REF(C,2))>=REF(C,3); 三日前陽線:=REF(CLOSE,3)>REF(OPEN,3); 三日不破最低:=MIN(MIN(C,REF(C,1)),REF(C,2))>=REF(O,3); 三日內低于前高:=MIN(MIN(C,REF(C,1)),REF(C,2))<REF(C,3); 四日前倍量柱:=REF(VOL,3)>REF(VOL,4); 黃金柱:=四日前倍量柱 AND 三日量縮 AND 三日價漲 AND 三日前陽線; BACKSET101:=BACKSET(黃金柱,4); FILTER101:=FILTER(BACKSET101,3); 黃金柱收盤價:REF(C,BARSLAST(FILTER101)),POINTDOT; DRAWTEXT(FILTER101,LOW*0.986,'↖黃金柱'),COLORYELLOW; STICKLINE(FILTER101,O,C,1,0),COLORYELLOW; STICKLINE(1,黃金柱收盤價,黃金柱收盤價,1,0),COLORYELLOW; 將軍柱:=四日前倍量柱 AND 三日量縮 AND 三日不破最低 AND 三日內低于前高 AND 三日前陽線; BACKSET102:=BACKSET(將軍柱,4); FILTER102:=FILTER(BACKSET102,3); 將軍柱收盤價:REF(C,BARSLAST(FILTER102)),POINTDOT; DRAWTEXT(FILTER102,LOW*0.986,'↖將軍柱'),COLOR0082FF; STICKLINE(FILTER102,O,C,1,0),COLOR0082FF; STICKLINE(C,將軍柱收盤價,將軍柱收盤價,1,0),COLOR0082FF; { N:=20; MIDA:=MA(C,N); VART1:=POW((C-MIDA),2); VART2:=MA(VART1,N); VART3:=SQRT(VART2); UPPERA:=MIDA+2*VART3; LOWERA:=MIDA-2*VART3; BOLL:REF(MIDA,1); UB:REF(UPPERA,1); LB:REF(LOWERA,1); }; |
|