{1.}var2:=(2*close+high+low)/4;var3:=if(year>=2099 and month>2,0,1);var4:=llv(low,5);var5:=hhv(high,4);散户:=ema((var2-var4)/(var5-var4)*100,4)*var3;**:=ema(0.667*ref(散户,1)+0.333*散户,2)*var3;短快进:cr...
含有典型的未来函数zig,会造成信号漂移,谨慎使用。选股代码如下:varc:=(zig(3,5)>ref(zig(3,5),1)) and (ref(zig(3,5),1)<=ref(zig(3,5),2)) and (ref(zig (3,5),2)<=ref(zig(3,5),3)); vard:=(zig(3,5)<ref(zig(3,5),1)) and (ref(...
rsv:=(c-llv(l,9))/(hhv(h,9)-llv(l,9))*100;k:=sma(rsv,3,1);d:=sma(k,3,1);j:=3*k-2*d;x:=llv(j,2)=llv(j,8);xg:cross(j,ref(j+0.01,1))and x and j;信号太多,没啥意义。
分开二个公式去选股var0:=vol/close/2;var1:=sum(if(var0 > 100 and close > ref(close,1),var0,0),0);var2:=sum(if(var0 > 100 and close < ref(close,1),var0,0),0);var3:=sum(if(var0 < 100 and close >...