首選,在主圖均線上添加以下代碼即可實現科創板20%漲跌幅的漲跌停K線標註顏色,另外,也可實現主板10%漲跌幅的漲跌停K線標註顏色
ZT:=C>REF(C,1)*1.0985 AND C
DT:=CREF(C,1)*0.898 AND C=L;
ZTK:=C>REF(C,1)*1.1985 AND C
DTK:=CREF(C,1)*0.798 AND C=L;
STICKLINE(ZT,C,O,4,0),COLORRED;
STICKLINE(DT,C,O,4,0),COLORGREEN;
STICKLINE(ZTK,C,O,4,0),COLORMAGENTA;
STICKLINE(DTK,C,O,4,0),COLORYELLOW;