BL:=vol/CAPITAL;
资金进:=SUM(IF(CLOSE>OPEN,BL,0),20),LINETHICK0;
资金出:=SUM(IF(CLOSE<=OPEN,BL,0),20),LINETHICK0;
资金流向:(SUM(资金进-资金出,3))*15,COLORFF00FF,LINETHICK2;
STICKLINE(资金流向>0,0,资金流向,0.4,0),COLORFF80FF;
STICKLINE(资金流向<0,0,资金流向,0.4,0),COLORFF8000;
VAR2:=IF(MONTH<12,1,1);
VAR3:=(2*CLOSE+HIGH+LOW)/4;
VAR4:=LLV(LOW,34);
VAR5:=HHV(HIGH,34);
主力:EMA((VAR3-VAR4)/(VAR5-VAR4)*100,13)*VAR2,LINETHICK1,COLOR0000FF;
散户:EMA(0.667*REF(主力,1)+0.333*主力,2),COLOR00FF00;
DRAWTEXT(crOSS(主力,散户) AND 主力<22,20,'起动'),LINETHICK2,COLORFFFF00;
DRAWICON(CROSS(主力,散户) AND 主力<22,25,5);
DRAWTEXT(CROSS(主力,30) AND 散户<主力,35,'上扬 '),LINETHICK2,COLOR00CCFF;
DRAWICON(CROSS(主力,30) AND 散户<主力,35,5);
DRAWTEXT(CROSS(主力,65) AND 散户<主力,90,'冲顶 '),LINETHICK2,COLOR9933FF;
DRAWICON(CROSS(主力,65) AND 散户<主力,70,6);
DRAWTEXT(CROSS(主力,75) AND 散户<主力,主力,'小心被套'),LINETHICK2,COLOR00FFFF;
DRAWICON(CROSS(主力,75) AND 散户<主力,80,6);
DRAWTEXT(CROSS(散户,主力) AND 散户>75,85,'头部'),COLORFF00FF;
买:IF(CROSS(主力,散户) AND 主力<30,20,5),COLORC0C0C0;
卖:IF(CROSS(散户,主力) AND 散户>75,80,90),COLORBROWN;
A1:="kd.K"(9,3,3);
A2:="KD.D"(9,3,3);
RASV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9));
KK:=SMA(RASV,3,1);
DD:=SMA(KK,3,1);
JA:=3*KK-2*DD;
周J:MA("kdj.J#WEEK"(9,3,3) ,5),COLORBLUE,LINETHICK2;
IF(周J>=REF(周J,1),周J,DRAWNULL),COLORYELLOW,LINETHICK3;