{牛B指标}
{参数:N,最小1,最大20,缺省7}
N:=7;
ZDF:=(C-REF(C,1))/REF(C,1)*100;
涨停:=ZDF>9.0;
HA:=COUNT(涨停,20)>=1;
我BIAS:=(CLOSE-MA(CLOSE,7))/MA(CLOSE,7)*100,LINETHICK0;
VOLUME:=VOL,VOLSTICK;
MAVOL1:=MA(VOLUME,5);
MAVOL2:=MA(VOLUME,10);
AA:=SUMBARS(VOL,CAPITAL);
地量:=IF(CAPITAL=0,AMOUNT=LLV(AMOUNT,34),VOL<MA(VOL,AA)*30/100 AND VOL>0);
天量:=IF(CAPITAL=0,AMOUNT=HHV(AMOUNT,34),VOL>MA(VOL,AA)*33/10 );
成交量:=VOL;
前下:=2*(REF(H,1)+REF(L,1)+REF(C,1))/3-REF(H,1);
HB:=COUNT(天量,20)>=1;
HH:=HA OR HB;
BIAS1:=(CLOSE-MA(CLOSE,N))/MA(CLOSE,6)*100;
无差别:CROSS(-5,BIAS1);
牛B:CROSS(-5,BIAS1) AND HH,COLORBLUE,LINETHICK6;
牛10:CROSS(-10,BIAS1),LINETHICK2;
牛长:(-10>=BIAS1) AND HH,COLORRED,LINETHICK2;