通达信换手明细指标公式通达信公式
历史量比:VOL/MA(VOL,5);
换手:VOL*100/CAPITAL,STICK;
二日换手:SUM(换手,2);
三日换手:SUM(换手,3);
五日换手:SUM(换手,5);
十日换手:SUM(换手,10);
二十日换手:SUM(换手,20);
三十日换手:SUM(换手,30);
STICKLINE(换手<=1,0,VOL,3,0),COLORWHITE;
STICKLINE(换手>1 AND 换手<=3 ,0,VOL,3,0),COLOR00FF00;
STICKLINE(换手>3 AND 换手<=5 ,0,VOL,3,0),COLORF0F000;
STICKLINE(换手>5 AND 换手<=8 ,0,VOL,3,0),COLOR8788F6;
STICKLINE(换手>8 AND 换手<=10 ,0,VOL,3,0),COLORYELLOW;
STICKLINE(换手>10 AND 换手<=15 ,0,VOL,3,0),COLORFF00FF;
STICKLINE(换手>15 ,0,VOL,3,0),COLORRED;
DRAWTEXT(换手<=1,VOL+1000,'1'),COLORYELLOW;
DRAWTEXT(换手>1 AND 换手<=3,VOL+1000,'1'),COLORYELLOW;
DRAWTEXT(换手>3 AND 换手<=5,VOL+1000,'3'),COLORYELLOW;
DRAWTEXT(换手>5 AND 换手<=8,VOL+1000,'5'),COLORYELLOW;
DRAWTEXT(换手>8 AND 换手<=10,VOL+1000,'8'),COLORYELLOW;
DRAWTEXT(换手>10 AND 换手<=15,VOL+1000,'10'),COLORYELLOW;
DRAWTEXT(换手>15,VOL-15000,' 15'),COLORYELLOW;
{大智慧1下面不用}
主力1:=IF(换手>10,V*0.9,V*0.1);
主力2:=IF(BETWEEN(换手,8,10),V*0.8,V*0.2);
主力3:=IF(BETWEEN(换手,5,8),V*0.6,V*0.4);
主力动向:(主力1+主力2+主力3)/3,COLORRED,LINETHICK0;
散户1:=IF(BETWEEN(换手,5,3),V*0.6,V*0.4);
散户2:=IF(BETWEEN(换手,3,1),V*0.8,V*0.2);
散户3:=IF(换手<1,V*0.9,V*0.1);
散户动向:(散户1+散户2+散户3)/3,COLORYELLOW,LINETHICK0;
MV1:EMA(V,9),COLOR0057FF;
MV2:EMA(V,34),COLORF1910E;
IF(MV1>MV2,MV1,DRAWNULL),COLORYELLOW;
IF(MV1<MV2,MV2,DRAWNULL),COLORFF9900;
DRAWBAND(MV1,RGB(155,0,0),MV2,RGB(0,100,0));
DRAWBAND(主力动向,RGB(255,0,0),散户动向,RGB(0,150,0));