10;
神奇资金: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;
IF(底部放量,VOL/5000000,0),LINESTICK,COLOR3385FF;
一级买入: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;
小三W底:COUNT(crOSS(神奇资金,10),42)=2 AND 神奇资金<6,COLOR6666FF;
大三w底:COUNT(CROSS(神奇资金,50),100)=2 AND 神奇资金<10 AND X_5>90,COLORWHITE;
DRAWICON(一级买入,90,9);
DRAWICON(二级买入,100,13);
DRAWICON(三级买入,110,24);
DRAWICON(四级买入,120,25);
DRAWICON(五级买入,130,26);
DRAWICON(六级买入,140,14);
X_6:=IF(大三W底,X_5,0);
STICKLINE(大三W底,10,90,1,0),COLORWHITE;
STICKLINE(小三W底,10,80,1,0),COLOR6666FF;
STICKLINE(六级买入,10,70,1,0),COLORGREEN;
STICKLINE(五级买入,10,60,2,0),COLORMAGENTA;
STICKLINE(四级买入,10,50,3,0),COLORYELLOW;
STICKLINE(三级买入,10,40,4,0),COLORRED;
STICKLINE(二级买入,10,30,5,0),COLORBLUE;
STICKLINE(一级买入,10,20,6,0),COLORLIGRAY;
EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3),COLORDEBC56;