神奇资金:=EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3),COLORDEBC56;
X_1:=MA(CLOSE,5);
X_2:=MA(CLOSE,10);
X_3:=MA(CLOSE,20);
X_4:=MA(CLOSE,60);
X_5:=BArslAST(HHV(HIGH,100)=HIGH);
底部放量:=MA(vol,5)>MA(VOL,20) AND CLOSE<X_1 AND X_1<X_2 AND X_2<X_3 AND X_3<X_4 OR MA(VOL,5)>MA(VOL,10) AND CLOSE<X_1 AND X_1<X_2 AND X_2<X_3 AND X_3<X_4;
一级买入:=COUNT(神奇资金<REF(神奇资金,1),19)>=14 OR COUNT(神奇资金<REF(神奇资金,1),15)>=12 OR COUNT(神奇资金<REF(神奇资金,1),9)>=8 AND 神奇资金<REF(神奇资金,1) AND 神奇资金<10 AND (神奇资金+REF(神奇资金,1))*0.5<30;
二级买入:=COUNT(神奇资金<15,5)>=4 AND 神奇资金<15;
三级买入:=COUNT(神奇资金<10,4)>=1 AND VOL<REF(VOL,1) AND (底部放量=1 OR REF(底部放量,1)),COLORRED;
四级买入:=COUNT(一级买入,4)>=1 AND COUNT(二级买入,4)>=1 OR (COUNT(一级买入,4)>=1 AND COUNT(三级买入,4)>=1) OR (COUNT(二级买入,4)>=1 AND COUNT(三级买入,4)>=1) AND 神奇资金<15;
五级买入:=COUNT(一级买入,4)>=1 AND COUNT(二级买入,4)>=1 AND COUNT(三级买入,4)>=1 AND 神奇资金<15;
六级买入:=COUNT(一级买入,2)>=1 AND COUNT(二级买入,2)>=1 AND COUNT(三级买入,2)>=1 AND COUNT(四级买入,2)>=1 AND COUNT(五级买入,2)>=1 AND 神奇资金<15;
建仓抄底:一级买入=1 AND 二级买入=1 AND 三级买入=1 AND 四级买入=1 AND 五级买入=1 AND 六级买入=1;