通用涨跌停主图代码(*ST、ST股都可用)
涨幅限制:=if(namelike('st') or namelike('*st'),105,110);{代表1.05和1.1}
跌幅限制:=if(namelike('st') or namelike('*st'),95,90);{代表0.95和0.9}
涨停:=round(close*100)>=round(ref(close,1)*涨幅限制) and close=high;
跌停:=round(close*100)<=round(ref(close,1)*跌幅限制+1) and close=low;
stickline(涨停,o,c,1,0),color00ffff;
stickline(跌停,o,c,1,0),colorff9900;