N:=-14;
a1:=AMOUNT/V/100;
a2:=(3*H+L+O+2*C)/7;
a3:=SUM(AMOUNT,-1*N)/a1/100;
a4:= DMA(a2,V/a3);
a5:=((C-a4)/a4)*100 ;
a6:=ma(a5,14);
a7:=ref(a6,1);
b:cross(a5,a6) and a6>a7 and a6
N:=-14;
a1:=AMOUNT/V/100;
a2:=(3*H+L+O+2*C)/7;
a3:=SUM(AMOUNT,-1*N)/a1/100;
a4:= DMA(a2,V/a3);
a5:=((C-a4)/a4)*100 ;
a6:=ma(a5,14);
a7:=ref(a6,1);
b:cross(a5,a6) and a6>a7 and a6