DIFF:=EMA(C,8)-EMA(C,13); DEA:=EMA(DIFF,5); GZB1:=DIFF>DEA; WU1:=(C-LLV(LOW,8))/(HHV(H,8)-LLV(LOW,8))*100; K:=SMA(WU1,3,1); D:=SMA(K,3,1); GZB2:=K>D; ZS:=REF(C,1); NS1:=(SMA(MAX(C-ZS,0),5,1))/(SMA(Abs(C-ZS),5,1))*100; NS2:=(SMA(MAX(C-ZS,0),13,1))/(SMA(ABS(C-ZS),13,1))*100; GZB3:=NS1>NS2; WU:=-(HHV(H,13)-C)/(HHV(H,13)-LLV(LOW,13))*100;
均线5:MA(C,5)DOTLINE; 均线10:MA(C,13)LINETHICK2;
主力突破1:=SMA(WU,3,1); 主力突破2:=SMA(主力突破1,3,1); GZB4:=主力突破1>主力突破2;
bbi:=(MA(C,3)+MA(C,6)+MA(C,12)+MA(C,24))/4; GZB5:=C>BBI; 擒牛:=C-REF(C,1); 擒牛J:=100*EMA(EMA(擒牛,5),3)/EMA(EMA(ABS(擒牛),5),3); 擒牛M:=100*EMA(EMA(擒牛,13),8)/EMA(EMA(ABS(擒牛),13),8); GZB6:=擒牛J>擒牛M; 擒牛S:=(C*2+H+L)/4; DT:=EMA(擒牛S,13)-EMA(擒牛S,34); ZT:=EMA(DT,5);
空头:=(-2*(DT-ZT))*3.8,COLORGREEN;
多头:=(2*(DT-ZT))*3.8,COLORRED; GZB7:=多头>空头; MA11:=MA(C,5); MA22:=REF(MA(C,5),1); 擒牛突破2:=IF(MONTH< 12,1,1); 擒牛突破3:=(2*C+H+LOW)/4; 擒牛突破4:=LLV(LOW,34); 擒牛突破5:=HHV(H,34); 主力:=EMA((擒牛突破3-擒牛突破4)/(擒牛突破5-擒牛突破4)*100,13)*擒牛突破2;
散户:=EMA(0.667*REF(主力,1)+0.333*主力,2); GZB9:=主力>散户; GZB10:=(多头>空头) AND (主力>散户); GZB11:=(多头>空头) AND (主力>散户) AND (DIFF>DEA) AND (K>D) AND (NS1>NS2) AND (主力突破1>主力突破2) AND (C>BBI) AND (擒牛J>擒牛M);
量价齐升:=BARSLASTCOUNT((GZB1 AND GZB2 AND GZB3 AND GZB4 AND GZB5 AND GZB6 AND GZB7 AND GZB9 AND GZB10 AND GZB11))=1; DRAWICON((GZB1 AND GZB2 AND GZB3 AND GZB4 AND GZB5 AND GZB6 AND GZB7 AND GZB9 AND GZB10 AND GZB11),L,1); STICKLINE((GZB1 AND GZB2 AND GZB3 AND GZB4 AND GZB5 AND GZB6 AND GZB7 AND GZB9 AND GZB10 AND GZB11),OPEN,C,2,0),COLORYELLOW; STICKLINE((GZB1 AND GZB2 AND GZB3 AND GZB4 AND GZB5 AND GZB6 AND GZB7 AND GZB9 AND GZB10 AND GZB11),OPEN,C,1,0),COLORFF00FF; DRAWICON(量价齐升,L,25); DRAWTEXT(量价齐升,L*0.96,'★量价齐升'),COLORYELLOW;
DIFF:=EMA(C,8)-EMA(C,13);
DEA:=EMA(DIFF,5);
GZB1:=DIFF>DEA;
WU1:=(C-LLV(LOW,8))/(HHV(H,8)-LLV(LOW,8))*100;
K:=SMA(WU1,3,1);
D:=SMA(K,3,1);
GZB2:=K>D;
ZS:=REF(C,1);
NS1:=(SMA(MAX(C-ZS,0),5,1))/(SMA(Abs(C-ZS),5,1))*100;
NS2:=(SMA(MAX(C-ZS,0),13,1))/(SMA(ABS(C-ZS),13,1))*100;
GZB3:=NS1>NS2;
WU:=-(HHV(H,13)-C)/(HHV(H,13)-LLV(LOW,13))*100;
均线5:MA(C,5)DOTLINE;
均线10:MA(C,13)LINETHICK2;
主力突破1:=SMA(WU,3,1);
主力突破2:=SMA(主力突破1,3,1);
GZB4:=主力突破1>主力突破2;
bbi:=(MA(C,3)+MA(C,6)+MA(C,12)+MA(C,24))/4;
GZB5:=C>BBI;
擒牛:=C-REF(C,1);
擒牛J:=100*EMA(EMA(擒牛,5),3)/EMA(EMA(ABS(擒牛),5),3);
擒牛M:=100*EMA(EMA(擒牛,13),8)/EMA(EMA(ABS(擒牛),13),8);
GZB6:=擒牛J>擒牛M;
擒牛S:=(C*2+H+L)/4;
DT:=EMA(擒牛S,13)-EMA(擒牛S,34);
ZT:=EMA(DT,5);
空头:=(-2*(DT-ZT))*3.8,COLORGREEN;
多头:=(2*(DT-ZT))*3.8,COLORRED;
GZB7:=多头>空头;
MA11:=MA(C,5);
MA22:=REF(MA(C,5),1);
擒牛突破2:=IF(MONTH< 12,1,1);
擒牛突破3:=(2*C+H+LOW)/4;
擒牛突破4:=LLV(LOW,34);
擒牛突破5:=HHV(H,34);
主力:=EMA((擒牛突破3-擒牛突破4)/(擒牛突破5-擒牛突破4)*100,13)*擒牛突破2;
散户:=EMA(0.667*REF(主力,1)+0.333*主力,2);
GZB9:=主力>散户;
GZB10:=(多头>空头) AND (主力>散户);
GZB11:=(多头>空头) AND (主力>散户) AND (DIFF>DEA) AND (K>D) AND (NS1>NS2) AND (主力突破1>主力突破2) AND (C>BBI) AND (擒牛J>擒牛M);
量价齐升:=BARSLASTCOUNT((GZB1 AND GZB2 AND GZB3 AND GZB4 AND GZB5 AND GZB6 AND GZB7 AND GZB9 AND GZB10 AND GZB11))=1;
DRAWICON((GZB1 AND GZB2 AND GZB3 AND GZB4 AND GZB5 AND GZB6 AND GZB7 AND GZB9 AND GZB10 AND GZB11),L,1);
STICKLINE((GZB1 AND GZB2 AND GZB3 AND GZB4 AND GZB5 AND GZB6 AND GZB7 AND GZB9 AND GZB10 AND GZB11),OPEN,C,2,0),COLORYELLOW;
STICKLINE((GZB1 AND GZB2 AND GZB3 AND GZB4 AND GZB5 AND GZB6 AND GZB7 AND GZB9 AND GZB10 AND GZB11),OPEN,C,1,0),COLORFF00FF;
DRAWICON(量价齐升,L,25);
DRAWTEXT(量价齐升,L*0.96,'★量价齐升'),COLORYELLOW;