r0:=SMALLBUYCOUNT4-SMALLSELLCOUNT4;
a:=BDMC;
b:=BDMR;
d:=(a-b);
f:=BIGBUYCOUNT1+BIGBUYCOUNT2+BIGBUYCOUNT3-BIGSELLCOUNT1-BIGSELLCOUNT2-BIGSELLCOUNT3;
被动卖出大黄:d,coloryellow;
被动卖出小棕:d,colorbrown;
主动特大买大红:r0,colorred;
主动特大买小绿:r0,colorgreen;
STICKLINE(r0>0,0,r0,9),colorred;
STICKLINE(r0<0,0,r0,9),colorgreen;
STICKLINE(d>0,0,d,3),coloryellow;
STICKLINE(d<0,d,0,3),colorbrown;
DRAWTEXT(r0>REF(r0,1) AND f>REF(f,1),LOW,'上上');
DRAWTEXT(r0<REF(r0,1) AND f<REF(f,1),LOW,'下下');
DRAWTEXT(r0<REF(r0,1) AND f>REF(f,1),LOW,'上下');
DRAWTEXT(r0>REF(r0,1) AND f<REF(f,1),LOW,'下上');