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);
};
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);
};