F:=100*(C-REF(C,1))/REF(C,1);
今小昨:=IF(C<REF(O,1) AND F<0,1,0);
P1:=今小昨;
今小前:=IF(C<REF(O,2) AND F<0,1,0);
P2:=今小前;
XG: P1=0 AND REF(P1,1)=1 AND P2=0 AND REF(P2,1)=1;
F:=100*(C-REF(C,1))/REF(C,1);
今小昨:=IF(C<REF(O,1) AND F<0,1,0);
P1:=今小昨;
今小前:=IF(C<REF(O,2) AND F<0,1,0);
P2:=今小前;
XG: P1=0 AND REF(P1,1)=1 AND P2=0 AND REF(P2,1)=1 AND DYNAINFO(4)>0;