A1:=BARSCOUNT(C);
H0:=V/CAPITAL*100;H4:=if(a1>2,SQRT(0.2*H0),0);
C0:=(h+l+c)/3;
R0:=REF(H,1);R1:=REF(L,1);R2:=MAX(H,R0);R3:=MIN(L,R1);R4:=R2-R3;
R5:=IF(C0-R3>R2-C0,C0-R3,C0-R2);
r6:=IF(R4>0,R5/R4,0)*H4*150;
DN:=ema(R6,13);
A:=(H+L)*V*50;ma1:=MA(VOL,5);
n1:=if(a1<3,1/a1,0.4);n2:=if(a1<10,1/a1,0.1);n3:=if(a1<30,1/a1,0.03333);
L1:=EMA(DMA(a,N1)/DMA(v,N1)/100,2);
L2:=EMA(Dma(a,N2)/Dma(v,N2)/100,2);
L3:=EMA(Dma(a,N3)/Dma(v,N3)/100,2);
X:=L1>L2 and (ref(L1,3)<=ref(L2,3) or ref(L2,21)<=ref(L3,21))
and c>1.07*ref(c,1) and DN>40;x and count(X,10)=1;