AX:=(ATAN((MA(C,5)/REF(MA(C,5),1)-1)*100)*180/3.14115926);AXMA:=MA(AX,5);ANA:=PLOYLINE(OSS(AX,AXMA),AXMA);ANB:=PLOYLINE(CROSS(AXMA,AX),AXMA);MD:=CROSS(AX,AXMA) AND ((ANB>REF(ANB,1) AND ANB>ANA AND AXMA<=0)OR ((AXMA<=-45 OR CROSS(AXMA,-45)) AND (ANB<-60OR LLV(".J",3)<=-49) AND ANB>0));AQZ:=COUNT(CROSS(AX,AXMA),ANA
[REF(ANB,5));买:MD AND AQZ AND C<O;
]