INPUT:Y(2020,1,2100,1);
dayc:=CALLSTOCK('',vtCLOSE,6,0);//今日日线收盘价
lastdayc:=CALLSTOCK('',vtCLOSE,6,-1);//昨日日线收盘价
zd:100*(dayc-lastdayc)/lastdayc;//涨跌幅
zt:zd>=9.9;//是否涨停
DRAWICON(zt,h,1);//显示涨停位置
ztcs:count(zt and YEAR=Y,0);
以上代码是在日线上运行的。如果你是其他周期使用,那你就跨周期调用这个指标。