M:=2;N:=5;
a1:=abs(close-open)/open<0.015;
a2:=count(a1,m)=m;
a3:=ref(o,m)
ref(close,m)/ref(close,m+1)>1+n/100;
a2 and a3;
M:=2;N:=5;
a1:=abs(close-open)/open<0.015;
a2:=count(a1,m)=m;
a3:=ref(o,m)
ref(close,m)/ref(close,m+1)>1+n/100;
a2 and a3;