X1:=ABS(MA(C,10)/MA(C,20)-1)<0.01;
X2:=ABS(MA(C,5)/MA(C,10)-1)<0.01;
X3:=ABS(MA(C,5)/MA(C,20)-1)<0.01;
X4:=MA(C,5)>REF(MA(C,5),1) AND X1 AND X2 AND X3;
BBIBOLL:=(MA(C,3)+MA(C,6)+MA(C,12)+MA(C,24))/4;
UPR:=BBIBOLL+6*STD(BBIBOLL,11);
DWN:=BBIBOLL-6*STD(BBIBOLL,11);
X5:=MAX(MAX(MA(C,5),MA(C,10)),MAX(MA(C,10),MA(C,20)));
X6:=MIN(MIN(MA(C,5),MA(C,10)),MIN(MA(C,10),MA(C,20)));
X7:=O<=X6 AND C>=X5 AND REF(C>O,1) AND MA(C,60)>REF(MA(C,60),1)
AND MA(C,20)>REF(MA(C,20),1) AND C>O AND C>UPR AND C>BBIBOLL AND BBIBOLL>O AND O/DWN<1.005 AND X4;
X8:=O<=X6 AND C>=X5 AND {REF(CUPR AND} C>BBIBOLL AND BBIBOLL>O AND O/DWN<1.005 AND X4;
牛黑马:X7 OR X8;