{位置}
位置:=IF(C<=(HHV(C,250)-LLV(C,250))/3+LLV(C,250),1,IF(C<=(HHV(C,250)-LLV(C,250))*2/3+LLV(C,250),2,3));
MA5:=MA(CLOSE,5);
MA10:=MA(CLOSE,10);
MA20:=MA(CLOSE,20);
MA60:=MA(CLOSE,60);
均线多头:=MA5>REF(MA5,1) AND MA10>REF(MA10,1) AND MA20>REF(MA20,1) AND MA5>MA10 AND MA10>MA20 AND MA20>MA60;
趋势形成:=COUNT(均线多头,3)=3 AND COUNT(C>O,5)=5;
首阴:=REF(趋势形成,1) AND C<O AND C>=MA10 AND V<REF(V,1) AND 位置=1;
反包:REF(首阴,1) AND C>REF(C,1);