a1:=max(max(ma(v,5),ma(v,10)),ma(v,60))/min(min(ma(v,5),ma(v,10)),ma(v,60))<=1.4; a2:=max(ma(c,5),ma(c,10))/min(ma(c,5),ma(c,10))<=1.4;diff:=ema(c,12)-ema(c,26);dea:=ema(diff,9);xg:a1 and a2 and cross(diff,dea); 20210311
ma5:=ma(close,5);ma13:=ma(close,13);ma34:=ma(close,34);t:=ma13/ma34<1.002 and ma13/ma34>0.998;t1:=count(t,5)=5;xg:cross(ma5,ma13) and cross(ma5,ma34) and t1;其中粘合的思路是过去5日内,13线和34线的差价在0.4%内。这里可以根据...
公式是选m=50日后交叉向上,你可修改日期:m:=50;ma10:=ma(c,10);ma60:=ma(c,60);xd:= o>ref(h,1) and cross(o,ma60) and c>ma60 and ma10>ref(ma10,1) and c>o;上穿:longcross(c,ma60),m) and xd;