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>0) ;
SS:=SWZ AND COUNT(SWZ,NNCC)=1 AND NNCC>0;
买:BUYWZ AND NOT(REF(BUYWZ,1)) ;
卖:SS;
CG:=CONST(BARSLAST(买)
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,'持币');