VAR1:=IF((CLOSEOPEN),((CLOSE-OPEN)*VOL),IF((CLOSEOPEN),((CLOSE-OPEN)*VOL),0));
VAR2:=IF((CLOSEREF(CLOSE,1)),((CLOSE-REF(CLOSE,1))*VOL),IF((CLOSEREF(CLOSE,1)),((CLOSE-REF(CLOSE,1))*VOL),0));
VAR3:=IF((OPENREF(CLOSE,1)),((OPEN-REF(CLOSE,1))*VOL),IF((OPENREF(CLOSE,1)),((OPEN-REF(CLOSE,1))*VOL),0));
VAR4:=IF((CLOSEOPEN),((OPEN-CLOSE)*VOL),IF((CLOSEOPEN),((OPEN-CLOSE)*VOL),0));
VAR5:=IF((CLOSEREF(CLOSE,1)),((REF(CLOSE,1)-CLOSE)*VOL),IF((CLOSEREF(CLOSE,1)),((REF(CLOSE,1)-CLOSE)*VOL),0));
VAR6:=IF((OPENREF(CLOSE,1)),((REF(CLOSE,1)-OPEN)*VOL),IF((OPENREF(CLOSE,1)),((REF(CLOSE,1)-OPEN)*VOL),0));
VAR7:=(CLOSEOPEN);
VAR8:=(CLOSEREF(CLOSE,1));
VAR9:=(OPENREF(CLOSE,1));
VARA:=((VAR7ORVAR8)ORVAR9);
机构:(SUM(((((VAR1+VAR2)+VAR3)/3)/CAPITAL),5)*1000);
散户:(SUM(((((VAR4+VAR5)+VAR6)/3)/CAPITAL),10)*1000);
系数:EMA((((((((COUNT(VAR8,12)/12)+(COUNT(VAR7,12)/12))+(COUNT(VAR9,12)/12))/3)*MA(机构,5))*2)*1.1),2),COLORRED;
平衡:0,POINTDOT,COLORGREEN;
DIF:=EMA(CLOSE,13)-EMA(CLOSE,28),NODRAW;
DEA:=EMA(DIF,8),NODRAW;
MACD:(DIF-DEA)*5,NODRAW;
VAR9:=((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100);
VAR10:=SMA(VAR9,3,1);
VAR11:=SMA(VAR10,3,1);
VAR12:=SMA(VAR11,3,1);
STICKLINE((MACD0),0,MACD,3.2,0),COLOR000033;
STICKLINE((MACD0),0,MACD,2.7,0),COLOR000066;
STICKLINE((MACD0),0,MACD,2.1,0),COLOR000099;
STICKLINE((MACD0),0,MACD,1.5,0),COLOR0000CC;
STICKLINE((MACD0),0,MACD,0.9,0),COLOR0000FF;
STICKLINE((MACD0),0,MACD,0.3,0),COLORCC66FF;
STICKLINE((MACD=0),0,MACD,3,2),COLOR990000;
STICKLINE((MACD=0),0,MACD,2.7,0),COLORCC0000;
STICKLINE((MACD=0),0,MACD,2.1,0),COLORFF4400;
STICKLINE((MACD=0),0,MACD,1.5,0),COLORFF8800;
STICKLINE((MACD=0),0,MACD,0.9,0),COLORFFCC00;
STICKLINE((MACD=0),0,MACD,0.3,0),COLORCYAN;
STICKLINE((MACDREF(MACD,1)ANDMACD0),0,MACD,3,2),COLOR990000;
STICKLINE((MACDREF(MACD,1)ANDMACD0),0,MACD,2.7,0),COLORCC0000;
STICKLINE((MACDREF(MACD,1)ANDMACD0),0,MACD,2.1,0),COLORFF4400;
STICKLINE((MACDREF(MACD,1)ANDMACD0),0,MACD,1.5,0),COLORFF8800;
STICKLINE((MACDREF(MACD,1)ANDMACD0),0,MACD,0.9,0),COLORFFCC00;
STICKLINE((MACDREF(MACD,1)ANDMACD0),0,MACD,0.3,0),COLORCYAN;
STICKLINE((MACDREF(MACD,1)ANDMACD0),0,MACD,3.2,0),COLOR000033;
STICKLINE((MACDREF(MACD,1)ANDMACD0),0,MACD,2.7,0),COLOR000066;
STICKLINE((MACDREF(MACD,1)ANDMACD0),0,MACD,2.1,0),COLOR000099;
STICKLINE((MACDREF(MACD,1)ANDMACD0),0,MACD,1.5,0),COLOR0000CC;
STICKLINE((MACDREF(MACD,1)ANDMACD0),0,MACD,0.9,0),COLOR0000FF;
STICKLINE((MACDREF(MACD,1)ANDMACD0),0,MACD,0.3,0),COLORCC66FF;
V1:=DMA((((H+L)+(C*2))/4),0.9);
HY1:=REF(EMA(V1,3),1);
多空:(MA((C-HY1)*10,2))*0.1,NODRAW;
换手:=V*100/CAPITAL;
:=MA(换手,4);
大户:=MA(换手,9);
中户:=MA(换手,17);
散户:=MA(换手,34);
均量:=(主力+大户+中户+散户)/4;
主力量:(主力-均量)COLORMAGENTA,NODRAW;
大户量:(大户-均量)COLORYELLOW,NODRAW;
中户量:(中户-均量)COLORLIBLUE,NODRAW;
散户量:(散户-均量)COLORBLUE,NODRAW;
操盘:STICKLINE(主力量=0AND主力量=REF(主力量,1),5,5+主力量,1.5,0),COLORRED;
减仓:STICKLINE(主力量=0AND主力量REF(主力量,1),5,5+主力量,1.5,0),COLORYELLOW;
反弹:STICKLINE(主力量0AND主力量=REF(主力量,1),5,5+主力量,1.5,0),COLORGREEN;
寻底:STICKLINE(主力量0AND主力量REF(主力量,1),5,5+主力量,1.5,0),COLORGREEN;
操盘4:STICKLINE(多空=0AND多空=REF(多空,1),10,10+多空,1.5,0),COLORRED;
减仓4:STICKLINE(多空=0AND多空REF(多空,1),10,10+多空,1.5,0),COLORRED;
反弹4:STICKLINE(多空0AND多空=REF(多空,1),10,10+多空,1.5,0),COLORGREEN;
寻底4:STICKLINE(多空0AND多空REF(多空,1),10,10+多空,1.5,0),COLORGREEN;
STICKLINE(C,90,90,0.9,0.9),COLOR883333;
STICKLINE(C,10,10,0.9,0.9),COLOR883333;
散户:=100*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60));
RSV:=(CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100;
RSV1:=(C-MA(C,4))/MA(C,4)*100;
VAR2:=REF(LOW,1);
VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;
VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3);
VAR5:=LLV(LOW,30);
VAR6:=HHV(VAR4,30);
VAR7:=IF(MA(CLOSE,58),1,0);
VAR8:=EMA(IF(LOW=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;
VAR9:=IF(VAR8100,100,VAR8);
K:=SMA(RSV,5,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
主力:=EMA(J,6),COLORYELLOW;
AA3:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;
AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
AA5:=SMA(AA4,13,8);
走势:=CEILING(SMA(AA5,13,8)),COLORRED,LINETHICK2;
AA6:=SMA(AA3,21,8);
买观注:STICKLINE(走势-AA6-65,0,7,15,1);
DRAWICON(FILTER(JREF(J,1)AND走势=REF(走势,1)AND走势25,5),走势,1);
卖观注:STICKLINE(走势-AA685,98,90,15,1),COLORFFFF00;
DRAWICON(FILTER(JREF(J,1)AND走势=REF(走势,1)ANDJ85,5),J,2);
吸筹:STICKLINE(VAR9-120,50,50+(VAR9/2),8,1),COLORRED;
CDMA:EMA(EMA(RSV1,7),7)*8,NODRAW,COLORWHITE;
STICKLINE(CDMA=0ANDCDMA=REF(CDMA,1),50,50+CDMA,2.5,0),COLORDD55CC;
STICKLINE(CDMA=0ANDCDMA=REF(CDMA,1),50,50+CDMA,2.5,1),COLORDD55CC;
STICKLINE(CDMA=0ANDCDMA=REF(CDMA,1),50,50+CDMA,2.5,1),COLOR00D080;
STICKLINE(CDMA=0ANDCDMA=REF(CDMA,1),50,50+CDMA,2.5,0),COLOR00D080;
快线:(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,LINETHICK2,COLOR333333;
散户线:散户,COLORFFFFFF,LINETHICK1;
主力线:主力,COLORYELLOW;
走势线:走势,COLORRED,LINETHICK3;
DRAWTEXT(ISLASTBAR,散户线, 散户线 ),COLORFFFFFF;
DRAWTEXT(ISLASTBAR,主力线, 主力线 ),COLORYELLOW;
DRAWTEXT(ISLASTBAR,走势线, 走势线 ),COLORRED;
关注低买:IF(90散户ANDCROSS(90,散户),98,0),COLORMAGENTA,STICK,NODRAW;
{高抛低吸:IF(散户10ANDCROSS(10,散户),20,0),COLORGREEN,STICK,NODRAW;}
风险:COUNT(RSI.RSI1(6,12,24)80,3)=3ANDCROSS(RSI.RSI2(6,12,24),79.5),NODRAW;
观注顶:(散户8AND主力90AND走势90ANDCDMA=REF(CDMA,1)AND散户线),COLORGREEN,NODRAW;
DRAWTEXT(观注顶,-1, ◆ ),COLORGREEN;
DRAWTEXT(风险,95, 风险 ),COLOR00FFFF;
STICKLINE(关注低买,0,100,0,-1),COLORMAGENTA;
{STICKLINE(高抛低吸,0,100,0,-1),COLORGREEN;};
A:=IF((CLOSE126.32),(AMOUNT)/(100000),VOL);
主力:MA(A,4),LINETHICK0,COLORYELLOW;
游资:MA(A,8),LINETHICK0,COLOR00FF00;
大户:MA(A,16),LINETHICK0,COLORRED;
散户:MA(A,32),LINETHICK0,COLORF0F000;
主比:ABS(((主力)/(主力+游资+大户+散户))*(100)),LINESTICK,COLORYELLOW;
游比:ABS(((游资)/(主力+游资+大户+散户))*(100)),LINESTICK,COLOR00FF00;
大比:ABS(((大户)/(主力+游资+大户+散户))*(100)),LINESTICK,COLORRED;
散比:ABS(((散户)/(主力+游资+大户+散户))*(100)),LINESTICK,COLORF0F000;
警戒线:MA(A,180),COLORFF66FF,LINETHICK1;
STICKLINE((主力0),0,主力,3,0),COLOR009CFF;
STICKLINE((主力0),0,主力,2.8,0),COLOR009CFF;
STICKLINE((主力0),0,主力,2.5,0),COLOR00C0FF;
STICKLINE((主力0),0,主力,1.5,0),COLOR00D1FF;
STICKLINE((主力0),0,主力,1,0),COLOR00EAFF;
STICKLINE((主力0),0,主力,0.7,0),COLORYELLOW;
STICKLINE((游资0),0,游资,3,0),COLOR00C100;
STICKLINE((游资0),0,游资,2.8,0),COLOR00CA00;
STICKLINE((游资0),0,游资,2.5,0),COLOR00D300;
STICKLINE((游资0),0,游资,1.5,0),COLOR00DB00;
STICKLINE((游资0),0,游资,1,0),COLOR00EA00;
STICKLINE((游资0),0,游资,0.7,0),COLORGREEN;
STICKLINE((大户0),0,大户,3,0),COLOR1020AA;
STICKLINE((大户0),0,大户,2.8,0),COLOR1020BB;
STICKLINE((大户0),0,大户,2.5,0),COLOR1020CC;
STICKLINE((大户0),0,大户,1.5,0),COLOR1020DD;
STICKLINE((大户0),0,大户,1,0),COLOR1020EE;
STICKLINE((大户0),0,大户,0.7,0),COLORRED;
STICKLINE((散户0),0,散户,3,0),COLORFF7700;
STICKLINE((散户0),0,散户,2.8,0),COLORFF8800;
STICKLINE((散户0),0,散户,2.5,0),COLORFF9900;
STICKLINE((散户0),0,散户,1.5,0),COLORFFAA00;STICKLINE((散户0),0,散户,1,0),COLORFFBB00;
STICKLINE((散户0),0,散户,0.7,0),COLORLIBLUE;