BIAS20:=(CLOSE-MA(CLOSE,20))/MA(CLOSE,20)*100;
Q7:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
持股天数:=BARSLAST((BARSLAST(BIAS20>0 AND REF(BIAS20,1)>0))>0);
持币天数:=BARSLAST((BARSLAST(BIAS200,SUM(Q7,持股天数),0),STICK;
买入:IF(REF(持币天数,1)>0 AND 持币天数=0,5,0),STICK,COLORFF00FF;
卖出:IF(REF(持股天数,1)>0 AND 持股天数=0,5,0),STICK,COLORFFFF00;
持币:IF(持币天数>0,-5,0),STICK;
STICKLINE(利润>0,利润,0,2,0),COLORRED;
STICKLINE(利润0,-5,0,2,0),COLORYELLOW;
STICKLINE(买入>0,5,0,2,0),COLORLIRED;
STICKLINE(卖出>0,5,0,2,0),COLORLIBLUE;
【股票入门基础知识】【通达信】大宗交易指标公式
特别声明:文章内容仅供参考,不造成任何投资建议。投资者据此操作,风险自担。