成交量:VOL,VOLSTICK,LAYER5;
VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
ma5:MA(成交量,5),LINETHICK2,colorred;
ma10:MA(成交量,10),colorgreen;
DRAWTEXT(CROSS(ma5,ma10),ma5,'㊣'),COLORYELLOW,LAYER3;
买盘:IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE
{STICKLINE(VOL>0,VOL,0,1,1),COLORblue,LAYER4;
STICKLINE(买盘>0,0,买盘,1,1),COLORRED,LAYER4;}
量多头:last(ma(vol,5)>=ma(vol,10) and ma(vol,10)>=ma(vol,20));
DRAWTEXTREL(260,100,'■量多头='+NUMTOSTRN(量多头,0)+'天' ),COLOrgreen,LINETHICK1,LAYER0;
深涨:"SZ399001$ADVANCE",LINETHICK0;
深跌:"SZ399001$DECLINE",LINETHICK0;
沪涨:"SH000001$ADVANCE",LINETHICK0;
沪跌:"SH000001$DECLINE",LINETHICK0;
上涨:="SZ399001$ADVANCE"+"SH000001$ADVANCE";
下跌:="SZ399001$DECLINE"+"SH000001$DECLINE";
涨跌比:=上涨/下跌;
DRAWTEXTREL(10,100,'两市上涨:'+上涨+'家'),coloryellow;
DRAWTEXTREL(135,100,'两市下跌:'+下跌+'家'),coloryellow;
DRAWTEXTREL(55,350,'涨跌比:'+NUMTOSTRN(涨跌比,3) ),LINETHICK3,Colorwhite,LAYER2;
DRAWTEXTREL(65,750,'[可操作比率1.25]'),LINETHICK1,Colorred,LAYER2;
DRAWRECTREL(0,0,250,999,RGB(50,0,0)),coloryellow,LAYER4;
DRAWRECTREL(0,0,250,999,RGB(50,0,0)),coloryellow,LAYER4;
DRAWTEXTREL(350,100,'(KFQQ:173808551)'),COLORyellow,LINETHICK1;