VAR326:=IF(CLOSE AND MA(VOL, 5)/240 AND CLOSE>REF(CLOSE, 1)*1.0 AND CLOSE,88,0);
VAR327:=IF(CLOSE/REF(CLOSE, 1)>1.050 AND VOL/CAPITAL*100<10 AND CLOSE<17 AND HIGH/CLOSE<1.010 AND VAR326>0, 91, 0);
DRAWTEXT(VAR327>90,H-0.06,'↖杀庄'),COLORGREEN;
DRAWRECTREL(000,0,3000,3000,RGB(10,10,10));
H1:=MAX(DYNAINFO(3),DYNAINFO(5));
L1:=MIN(DYNAINFO(3),DYNAINFO(6));
P1:=H1-L1;
阻力:L1+P1*7/8,COLORLIGREEN;
支撑:L1+P1*0.5/8,COLORRED;
中:(支撑+阻力)/2,COLORWHITE;
现价:CLOSE,COLORWHITE,LINETHICK2;
SELL1:中+(阻力-中)*1/3,COLORYELLOW,POINTDOT;
SELL2:中+(阻力-中)*2/3,COLORYELLOW,POINTDOT;
BUY1:中-(中-支撑)*1/3,COLORYELLOW,POINTDOT;
BUY2:中-(中-支撑)*2/3,COLORYELLOW,POINTDOT;
DRAWTEXT(CURRBARSCOUNT=8,阻力+0.003,'阻力'),COLORGREEN,LINETHICK1;
DRAWTEXT(CURRBARSCOUNT=8,支撑-0.003,'支撑'),COLORLIRED,LINETHICK1;
DRAWTEXT(CURRBARSCOUNT=8,(支撑+阻力)/2,'基准'),COLORWHITE,LINETHICK1;
DAYUPSELL2:=BARSLAST(CROSS(C,SELL2));
DRAWICON(COUNT(C>阻力,DAYUPSELL2)>=1 AND CROSS(SELL2,C),SELL2,2);
DAYUPSELL1:=BARSLAST(CROSS(C,SELL1));
DRAWICON(COUNT(C>SELL2,DAYUPSELL1)>=1 AND CROSS(SELL1,C),SELL1,2);
DAYUPZHONG:=BARSLAST(CROSS(C,中));
DRAWICON(COUNT(C>SELL1,DAYUPZHONG)>=1 AND CROSS(中,C),中,2);
DAYUPBUY1:=BARSLAST(CROSS(C,BUY1));
DRAWICON(COUNT(C>中,DAYUPBUY1)>=1 AND CROSS(BUY1,C),BUY1,2);
DAYUPBUY2:=BARSLAST(CROSS(C,BUY2));
DRAWICON(COUNT(C>BUY1,DAYUPBUY2)>=1 AND CROSS(BUY2,C),BUY2,2);
DAYUPZC:=BARSLAST(CROSS(C,支撑));
DRAWICON(COUNT(C>BUY2,DAYUPZC)>=1 AND CROSS(支撑,C),支撑,2);
DAYDOWNBUY2:=BARSLAST(CROSS(BUY2,C));
DRAWICON(COUNT(C<支撑,DAYDOWNBUY2)>=1 AND CROSS(C,BUY2),BUY2,1);
DAYDOWNBUY1:=BARSLAST(CROSS(BUY1,C));
DRAWICON(COUNT(C<BUY2,DAYDOWNBUY1)>=1 AND CROSS(C,BUY1),BUY1,1);
DAYDOWNZHONG:=BARSLAST(CROSS(中,C));
DRAWICON(COUNT(C<BUY1,DAYDOWNZHONG)>=1 AND CROSS(C,中),中,1);
DAYDOWNSELL1:=BARSLAST(CROSS(SELL1,C));
DRAWICON(COUNT(C<中,DAYDOWNSELL1)>=1 AND CROSS(C,SELL1),SELL1,1);
DAYDOWNSELL2:=BARSLAST(CROSS(SELL2,C));
DRAWICON(COUNT(C<SELL1,DAYDOWNSELL2)>=1 AND CROSS(C,SELL2),SELL2,1);
DAYDOWNZL:=BARSLAST(CROSS(阻力,C));
DRAWICON(COUNT(C<SELL2,DAYDOWNZL)>=1 AND CROSS(C,阻力),阻力,1);
IF(CLOSE<=BUY2,CLOSE,DRAWNULL),COLORRED,LINETHICK3;
IF(CLOSE>=SELL2,CLOSE,DRAWNULL),COLORYELLOW,LINETHICK3;
成交额:=V*C/100,NODRAW;
A2:=SUM((IF(((成交额/8>20) AND (CLOSE>(REF(CLOSE,1)))),成交额,0)),0);
A3:=SUM((IF(((成交额/8>20) AND (CLOSE<(REF(CLOSE,1)))),成交额,0)),0);
A6:=(A2+A3);
A7:=IF((ISLASTBAR),((100*A2)/A6),0);
A8:=IF((ISLASTBAR),((100*A3)/A6),0);
DD1:=1;
AAA1:=STRCAT(STRCAT('机构买',CON2STR((100*A2)/A6,0)),'%');
AAA2:=STRCAT(STRCAT('机构卖',CON2STR((100*A3)/A6,0)),'%');
AAA3:=STRCAT(STRCAT('',CON2STR((100*(A2-A3))/A6,0)),'%');
A000:=DRAWTEXT_FIX(DD1=1,0,0.02,0,AAA1),COLORRED;
A001:=DRAWTEXT_FIX(DD1=1,0,0.13,0,AAA2),COLOR00FF00;
DRAWTEXT_FIX(DD1=1,0,0.15,0,AAA1),COLOR00FFFF;
DRAWTEXT_FIX(DD1=1,0,0.30,0,AAA2),COLOR00FFFF;
DRAWTEXT_FIX(DD1=1,0.55,1,0,AAA3),COLOR00FFFF;
现手买:=BUYVOL*DYNAINFO(7)*100/10000 COLOR0000FF,NODRAW;
现手卖:=SELLVOL*DYNAINFO(7)*100/10000 COLOR00FF00,NODRAW;
合:=ABS(现手买)+ABS(现手卖)COLOR80FFFF,NODRAW;
差:=ABS(现手买)-ABS(现手卖)COLOR80FFFF,NODRAW;
MPB1:=ABS(现手买)/合*100;
MPB2:=ABS(现手卖)/合*100;
TESTSKIP(NOT(现手买 OR 现手卖 OR 合 OR 差 OR MPB1 OR MPB2)!=0);
VAR1Z:=1;
VAR2Z:=1/WINNER(CLOSE);
VAR3Z:=MA(CLOSE,13);
VAR4Z:=100-ABS((CLOSE-VAR3Z)/VAR3Z*100);
VAR5:=LLV(LOW,75);
VAR6:=HHV(HIGH,75);
VAR7:=(VAR6-VAR5)/100;
VAR8:=SMA((CLOSE-VAR5)/VAR7,21,1);
VAR9:=SMA((OPEN-VAR5)/VAR7,21,1);
VARA:=3*VAR8-2*SMA(VAR8,13,1);
VARB:=3*VAR9-2*SMA(VAR9,13,1);
VARC:=100-VARB;
平衡:=50.5,COLOR998899,POINTDOT;
主力:=MA(WINNER(CLOSE*0.95)*100,3)*VAR1Z,COLORYELLOW,LINETHICK1;
散户:=(100-VARA)*VAR1Z,COLORLIBLUE,LINETHICK1;
→:=100,LINETHICK3,COLORYELLOW;
MINUS:=(主力-散户)>0;
DRAWTEXT_FIX(1,0.850,0.85,0,IF(MINUS,'主力大','散户大')),COLORWHITE;
DRAWICON(CROSS(主力,散户) AND L,L-0.06,23);
NNN:=21;MMM:=55;Q:=3;
回归:=EMA(SLOPE(CLOSE,NNN)*20+CLOSE,MMM)*1,COLORMAGENTA,LINETHICK3;
平滑:=EMA(CLOSE,Q),COLORYELLOW,LINETHICK2;
简单差:=平滑-回归;
DRAWICON(CROSS(ZIG(3,8),REF(ZIG(3,8),1)),平滑,9);