谷:=TROUGHBARS(2,5,2);峰:=PEAKBARS(2,5,2);DRAWTEXT(OSS(谷,峰),H*1.008,'高')COLORGREEN;DRAWTEXT(CROSS(峰,谷),L*0.995,'低')COLORRED;DRAWNUMBER(CROSS(谷,峰),H*1.015,HHV(H,5))COLORYELLOW;DRAWNUMBER(CROSS(峰,谷),L*0.985,LLV(L,5))COLORGREEN;DRAWTEXT(REF(CROSS(谷,峰),1),REF(H,1)*1.008,'出')COLORGREEN;DRAWTEXT(REF(CROSS(峰,谷),1),REF(L,1)*0.995,'进')COLORRED;SCGD:=BAAST(CROSS(谷,峰));SCDDTS:=BARSLAST(CROSS(峰,谷));SCGDGZ:=HHV(H,SCGDTS+1);SCD:=LLV(L,SCDDTS+1);ZDD:=(SCGDGZ-L)/L*100;ZDZ:=(H-SCDDDZ)/SCDDDZ*100;最大:=IF(谷<峰,ZDZ,