n:=7;
cc:=abs((2*close+high+low)/4-ma(close,20))/ma(close,20);
dd:=dma(close,cc);
上:=(1+7/100)*dd;
下:=(1-7/100)*dd;
中:=(上+下)/2;
var1:=l>中;
var2:=all(var1,n-1);
var3:=c>o;
var4:=c<o;
var5:=count(var3,n);
var6:=count(var4,n);
var7:=var5>var6;
var8:=ref(var2,1);
var9:=(l/中-1)*100;
vaa1:=var9>=0 and var9<=0.8;
vaa2:=var7 and var8 and vaa1;
vaa3:=ema(c,12)-ema(c,26);
vaa4:=ema(vaa3,9);
vaa5:=(vaa3-vaa4)*2;
vaa6:=all(vaa5>0,n);
vaa2 and vaa6;