N:=20;{该值可调}
{U型量柱群}
VV:=MA(V,N/4);
缩量柱:=COUNT(VV<REF(VV,1),N/2)>=N/2*0.9;
梯量柱:=COUNT(VV>REF(VV,1),N/2)>=N/2*0.9;
地量群:=COUNT(V<=LLV(V,50)*1.2 AND V>0,5)>=1;
XG1:= COUNT(REF(缩量柱,N/2),3)>0 AND COUNT(梯量柱,1)>0
AND COUNT(地量群,N)>0;
{U形态K线}
CC:=MA(C,N/4);
价缩:=COUNT(CC<REF(CC,1),N/2)>=N/2*0.9;
价增:=COUNT(CC>REF(CC,1),N/2)>=N/2*0.9;
XG2:= COUNT(REF(价缩,N/2),3)>0 AND COUNT(价增,1)>0;
XG: XG1 AND XG2; |