{顺上}
U1:=MA(C,5)>MA(C,10)AND MA(C,10)>MA(C,20)AND MA(C,10)>MA(C,30) AND MA(C,30)>MA(C,60);
U2:=MA(C,5)>REF(MA(C,5),1) AND MA(C,10)>REF(MA(C,10),1) AND MA(C,20)>REF(MA(C,20),1) AND MA(C,30)>REF(MA(C,30),1);
SSXG:=U1 AND U2;
{长上影线 + 次日突破上影顶}
A1:=C>MA(C,5) AND C>MA(C,10) AND C>MA(C,20) AND MA(C,5)>MA(C,10);
A2:=REF((H-MAX(O,C))/MAX(O,C)*100>3,1) AND REF((MIN(O,C)-L)/L*100<2,1);
A3:=OREF(H,1);
XG1:=A1 AND A2 AND A3;
{组合}
XGXG:SSXG AND XG1;