M1:=HHV(H,N);
M2:=LLV(L,N);
M3:=(M1+M2)/2;
XG:=(M1-M3)/M3<=0.05 AND (M3-M2)/M3<=0.05;
COUNT(XG,N)=N;
N设20就是一个月
m3:=(h+l)/2;
m1:=(h-m3)/m3<0.05;
m2:=(m3-l)/m3<0.05;
b:count(m1 and m2,n);{n由自己取值}
横盘突破公式
AA:=IF((CLOSE>REF(CLOSE,1)),88,0);
AB:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (AA>0),91,0);
DRAWTEXT(FILTER((AB>90),34),(LOW)*(0.92),'◆'),;