a3:=SUMBARS(VOL,CAPITAL);
pjj:=SUM(AMOUNT,a3)/SUM(VOL,a3);
M5:=MA(CLOSE,5);
M10:=MA(CLOSE,10);
M20:=MA(CLOSE,20);
M30:=MA(CLOSE,30);
A1:=MAX(PJJ,MAX(M30,MAX(M20,MAX(M5,M10))));
A2:=MIN(PJJ,MIN(M30,MIN(M20,MIN(M5,M10))));
(A1-A2)/A2*100<=n;
a3:=SUMBARS(VOL,CAPITAL);
pjj:=SUM(AMOUNT,a3)/SUM(VOL,a3);
M5:=MA(CLOSE,5);
M10:=MA(CLOSE,10);
M20:=MA(CLOSE,20);
M30:=MA(CLOSE,30);
A1:=MAX(PJJ,MAX(M30,MAX(M20,MAX(M5,M10))));
A2:=MIN(PJJ,MIN(M30,MIN(M20,MIN(M5,M10))));
(A1-A2)/A2*100<=n;