涨停变色加亮,适应注册制新规(通达信公式 主图 源码 测试图)
CS1:=IF(INBLOCK('科创板') OR INBLOCK('创业板'),0.2,IF(INBLOCK('ST板块'),0.05,0.1));
XA_1:=1;
STICKLINE(C=ZTPRICE(REF(C,1),0.1) AND XA_1=1,O,C,2.5,0),COLORYELLOW;
STICKLINE(C=DTPRICE(REF(C,1),0.1) AND XA_1=1,O,C,2.5,0),COLORGREEN;
STICKLINE(C=ZTPRICE(REF(C,1),CS1) AND XA_1=0,C,O,2.5,0),COLORYELLOW;
STICKLINE(C=DTPRICE(REF(C,1),CS1) AND XA_1=0,C,O,2.5,0),COLORGREEN;