阶段筹码变化副图指标 源码 通达信 贴图
{参数:P(10,1,100),A(5,1,100);}
SVOL:=INTPART(SUM(V,0)/CAPITAL);
TJ0:=SVOL REF(SVOL,1) OR BARSSINCE(CLOSE)=0;
S1:=BARSLAST(TJ0)+1;
TJ2:=S1 REF(S1,1);
S2:=IF(TJ2,REF(S1,1)+1,S1);
S3:=SUM(TJ2,0);
ZK1:= KD.K#WEEK (9,3,3);
ZD2:= KD.D#WEEK (9,3,3);
ZF1:= MACD.DIF#WEEK (12,26,9);
ZA2:= MACD.DEA#WEEK (12,26,9);
换手:=V/CAPITAL*100,LINETHICK0;
JCD:=FILTER(CROSS(ZK1,ZD2) AND REF(ZD2,1) 30,13),NODRAW;
取点:=BARSLAST(JCD);
吸筹区:=IF(取点 0 AND 取点 61,取点,0);
ZS1:=吸筹区;
ZS2:=吸筹区+1;
ZS3:=换手/5;
ZSA:=IF(ZS1 0,SUM((ZS3),吸筹区+1),0),NODRAW;
主力筹码%:ZSA,NODRAW;
建仓天数:ZS1,NODRAW;
阶段总额(万):=SUM(AMOUNT/10000,S2)*100,NODRAW;
阶段总量(手):=SUM(V,S2)*100,NODRAW;
阶段成本(元):(阶段总额(万)/(阶段总量(手)/100)),NODRAW;
换手冷清:STICKLINE(换手 3,(0-6)*4,(换手-6)*4,2,0),COLOR339900;
STICKLINE(换手 3,(0-6)*4,(换手-6)*4,1.3,0),COLOR33BB00;
STICKLINE(换手 3,(0-6)*4,(换手-6)*4,0.8,0),COLOR33DD00;
STICKLINE(换手 3,(0-6)*4,(换手-6)*4,0.3,0),COLOR33FF00;
换手活跃:STICKLINE(换手 =3 AND 换手 7,(0-6)*4,(换手-6)*4,2,0),COLOR880088;
STICKLINE(换手 =3 AND 换手 7,(0-6)*4,(换手-6)*4,1.3,0),COLORAA00AA;
STICKLINE(换手 =3 AND 换手 7,(0-6)*4,(换手-6)*4,0.8,0),COLORDD00DD;
STICKLINE(换手 =3 AND 换手 7,(0-6)*4,(换手-6)*4,0.3,0),COLORFF00FF;
换手热烈:STICKLINE(换手 =7,(0-6)*4,(换手-6)*4,1.5,1),COLOR0000DD;
STICKLINE(换手 =7,(0-6)*4,(换手-6)*4,2,0),COLOR000088;
STICKLINE(换手 =7,(0-6)*4,(换手-6)*4,1.5,0),COLOR0000AA;
STICKLINE(换手 =7,(0-6)*4,(换手-6)*4,0.8,0),COLOR0000DD;
STICKLINE(换手 =7,(0-6)*4,(换手-6)*4,0.3,0),COLOR0000FF;
STICKLINE(JCD,(0-6)*4,6*4,4,0),COLORRED;
N:=2.5;
VAR2:=LLV(LOW,10);
VAR3:=HHV(HIGH,25);
卖出:14.5*N,COLORGREEN,POINTDOT;
清仓:17.5*N,COLORBLUE;
动力线:= (EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4)*10-17.5)*N;
STICKLINE(动力线 REF(动力线,1) ,动力线 ,REF(动力线,1),4 ,1),COLORRED;
STICKLINE(动力线 =REF(动力线,1) ,动力线 ,REF(动力线,1),4 ,1),COLOR00FF00;
底部:-15.5*N,COLORRED;
关注:-12.5*N,COLORFF00FF,POINTDOT;
T1:=FILTER(CROSS(动力线,关注),20);
T2:=FILTER(CROSS(动力线,底部),20);
T3:=FILTER(CROSS(清仓,动力线),20);
T4:=FILTER(CROSS(卖出,动力线),20);
RSV:=((((HHV(HIGH,P) - CLOSE) / (HHV(HIGH,P) - LLV(LOW,P))) * 200) - 125);
散户:SMA(RSV,A,1)+15,COLORGRAY,LINETHICK2;
RSV1:=((((CLOSE - LLV(LOW,P)) / (HHV(HIGH,P) - LLV(LOW,P))) * 200) - 105);
主力:SMA(RSV1,A,1)+15,COLORBLUE,LINETHICK2;
IF(散户 0,散户,DRAWNULL),COLOR00FF00,LINETHICK2;
IF(散户 REF(散户,1) AND 散户 0,散户,DRAWNULL),COLORYELLOW,LINETHICK2;
IF(主力 0,主力,DRAWNULL),COLORRED,LINETHICK2;
IF(主力 REF(主力,1) AND 0 主力 清仓,主力,DRAWNULL),COLORBLUE,LINETHICK2;
IF(主力 REF(主力,1) AND 主力 0,主力,DRAWNULL),COLORFF00FF,LINETHICK2;
DRAWICON(主力 REF(主力,1) AND 主力 0,主力,15);
{DRAWICON(主力 REF(主力,1) AND 0 主力 清仓,主力,19);}
准备起爆:=CROSS(主力,散户);
STICKLINE(准备起爆,10,-10,5,0),COLOR009999;
STICKLINE(准备起爆,10,-10,3,0),COLOR00BBBB;
STICKLINE(准备起爆,10,-10,1.3,0),COLOR00DDDD;
STICKLINE(准备起爆,10,-10,0.4,0),COLOR00FFFF;
小心阴跌一:=CROSS(散户,主力);
STICKLINE(小心阴跌一,10,-10,4,0),COLORBLUE;
DRAWICON((T1 OR T2),0 ,1);
DRAWTEXT((T3 OR T4),0,'$'),COLOR00FF00;
DRAWTEXT(准备起爆,5,'全买'),COLOR0000FF;