走势:=MA(CLOSE,1);
AT:=IF(DATE>1110208,1,1);
桥:=(3*CLOSE+LOW+OPEN+HIGH)/6;
开怀畅饮:=(20*桥+19*REF(桥,1)+18*REF(桥,2)+17*REF(桥,3)+
16*REF(桥,4)+15*REF(桥,5)+14*REF(桥,6)+
13*REF(桥,7)+12*REF(桥,8)+11*REF(桥,9)+
10*REF(桥,10)+9*REF(桥,11)+8*REF(桥,12)+
7*REF(桥,13)+6*REF(桥,14)+5*REF(桥,15)+
4*REF(桥,16)+3*REF(桥,17)+2*REF(桥,18)+REF(桥,20))/210,COLORRED;
M:=60;
散值:=100*(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M))*AT;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100*AT;
彩:=SMA(RSV,3,1)*AT;
虹:=SMA(彩,3,1)*AT;
飘:=3*彩-2*虹*AT;
走:=EMA(CLOSE,12)-EMA(CLOSE,26)*AT;
辅:=EMA(走,9)*AT;
条件:=COUNT(crOSS(走势,开怀畅饮),BArslAST(辅>=0));
拉:=(CROSS(走势,开怀畅饮) AND COUNT(条件=4,30)=1);
黑:=(拉 AND 飘>30 AND 走>-0.50 AND 走<0.05);
黑马启动:黑 AND 散值<80;