通达信主力吸筹指标公式
{主力吸筹}
VA1:=EMA(ABS(C-REF(L,1)),5)/EMA(MAX(C-REF(L,1),0),5)*1000;
VA2:=EMA(VA1,5);
VA3:=LLV(L,15);
VA4:=HHV(VA2,15);
VA5:=IF(BARSCOUNT(C)>20,1,0);
散户线:EMA(IF(L<=VA3,(VA2+2*VA4)/2,0),3)/600*VA5,NODRAW,COLOREE00EE;
散户接盘:IF(散户线>0,散户线,0),STICK,LINETHICK1,COLORFF9900;
STICKLINE(散户线>0,散户线,0,2,1),COLORFF9900;
主力低位吸筹:IF((HHV(REF(散户线,1),5)>8 AND 散户线<REF(散户线,1) AND C<REF(C,1) AND C<L*1.015
AND C=LLV(C,10) AND L=LLV(L,10)) OR (散户线>8 AND
散户线>REF(散户线,1) AND C>REF(C,1)),散户线,0),COLORFF00FF,STICK,LINETHICK4;
主力吸筹:IF(REF(散户线,1)<0.5 AND 散户线<0.5 AND 散户线<=REF(散户线,1) AND C>MA(C,10) AND
MA(C,10)>REF(MA(C,10),1),5,0),COLOR0000AA,STICK,LINETHICK4;
DRAWTEXT_FIX(ISLASTBAR AND 散户线>0.5,0.9,0.1,0,'散户接盘'),COLORFFFFFF;
DRAWTEXT_FIX(ISLASTBAR AND 主力低位吸筹=散户线 AND 散户线>0,0.9,0.1,0,'主力低位吸筹'),COLORFFFFFF;
DRAWTEXT_FIX(ISLASTBAR AND 主力吸筹=5,0.9,0.1,0,'主力吸筹'),COLOR00FFFF;