va:=if(close>ref(close,1),vol,-vol);obv:=sum(if(close=ref(close,1),0,va),0);maobv:=ma(obv,30);ref(obv,2)>ref(obv,1) and obv>ref(obv,1) and ref(maobv,1)>ref(obv,1);{已测试,复制可直接引用,如果回答满意,请记得给采纳}
st:=if(inblock('st'),5,10);涨停:=intpart(ref(c,1)*(1+st/100)/mindiff+0.5)*mindiff;hh:=ref(hhv(h,120),1);xg:c>涨停-0.006 and ref(c,1)/ref(hh,2)<0.60;( 已在大智慧上测试。可直接复制使用)