P:=15;日K:=.K,COLORWHITE;日D:=J.D,COLORYELLOW;日J:=KDJ.J,COLORMAGENTA;周K:=KDJ.K#WEEK;周D:=KDJ.D#WEEK;周J:=KDJ.J#WEEK;日:=OSS(日K,日D) AND (日D<40>60);:=CROSS(周K,周D) AND (周D<40>60);SJ1:=BARSLAST(周金叉);不确定线:=MA(CLOSE,P);固定线:=MA(CLOSE,43);一线金叉:=CROSS(不确定线,固定线);RM:=日K>日D;ZM:=周K>周D;HUO:=RM OR ZM;YU:=RM AND ZM;SJ:=BARSLAST(HUO=0);XG:IF(COUNT(YU ,SJ-1)=1 ,2,0);