顶:=MAX(C,O);底:=MIN(C,O); 峰:=顶=REFX(HHV(顶,5),2); 谷:=底=REFX(LLV(底,5),2); 超跌:=C/HHV(顶,20)<0.7; 刹车:=谷 AND 超跌; DRAWTEXT(刹车,2*L-顶,'刹车'),colorgreen; 凹间峰:=COUNT(刹车,8)>0 AND 峰; DRAWTEXT(凹间峰,2*H-底,'凹间峰'),coloryellow; 凹间峰顶:=REF(顶,BARSLAST(凹间峰)); 换档:=COUNT(凹间峰,8)>0 AND 谷; DRAWTEXT(换档,2*L-H,'换档'),colorred; 上车:=COUNT(换档,8)>0 AND COUNT(C>凹间峰顶,BARSLAST(凹间峰))=1; DRAWTEXT(上车,凹间峰顶,'上车'),colorblue; DRAWNUMBER(COUNT(凹间峰,2)=1 AND COUNT(凹间峰,1)=0,凹间峰顶,凹间峰顶),colorblue; DRAWTEXT(C<凹间峰顶 AND COUNT(C>凹间峰顶,BARSLAST(凹间峰))<1,凹间峰顶,'---'),coloryellow |