界:=MA(CLOSE,27),COLORMAGENTA,LINETHICK3;
B:=MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1);
分水岭:=IF(MA(CLOSE,17)<B,B,MA(CLOSE,17)),COLORFF00FF;
操作线:=分水岭-(EMA(C,3)-分水岭),COLORFF8000 ,LINETHICK3;
龙脉:=MA(REF(HHV(C,30),1),2),COLORFFFFFF,LINETHICK4;
VAR4:=(((((REF(C,1)) * (1.1)) - C) < (0.01)) AND (H =C));
E5:=(EMA(C,5));
R:=(20 * H + 19 * (REF(H,1)) + 18 * (REF(H,2)) + 17 * (REF(H,3)));
R1:=16*(REF(H,4)) +15*(REF(H,5))+14 * (REF(H,6)) + 13 * (REF(H,7));
R2:=12*(REF(H,8))+11*(REF(H,9))+10 * (REF(H,10)) + 9 * (REF(H,11));
R3:=8 * (REF(H,12)) + 7 * (REF(H,13)) +6*(REF(H,14))+5*(REF(H,15));
R4:=4 * (REF(H,16)) + 3 * (REF(H,17)) +2 * (REF(H,18)) + REF(H,20);
VAR5:=(R+R1+R2+R3+R4)/(210);
VAR6:=(EMA(VAR5,90));
妖股线:=(VAR6 + (((C - (VAR6)) * C) - (VAR6)) / (VAR6)),COLORYELLOW,LINETHICK2;
青龙:=SAR(125,1,7), COLORGREEN,LINETHICK1;
A7:=crOSS(妖股线,操作线) AND CROSS(妖股线,界) AND CROSS(妖股线,青龙);
红钻:A7;