,AO,5),ALIGN0;DRAWTEXT(s31>=2ANDs3,AO,'S'),COLORWHITE;//----------------------------以上是双峰卖出信号;b1:=CROSS(AO,0);//DRAWICON(b1,AO,4),ALIGN0;DRAWTEXT(b1,AO,'B'),COLORWHITE;//----------------------------以上是上穿0信号;b2:=AO>0ANDREF(AO,1)<REF(AO,2)ANDAO>REF(AO,1);//DRAWNUMBER(1>0,AO,lu2,0);//DRAWICON(b2,AO,4),ALIGN0;DRAWTEXT(b2,AO,'B'),COLORWHITE;//-----------------------------以上碟型买入信号;bcount:=BARSLAST(AO>0);//上一次ao>0后到现在的周期数;//DRAWNUMBER(1>0,ao-0.1,bcount,0);bd:=LLV(AO,bcount);//求上面周期的最小ao;bcountd:=LLVBARS(AO,bcount);//求最小值到现在的周期数;//DRAWNUMBER(1>0,AO-0.3,bcountd,0);b3:=AO<0ANDREF(AO,1)<REF(AO,2)ANDAO>REF(AO,1);//满足峰的条件;b31:=COUNT(b3,bcountd);//满足上面条件的次数;//DRAWNUMBER(1>0,ao-0.5,lu31,0);//DRAWICON(b31>=2ANDb3,AO,4),ALIGN0;DRAWTEXT(b31>=2ANDb3,AO,'B'),COLORWHITE;//----------------------------以上是双峰买进信号;