如何给科创板涨跌停K线标注颜色显示?(图解)
首选,在主图均线上添加以下代码即可实现科创板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;
赞 (0)