//筹码分布监视 长线资金跟踪
获利筹码:=EMA(WINNER(C)*70,5),COLORD98EF1;
亏损筹码:=EMA((WINNER(C*1.1)-WINNER(C*0.9))*80,5),COLORF3FF00;
//STICKLINE(获利筹码<亏损筹码 AND 亏损筹码<60,亏损筹码,55,1,0),COLORF3FF00;
主力控筹:IF(获利筹码>亏损筹码,获利筹码, 50),DOTLINE,colorred,Linethick2;
CM:=(获利筹码<亏损筹码 AND 亏损筹码<60 );
kdCM:50+20*(NOT(CM) AND 获利筹码<亏损筹码),LINETHICK2;
CMKD:=NOT(CM) AND 获利筹码<亏损筹码;
DRAWBAND(KDCM,RGB(249,248,188),50,RGB(0,0,0));
TJ144:COUNT(CMKD,144);
TJ233:COUNT(CMKD,233);
DRAWTEXT_FIX(1,0.9,0.01,1,'说明: 红钻可以关注,浅黄色块主力锁仓,黄柱表示资金进入,红柱表主力资金强度增大'),colorred;
ZLCM0:=EMA(WINNER(CLOSE)*70,3);
SHCM0:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);
ZSHTL:=SHCM0/(ZLCM0+SHCM0)*100;
ZZLKP:=ZLCM0/(ZLCM0+SHCM0)*100;
ZSHJJ:=EMA(ZSHTL,55);
ZZLJJ:=EMA(ZZLKP,55);
STICKLINE(ZZLJJ>REF(ZZLJJ,1),ZZLKP,ZZLJJ,2.5,0 ),COLOR00AAFF;
STICKLINE(ZZLJJ>REF(ZZLJJ,1),ZZLKP,ZZLJJ,1.5,0 ),COLOR00CCFF;
STICKLINE(ZZLJJ>REF(ZZLJJ,1),ZZLKP,ZZLJJ,0.5,0 ),COLOR00FFFF;
//STICKLINE(获利筹码>亏损筹码,亏损筹码,50,1,0),colorred;
ZLCM:=EMA(WINNER(CLOSE)*90,3);
SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);
SHZB:=SHCM/(ZLCM+SHCM)*100;
ZCZB:=ZLCM/(ZLCM+SHCM)*100;
ZJLRQD:=INTPART(ZCZB-SHZB);
散筹:=INTPART(SHZB),colorgreen,LINETHICK1;
散均:=EMA(散筹,13),colorcyan,LINETHICK2;
主筹:=INTPART(ZCZB),coloryellow,LINETHICK1;
主均:=EMA(ZLCM,13),colormagenta,LINETHICK2;
散户:=INTPART(SHZB),colorcyan,LINETHICK2;
主力:=INTPART(ZCZB),coloryellow,LINETHICK2;
资金强度:=ZJLRQD,LINETHICK2,colorred,NODRAW;
DRAWICON(crOSS(主力,散户),主力,1);
DRAWICON(CROSS(资金强度,散户),散户-5,17);
DRAWICON(CROSS(散户,主力),主力,2);
坑:IF(ZZLKP<=10,ZZLKP,ZZLKP),colormagenta,LINETHICK2;
A:=REF(O/REF(C,1)<=1.0 AND O>C AND H>L AND H/REF(H,1)<=1.04 AND V/REF(V,1)<=2.5 AND C/REF(C,1)<=0.955,1);
A1:=C>O AND C/MA(C,45)>=0.9 AND C>REF(MAX(O,C),1);
B:=REF(O/REF(C,1)<=1.0 AND O>C AND V/REF(V,1)<=2.5 AND C/REF(C,2)<=0.955,1);
B1:=C>O AND C/MA(C,45)>=0.9 AND C>=REF(MAX(O,C),2);
YHXG:=(A AND A1) OR (B AND B1) AND DYNAINFO(4)>0;
DRAWICON(YHXG,50,23);
VAR1:=(C-REF(C,1))/REF(C,1)*100>9.95 AND C=H;
VAR2:=REF(C,2)>REF(C,3) AND REF(V,2)>REF(V,3) AND REF(C,1)
XG:=REF(VAR1,3) AND VAR2 AND C>(REF(O,2)+REF(C,2))/2;
DRAWICON(XG,50,27);
操盘:=XMA(XMA(L,25),25)-(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1,LINETHICK1,DOTLINE,coloryellow;
趋势:=EMA(操盘,25),colorred,LINETHICK1;
DRAWICON(CROSS(操盘,趋势),60,25);