||KD2)&&C>MA20);K10152:=BARSLAST((CROSS(COUNT(PK1||PK2,PKK)=1,0.5)||PK2)&&C<MA20);K10152P:=BARSLAST(NOT(W1=1&&KK<DD));D10151P:=BARSLAST(NOT(W1=-3&&DD<KK));PJ:=MA(H-L,20);DRAWTEXT(CROSS(D10151<D10151P,0.5),L-NN*MINPRICE,'买'),VALIGN0,COLORRED,HICK7,FONTSIZE21;DRAWTEXT(CROSS(K10152<K10152P,0.5),H+MM*MINPRICE,'卖'),VALIGN2,COLORYELLOW,HICK7,FONTSIZE21;CROSS(D10151<D10151P,0.5)||CROSS(D10151>D10151P,0.5)||CROSS(K10152>K10152P,0.5)||CROSS(K10152<K10152P,0.5),SOUND('A');A:=CROSS(D10151<D10151P,0.5)&&COUNT(CROSS(D10151<D10151P,0.5),BARSLAST(CROSS(K10152<K10152P,0.5)))=1;B:=CROSS(K10152<K10152P,0.5)&&COUNT(CROSS(K10152<K10152P,0.5),BARSLAST(CROSS(D10151<D10151P,0.5)))=1;////P1:=CROSS(D10151<D10151P,0.5);//买P2:=CROSS(K10152<K10152P,0.5);//卖DRAWCOLORKLINE(REFX(P1||P2,1),COLORBLUE,0);P1||P2,SOUND('A');