aa:=ref((c-ref(c,1))/ref(c,1)*100>5 and c>o,3);{第一根是个阳线,涨幅5%以上(比前一天)};bb:=ref(c>o and between((c-ref(c,1))/ref(c,1)*100,0,3),2);{第二根是个阳线,涨幅比第一根阳线要高但不能超过第一根的3%};cc:=ref(c,1)<ref(o,1) and between((ref(c,1)-ref(c,2))/ref(c,2)*100,0,-5);{第三根是个阴线,跌幅不能超过-5%,(相对于第二根阳线)};dd:=c>o and between((c-ref(c,2))/ref(c,2)*100,0.5,-0.5);{今日收阳,收盘价相对于第二根阳线的收盘价的波动高低在一个点(0.5到-0.5)的范围内};ee:aa and bb and cc and dd;{以上4个条件同时成立}; 20210311