頂:=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; |
|