通达信主力量差分时指标公式
2020/4/15 18:01:26
A1:=(DVOL/C)/2,NODRAW;
A2:=SUM(IF(A1>100 AND CLOSE>REF(CLOSE,1),A1,0),0);
A3:=SUM(IF(A1>100 AND CLOSE<REF(CLOSE,1),A1,0),0);
A4:=SUM(IF(A1<100 AND CLOSE>REF(CLOSE,1),A1,0),0);
A5:=SUM(IF(A1<100 AND CLOSE<REF(CLOSE,1),A1,0),0);
A6:=A2+A3+A4+A5;
机买:(A2/A6)*100,COLORRED,LINETHICK1,NODRAW;
机卖:(A3/A6)*100,LINETHICK1,COLORCYAN,NODRAW;
散买:(A4/A6)*100,LINETHICK1,COLORMAGENTA;
散卖:(A5/A6)*100,LINETHICK1,COLORGREEN;
主力差:机买-机卖,LINETHICK1,COLORRED;
IF(主力差<= REF(主力差,1),主力差,DRAWNULL),COLORCYAN,LINETHICK1;
STICKLINE(主力差>REF(主力差,1),主力差,REF(主力差,1)*3,2,0),COLORRED;
STICKLINE(主力差<=REF(主力差,1),主力差,REF(主力差,1)*3,2,0),COLORCYAN;
{www.kanguba.com 看股吧_通达信股票指标公式}
STICKLINE(主力差>REF(主力差,1) AND REF(主力差,1)>REF(主力差,2),主力差,REF(主力差,1),10,0),COLORRED;
STICKLINE(主力差>REF(主力差,1) AND REF(主力差,1)<REF(主力差,2),主力差,REF(主力差,1),10,1),COLORRED;
STICKLINE(主力差>REF(主力差,1) AND REF(主力差,1)<REF(主力差,2),主力差,REF(主力差,1),10,0),COLORRED;
STICKLINE(主力差<REF(主力差,1),主力差,REF(主力差,1),10,0),COLORCYAN;
散户差:散买-散卖,LINETHICK1,COLORMAGENTA,NODRAW;
DRAWTEXT(主力差>0 AND REF(主力差,1)<0,主力差,'●机买'),COLORRED;
DRAWTEXT(主力差<0 AND REF(主力差,1)>0,主力差,'○机卖'),COLORCYAN;
DRAWTEXT(散户差>0 AND REF(散户差,1)<0,主力差,'▲散买'),COLORMAGENTA;
DRAWTEXT(散户差<0 AND REF(散户差,1)>0,主力差,'△散卖'),COLORGREEN;
T:=BARSCOUNT(主力差);
LLV(主力差,T),DOTLINE,COLORWHITE;
XG:=LLV(主力差,480),DOTLINE,COLORWHITE,NODRAW;
TP:= FILTER( 主力差>=LLV(主力差,T) AND 主力差>MA(主力差,0)*2 AND DYNAINFO(17)>1 AND
TIME>39600,240);
DRAWTEXT(TP,L,'★突破'),COLORRED;
STICKLINE(FILTER(CROSS(主力差,REF(XG,1)),10),主力差*0.99,LLV(O,T),15,0),COLORWHITE;
DRAWTEXT(FILTER(CROSS(主力差,REF(XG,1)),10),主力差*0.99,'下破'),COLORWHITE;
XG1:=HHV(主力差,480),DOTLINE,COLORYELLOW,NODRAW;
HHV(主力差,T),DOTLINE,COLORYELLOW,;
TP1:= FILTER(主力差>=HHV(主力差,T) AND 主力差>MA(主力差,0)*2 AND DYNAINFO(17)>1 AND TIME>39600,240) ;
DRAWTEXT(TP1,L,'★突破'),COLORRED;
STICKLINE(FILTER(CROSS(主力差,REF(XG1,1)),10),主力差*0.99,HHV(O,T),10,0),COLORYELLOW;
DRAWTEXT(FILTER(CROSS(主力差,REF(XG1,1)),10),主力差*0.99,'上突'),COLORYELLOW;
看 股吧公式 www. kanguba.com
其它股票公式列表