涨跌天数
数,例如k线上显示涨跌天数,代码如下。T1:=IF(C>REF(C,1),1,IF(C<REF(C,1),-1,0));T2:=IF(C>REF(C,1),BARSL AST(CROSS(T1,0)) 1,IF (C<REF(C,1),BARSL AST(CROSS(0,T1)) 1,0)); DRAWNUMBER(C>REF(C,1),H*1.01,T2)COL ORR .ED;DRAWNUMBER(C <REF(C,1),L *0.99,T2)COL ORGREEN;
赞 (0)