W1:=C=HHV(C,5);W2:=BARSLAST(W1);W3:=IF(W2>0,REF(C,W2),REF(C,W2));W4:=CROSS(C,REF(W3,1));中轨:=HHV(MA(H,13),13),COLORYELLOW,LINETHICK1;趋势:=LLV(MA(H,13),1),COLORRED,LINETHICK1;红钻追涨:W4 AND COUNT(W4,5)=1 AND 中轨=趋势;