BUYWZ:=DATE=1190726;
NNCC:=BARSLAST(BUYWZ);
SWZ:=((C-MAX(REF(C,NNCC),HHV(H,NNCC)))/MAX(REF(C,NNCC),HHV(H,NNCC))*100 -8 AND NNCC
SS:=SWZ AND COUNT(SWZ,NNCC)=1 AND NNCC
买:BUYWZ AND NOT(REF(BUYWZ,1)) ;
卖:SS;
CG:=CONST(BARSLAST(买) BARSLAST(卖)) OR (CONST(BARSLAST(买)) =0 AND CONST(BARSLAST(卖))=DRAWNULL);
CB:=CONST(BARSLAST(买) BARSLAST(卖)) OR CONST(COUNT(买,0)=0);
CBJ:=REF(C,BARSLAST(买));
IF(BARSLAST(卖)=DRAWNULL AND BARSLAST(买)=DRAWNULL,DRAWNULL,
IF(BARSLAST(卖)=DRAWNULL AND BARSLAST(买)!=DRAWNULL,(C-CBJ)/CBJ*100,
IF(BARSLAST(买) BARSLAST(卖),REF((C-CBJ)/CBJ*100,BARSLAST(卖)),
(C-CBJ)/CBJ*100))),NODRAW;
是否持股:DRAWTEXT_FIX(CG,0.8,0.5,0,'持股');
是否持币:DRAWTEXT_FIX(CB,0.8,0.5,0,'持币');