阶段换手率统计指标《大智慧、通达信、飞狐》(源码、主图、贴图、说明)介绍
阶段换手率统计指标《大智慧、通达信、飞狐》(源码、主图、贴图、说明)
统计依据主要是根据周线MACD由零下转为零上时(个股有弱转强),统计该阶段至MACD重新转为零下的换手率,反映了个股在吸筹、震荡、拉升、派发的情况。统计点用MACD只是抛砖引玉,各位同学也可以更换自己的信号点进行换手率的统计。
{大智慧}
N:=REF("MACD.DIFF#WEEK",1)<0 AND "MACD.DIFF#WEEK">=0;{信号点}
AC:=BARSLAST(N);
HSL:100*VOL/CAPITAL,LINETHICK0;
HS100:=CROSS(SUM(HSL,AC)>=100,0.1) AND AC>0;
HS200:=CROSS(SUM(HSL,AC)>=200,0.1) AND AC>0;
HS300:=CROSS(SUM(HSL,AC)>=300,0.1) AND AC>0;
HS400:=CROSS(SUM(HSL,AC)>=400,0.1) AND AC>0;
HS500:=CROSS(SUM(HSL,AC)>=500,0.1) AND AC>0;
HS600:=CROSS(SUM(HSL,AC)>=600,0.1) AND AC>0;
HS700:=CROSS(SUM(HSL,AC)>=700,0.1) AND AC>0;
HS800:=CROSS(SUM(HSL,AC)>=800,0.1) AND AC>0;
HS900:=CROSS(SUM(HSL,AC)>=900,0.1) AND AC>0;
HS1000:=CROSS(SUM(HSL,AC)>=1000,0.1) AND AC>0;
DRAWTEXT(N,H*1.06,'起点'),COLORRED,ALIGN1;
TZHSL:=SUM(HSL,AC);
DRAWTEXTREL(820,25,'■起点至今换手率:'+NUMTOSTRN(TZHSL,2)+'% '),COLORFFCC99;
DRAWTEXT(HS100,H*1.06,'100%'),ALIGN1,COLORCYAN;
DRAWTEXT(HS200,H*1.06,'200%'),ALIGN1,COLORGREEN;
DRAWTEXT(HS300,H*1.06,'300%'),ALIGN1,COLORYELLOW;
DRAWTEXT(HS400,H*1.06,'400%'),ALIGN1,COLORFF00FF;
DRAWTEXT(HS500,H*1.06,'500%'),ALIGN1,COLORRED;
DRAWTEXT(HS600,H*1.06,'600%'),ALIGN1,COLORYELLOW;
DRAWTEXT(HS700,H*1.06,'700%'),ALIGN1,COLORFF00FF;
DRAWTEXT(HS800,H*1.06,'800%'),ALIGN1,COLORGREEN;
DRAWTEXT(HS900,H*1.06,'900%'),ALIGN1,COLORCYAN;
DRAWTEXT(HS1000,H*1.06,'1000%'),ALIGN1,COLORFFFFFF;
{通达信}
N:=REF("MACD.DIF#WEEK",1)<0 AND "MACD.DIF#WEEK">=0;{信号点}
AC:=BARSLAST(N);
HSL:=100*VOL/CAPITAL;
HS100:=CROSS(SUM(HSL,AC)>=100,0.1) AND AC>0;
HS200:=CROSS(SUM(HSL,AC)>=200,0.1) AND AC>0;
HS300:=CROSS(SUM(HSL,AC)>=300,0.1) AND AC>0;
HS400:=CROSS(SUM(HSL,AC)>=400,0.1) AND AC>0;
HS500:=CROSS(SUM(HSL,AC)>=500,0.1) AND AC>0;
HS600:=CROSS(SUM(HSL,AC)>=600,0.1) AND AC>0;
HS700:=CROSS(SUM(HSL,AC)>=700,0.1) AND AC>0;
HS800:=CROSS(SUM(HSL,AC)>=800,0.1) AND AC>0;
HS900:=CROSS(SUM(HSL,AC)>=900,0.1) AND AC>0;
HS1000:=CROSS(SUM(HSL,AC)>=1000,0.1) AND AC>0;
DRAWTEXT(N,H*1.06,'起点'),COLORRED;
TZHSL:=SUM(HSL,AC);
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.83,0.01,0,'■起点至今换手率:'),COLORFFCC99;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.96,0.01,0,'%'),COLORFFCC99;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.92,0.01,0,TZHSL),COLORFFCC99;
DRAWTEXT(HS100,H*1.03,'100%'),COLORCYAN;
DRAWTEXT(HS200,H*1.03,'200%'),COLORGREEN;
DRAWTEXT(HS300,H*1.03,'300%'),COLORYELLOW;
DRAWTEXT(HS400,H*1.03,'400%'),COLORFF00FF;
DRAWTEXT(HS500,H*1.03,'500%'),COLORRED;
DRAWTEXT(HS600,H*1.03,'600%'),COLORYELLOW;
DRAWTEXT(HS700,H*1.03,'700%'),COLORFF00FF;
DRAWTEXT(HS800,H*1.03,'800%'),COLORGREEN;
DRAWTEXT(HS900,H*1.03,'900%'),COLORCYAN;
DRAWTEXT(HS1000,H*1.03,'1000%'),COLORFFFFFF;
{飞狐}
N:=REF("MACD.DIFF#WEEK",1)<0 AND "MACD.DIFF#WEEK">=0;//信号点
AC:=BARSLAST(N);
HSL:100*VOL/CAPITAL,LINETHICK0;
HS100:=CROSS(SUM(HSL,AC)>=100,0.1) AND AC>0;
HS200:=CROSS(SUM(HSL,AC)>=200,0.1) AND AC>0;
HS300:=CROSS(SUM(HSL,AC)>=300,0.1) AND AC>0;
HS400:=CROSS(SUM(HSL,AC)>=400,0.1) AND AC>0;
HS500:=CROSS(SUM(HSL,AC)>=500,0.1) AND AC>0;
HS600:=CROSS(SUM(HSL,AC)>=600,0.1) AND AC>0;
HS700:=CROSS(SUM(HSL,AC)>=700,0.1) AND AC>0;
HS800:=CROSS(SUM(HSL,AC)>=800,0.1) AND AC>0;
HS900:=CROSS(SUM(HSL,AC)>=900,0.1) AND AC>0;
HS1000:=CROSS(SUM(HSL,AC)>=1000,0.1) AND AC>0;
DRAWTEXT(N,H*1.06,'起点'),COLORRED,ALIGN1;
TZHSL:=SUM(HSL,AC);
DRAWTEXTEX(C,1,850,10,'■起点至今换手率:'+NUMTOSTR(TZHSL,2)+'% '),COLORFFCC99;
DRAWTEXT(HS100,H*1.03,'100%'),ALIGN1,COLORCYAN;
DRAWTEXT(HS200,H*1.03,'200%'),ALIGN1,COLORGREEN;
DRAWTEXT(HS300,H*1.03,'300%'),ALIGN1,COLORYELLOW;
DRAWTEXT(HS400,H*1.03,'400%'),ALIGN1,COLORFF00FF;
DRAWTEXT(HS500,H*1.03,'500%'),ALIGN1,COLORRED;
DRAWTEXT(HS600,H*1.03,'600%'),ALIGN1,COLORYELLOW;
DRAWTEXT(HS700,H*1.03,'700%'),ALIGN1,COLORFF00FF;
DRAWTEXT(HS800,H*1.03,'800%'),ALIGN1,COLORGREEN;
DRAWTEXT(HS900,H*1.03,'900%'),ALIGN1,COLORCYAN;
DRAWTEXT(HS1000,H*1.03,'1000%'),ALIGN1,COLORFFFFFF;
gd14396