ZBGS:=EMA(WINNER(CLOSE)*70,3);{//主力籌碼估算}HJ:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);{//散戶籌碼估算}ZBGSHJ:=HJ/(ZBGS+HJ)*100;{//散戶套牢籌碼比率}ZZLKP:=ZBGS/(ZBGS+HJ)*100;{//主力控盤籌碼比率}ZCMZL:=MA(ZBGS+HJ,13);{//市場籌碼總量}ZZNTS:=BARSLAST(ZBGSHJ<90 AND REF(ZBGSHJ,1)>90);{//走牛天數(shù)}GSKZ:=EMA(ZBGSHJ,89);{//散戶警戒}GSKZZB:=EMA(ZZLKP,89);{//主力警戒}ZJLRQD:=INTPART(ZZLKP-GSKZZB);{//資金流入強度}SH8:=EMA(ZBGSHJ,8);DKB:=IF(ZZLKP-REF(ZZLKP,1)>ZBGSHJ-REF(ZBGSHJ,1),1,0);{//散戶套牢籌碼}STICKLINE(GSKZZB>REF(GSKZZB,1),ZZLKP,20,3,0),COLOR00BBBB;STICKLINE(GSKZZB>REF(GSKZZB,1),ZZLKP,20,2.5,0),COLOR00CCCC;STICKLINE(GSKZZB>REF(GSKZZB,1),ZZLKP,20,2,0),COLOR00DDDD;STICKLINE(GSKZZB>REF(GSKZZB,1),ZZLKP,20,1.5,0),COLOR00EEEE;STICKLINE(GSKZZB>REF(GSKZZB,1),ZZLKP,20,1,0),COLOR00FFFF;STICKLINE(GSKZZB>REF(GSKZZB,1),ZZLKP,20,0.5,0),COLOR00FFFF;STICKLINE(ZBGSHJ>=90,ZZLKP,0,3,0),COLORFF0011;STICKLINE(ZBGSHJ>=90,ZZLKP,0,2.5,0),COLORFF0022;STICKLINE(ZBGSHJ>=90,ZZLKP,0,2,0),COLORFF0033;STICKLINE(ZBGSHJ>=90,ZZLKP,0,1.5,0),COLORFF0044;STICKLINE(ZBGSHJ>=90,ZZLKP,0,1,0),COLORFF0055;STICKLINE(ZBGSHJ>=90,ZZLKP,0,0.5,0),COLORFF0066;0,POINTDOT,COLORBLUE;散戶套牢:=INTPART(ZBGSHJ),COLORGREEN;機構控盤:INTPART(ZZLKP),COLORRED;JL:REF(機構控盤,1);DRAWBAND(機構控盤,RGB(200,0,0),JL,RGB(0,200,0));市場籌碼總量:=INTPART(ZCMZL),COLORWHITE,NODRAW;控盤線:20,COLORLIBLUE,DOTLINE,LINETHICK1;高度控盤:40,COLORFF00FF,DOTLINE,LINETHICK1;DRAWTEXT_FIX(C>O,0.01,0.01,0,'指標公式合集'),COLORFF00FF;DRAWTEXT(ISLASTBAR,20,'控盤線'),COLORGREEN;DRAWTEXT(ISLASTBAR,40,'高度控盤'),COLORWHITE;DRAWTEXT_FIX(1,0.300,0.5,1,'更多指標關注公眾號,指標公式合集'),COLORBROWN;