dif:=ema(close,9)-ema(close,150);dea:=ema(dif,12);macd0:=2*(dif-dea);xg:macd0<0 andmacd0>ref(macd0,1)and ref(macd0,1)(macd0,2) and ref(macd0,2)(macd0,3) and ref(macd0,3)(macd0,4);
{安全买点信号}var2:=((((2*close)+high)+low) / 4);var4:=llv(low,5);var5:=hhv(high,4);c1:=ema((((var2-var4)/(var5-var4))*100),4);c2:=ema(((0.667*ref(c1,1))+(0.333*c1)),2);安全买点:cross(c1,c2) and ref(c1,1)<20...
diff1:=ema(close,12) - ema(close,26);dea1:=ema(diff1,9);macd1:=2*(diff1-dea1);a1:=barslast(ref(cross(diff1,dea1),1));ref(close,a1+1)>close and diff1>ref(diff1,a1+1) and cross(diff1,dea1) and llv...
tr:=sum(max(max(high-low,abs(high-ref(close,1))),abs(low-ref(close,1))),7);hd:=high-ref(high,1);ld:=ref(low,1)-low;dmp:=sum(if(hd>0 and hd>ld,hd,0),7);dmm:=sum(if(ld>0 and ld>hd,ld,0),7);d...