(提供源码)
副图
{N代表横盘天数.N1代表股价整理的幅度.}
N:=42;N1:=20;
倍量柱:=IF(V/REF(V,1)>1.9 AND C>REF(C,1),1,0);
高量柱:=IF(V=HHV(V,10),3,2);
低量柱:=IF(V=LLV(V,10),9,8);
并肩平量柱:=IF((V/REF(V,1)>0.95 AND V/REF(V,1)<1.05),7,6);
缩量柱:=IF(V[
]梯量柱:=IF(V>REF(V,1) AND REF(V,1)>REF(V,2) AND REF(V,2)>REF(V,3),11,10);
DIFF2:=( EMA(CLOSE,12) - EMA(CLOSE,26))*100;
DEA2:=EMA(DIFF2,9);
LL:=倍量柱>0 OR 高量柱>2 OR 梯量柱>10;
V1:=REF(((HHV(H,N)-LLV(L,N))/LLV(L,N)),1)<=(N1/100) AND
C>=REF(HHV(H,N),1) AND BARSCOUNT(C)>N;
霸占选股:IF( CROSS(DIFF2,DEA2) AND LL AND V1 AND C>=REF(((C-O)/3)*2+O,14) AND C/REF(C,1)>=1.06 AND C>=REF(((C-O)/3)*2+O,10) ,100,0),COLORRED,LINETHICK2;
顺势而为
DIFF :=( EMA(CLOSE,12) - EMA(CLOSE,26))*100;
DEA :=EMA(DIFF,9);
MACD :=2*(DIFF-DEA);
绿柱消失买入:STICKLINE(DIFF<0,0,DIFF,2,0),COLOR00FF00;
红柱消失卖出:STICKLINE(DIFF>=0,0,DIFF,2,0),COLORRED;
STICKLINE(DEA>=0,0,DEA,2,0),COLORBLUE;
STICKLINE(DEA<0,0,DEA,2,0),COLORYELLOW;
DRAWICON(CROSS(DIFF,DEA),DEA*1.1,1);
DRAWICON(CROSS(DEA,DIFF),DEA*1.1,2);
强1:IF(DIFF>DEA,DIFF,DRAWNULL),COLORRED,LINETHICK2;
强2:IF(DEA
抄底:=ABS((CROSS("MACD.DIF","MACD.DEA")
&&"MACD.DEA"<=-0.07)*"MACD.DIF")*1.09,COLORLIMAGENTA,LINETHICK2;
DRAWTEXT(ABS(抄底)>0,抄底,' 抄底'),COLORRED;
DRAWICON(ABS(抄底)>0,抄底,9);
霸占选股
{N代表横盘天数.N1代表股价整理的幅度.}
N:=42;N1:=20;
倍量柱:=IF(V/REF(V,1)>1.9 AND C>REF(C,1),1,0);
高量柱:=IF(V=HHV(V,10),3,2);
低量柱:=IF(V=LLV(V,10),9,8);
并肩平量柱:=IF((V/REF(V,1)>0.95 AND V/REF(V,1)<1.05),7,6);
缩量柱:=IF(V[
]梯量柱:=IF(V>REF(V,1) AND REF(V,1)>REF(V,2) AND REF(V,2)>REF(V,3),11,10);
DIFF2:=( EMA(CLOSE,12) - EMA(CLOSE,26))*100;
DEA2:=EMA(DIFF2,9);
LL:=倍量柱>0 OR 高量柱>2 OR 梯量柱>10;
V1:=REF(((HHV(H,N)-LLV(L,N))/LLV(L,N)),1)<=(N1/100) AND
C>=REF(HHV(H,N),1) AND BARSCOUNT(C)>N;
霸占选股:IF( CROSS(DIFF2,DEA2) AND LL AND V1 AND C>=REF(((C-O)/3)*2+O,14) AND C/REF(C,1)>=1.06 AND C>=REF(((C-O)/3)*2+O,10) ,100,0),COLORRED,LINETHICK2;
量主
换手:VOL/CAPITAL*100,NODRAW;
低换手:换手<2,COLORFFFF00,NODRAW;
STICKLINE(换手<2,0,换手,2.3,0),COLORFF4400;
STICKLINE(换手<2,0,换手,1.8,0),COLORFF6600;
STICKLINE(换手<2,0,换手,1.3,0),COLORFF9900;
STICKLINE(换手<2,0,换手,0.6,0),COLORFFCC00;
STICKLINE(换手<2,0,换手,0.3,0),COLORGREEN;
温和换手:换手>2 AND 换手<5,COLORMAGENTA,NODRAW;
STICKLINE(换手>2 AND 换手<5,0,换手,2.3,0)COLORFF0033;
STICKLINE(换手>2 AND 换手<5,0,换手,1.8,0)COLORFF0066;
STICKLINE(换手>2 AND 换手<5,0,换手,1.2,0)COLORFF0099;
STICKLINE(换手>2 AND 换手<5,0,换手,0.6,0)COLORFF00CC;
STICKLINE(换手>2 AND 换手<5,0,换手,0.3,0)COLORFF00FF;
热换手:换手>5 AND 换手<11,COLORYELLOW,NODRAW;
STICKLINE(换手>5 AND 换手<11,0,换手,2.3,0)COLOR0035FF;
STICKLINE(换手>5 AND 换手<11,0,换手,1.8,0)COLOR0064FF;
STICKLINE(换手>5 AND 换手<11,0,换手,1.3,0)COLOR0093FF;
STICKLINE(换手>5 AND 换手<11,0,换手,0.8,0)COLOR00C2FF;
STICKLINE(换手>5 AND 换手<11,0,换手,0.3,0)COLOR00FFFF;
烫手换手:换手>11 AND 换手<17,COLORRED,NODRAW;
STICKLINE(换手>11 AND 换手<17,0,换手,2.3,0),COLOR000055;
STICKLINE(换手>11 AND 换手<17,0,换手,2,0),COLOR000077;
STICKLINE(换手>11 AND 换手<17,0,换手,1.8,0),COLOR000099;
STICKLINE(换手>11 AND 换手<17,0,换手,1.5,0),COLOR0000BB;
STICKLINE(换手>11 AND 换手<17,0,换手,0.9,0),COLOR0000DD;
STICKLINE(换手>11 AND 换手<17,0,换手,0.3,0),COLOR0000FF;
高潮换手:换手>17,COLORGREEN,NODRAW;
STICKLINE(换手>17,0,换手,2.3,0),COLOR006000;
STICKLINE(换手>17,0,换手,2.1,0),COLOR007500;
STICKLINE(换手>17,0,换手,1.8,0),COLOR009100;
STICKLINE(换手>17,0,换手,1.3,0),COLOR00A600;
STICKLINE(换手>17,0,换手,0.8,0),COLOR00BB00;
STICKLINE(换手>17,0,换手,0.3,0),COLOR00CC00;
DRAWICON(换手>25,换手,15);
五日换手:MA(换手,5);
十日换手:MA(换手,10);