rsv:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100;k:=sma(rsv,3,1);d:=sma(k,3,1);j:=3*k-2*d;a:=ma(c,20);b:=ma(c,60);xg:j<0 and j>ref(j,1) and a>b;测试通过,希望能够帮助你!
va:=if(close>ref(close,1),vol,-vol);obv:=sum(if(close=ref(close,1),0,va),0);maobv:=ma(obv,m);xg:ref(obv,2)>ref(obv,1)and obv>ref(obv,1){ and obv>maobv };若嫌多的话,去掉括号{}即可。{个人看法,仅供参考。}