a1:=cross("dmi.pdi","dmi.mdi") or cross(ref("dmi.pdi",1),ref("dmi.mdi",1));a2:=cross("dmi.pdi","dmi.adx") or cross(ref("dmi.pdi",1),ref("dmi.adx",1)); a3:=cross("dmi.pdi","dmi.adxr") or cross(ref("dmi.pdi",1),ref("dmi.adxr",1));a1 and a2 and a3; 20210311
m5:=ma(c,5);m10:=ma(c,10);m24:=ma(c,24);m72:=ma(c,72);b1:=abs(m5-m72)/m72<0.01;b2:=abs(m10-m72)/m72<0.03;b3:=abs(m24-m72)/m72<0.03;x:=b1 and b2 and b3 and c>m72; ex**t(x,3);
同时上还是分穿?ma5:=ma(c,5);ma30:=ma(c,30);ma60:=ma(c,60);a:cross(ma5,ma30);{5日上穿30日线}b:cross(ma5,ma60);{5日线上穿60日线}选股:cross(ma5,ma30) and cross(ma5,ma60);{5日线同时上穿30日线、60日线}你看用哪个吧,我3个公式合在一起了,你用的时候选一个条件用。