老师下面的金叉选股是我自己写的,可选出来的股是长多信号和短多信号同日同时出现,我想要的是只要长多金叉了和短多金叉了就行了,不一定要同时出现,只要两个都存在就能选出来,谢谢老师。 {金叉选股} Y0:=MA(CLOSE,5),COLORWHITE,LINETHICK2; Y1:=MA(CLOSE,10),COLORYELLOW,LINETHICK2; Y2:=MA(CLOSE,12),COLOR009900; Y3:=MA(CLOSE,55),COLOR0B0B77; 长多:=CROSS(Y2,Y3); 短多:=CROSS(Y0,Y1); 长多 AND 短多;
爱约股解答:
{金叉选股}
Y0:=MA(CLOSE,5),COLORWHITE,LINETHICK2;
Y1:=MA(CLOSE,10),COLORYELLOW,LINETHICK2;
Y2:=MA(CLOSE,12),COLOR009900;
Y3:=MA(CLOSE,55),COLOR0B0B77;
长多:=CROSS(Y2,Y3);
短多:=CROSS(Y0,Y1);