N:=20;
N1:=15;
T1:=REF(HHV(H,N)/LLV(L,N),1)<=(1+N1/100) AND BARSCOUNT(C)>N;
XG:REF(T1,2)=1 AND REF(C/O>1.07,1)=1 AND O>REF(C,1) AND O=L AND V>REF(V,1);
n是时间n1是横盘的幅度,随便设置的,你需要自己决定参数范围