实量:=SUM(VOL,FROMOPEN);
虚拟量:=实量/240*FROMOPEN;
SZB:=实量/10000;
XZB:=虚拟量/10000;
大单买:=SUM(IF(CLOSE>=REF(CLOSE,1) AND VOL>=500,VOL,0),FROMOPEN);
大单卖:=SUM(IF(CLOSE<REF(CLOSE,1) AND VOL>=500,VOL,0),FROMOPEN);
ZB1:=大单买/实量*100;
ZB2:=大单卖/实量*100;
DRAWRECTREL(470,CONST(100-ZB1)*1000/100,500,1000,90);
DRAWRECTREL(470,CONST(100-ZB2)*1000/100,500,1000,RGB(0,255,0));
{ DRAWTEXT_FIX(1,0.9,0.02,0,STRCAT(STRCAT('【大单买】',CON2STR(ZB1,2)),'%')),COLORYELLOW;
DRAWTEXT_FIX(1,0.9,0.06,0,STRCAT(STRCAT('【大单卖】',CON2STR(ZB2,2)),'%')),COLORYELLOW;}
小单买:=SUM(IF(CLOSE>=REF(CLOSE,1) AND VOL<500,VOL,0),FROMOPEN);
小单卖:=SUM(IF(CLOSE<REF(CLOSE,1) AND VOL<500,VOL,0),FROMOPEN);
ZB3:=小单买/实量*100;
ZB4:=小单卖/实量*100;
{DRAWRECTREL(959,CONST(100-ZB3)*1000/100,979,1000,90);
DRAWRECTREL(979,CONST(100-ZB4)*1000/100,999,1000,RGB(0,255,0));}
{DRAWTEXT_FIX(1,0.9,0.1,0,STRCAT(STRCAT('【小单买】',CON2STR(ZB3,2)),'%')),COLORYELLOW;
DRAWTEXT_FIX(1,0.9,0.14,0,STRCAT(STRCAT('【小单卖】',CON2STR(ZB4,2)),'%')),COLORYELLOW;}
{DRAWTEXT_FIX(1,0.02,0.02,0,STRCAT('均价:',CON2STR(SUM(V*C,0)/SUM(V,0),2))),COLORYELLOW;}
DRAWTEXT_FIX(1,0.525,0.80,0,STRCAT(STRCAT('',CON2STR(ZB2,0)),'')),COLOR8080FF;
多头线:=EMA(C,3),COLORYELLOW;
空头线:=EMA(C,5),COLOR00FF00;
均衡线:=EMA(空头线,5),COLORWHITE;
{IF(多头线>=REF(多头线,1) AND 多头线>=空头线,多头线,DRAWNULL),COLORRED,LINETHICK3;}
VAR1:=IF(CLOSE/REF(CLOSE,1)>1.030 AND HIGH/CLOSE<1.010 AND IF(CLOSE>REF(CLOSE,1),88,0)>0, 91, 0);
STICKLINE(VAR1>90 AND TIME<=0932 ,L,L*-999999999,1000.0,0),COLORBLACK;