通达信持币持股指标副图源码


NNCC:=BARSLAST(BUYWZ);
SS:=SWZ AND COUNT(SWZ,NNCC)=1 AND NNCC>0;
卖:SS;
CB:=CONST(BARSLAST(买)>BARSLAST(卖)) OR CONST(COUNT(买,0)=0);
收益率:
IF(BARSLAST(卖)=DRAWNULL AND BARSLAST(买)!=DRAWNULL,(C-CBJ)/CBJ*100,
(C-CBJ)/CBJ*100))),NODRAW;
是否持币:DRAWTEXT_FIX(CB,0.8,0.5,0,'持币');