DRAWTEXT_FIX(1,0.005,0,0,'所属风格:'),COLORYELLOW; DRAWTEXT_FIX(1,0.06,0,0,FGBLOCK),COLORYELLOW; DRAWTEXT_FIX(1,0.005,0.05,0,'所属概念:'),COLORMAGENTA; DRAWTEXT_FIX(1,0.06,0.05,0,GNBLOCK),COLORYELLOW; DIFF:=EMA(C,8)-EMA(C,13); DEA:=EMA(DIFF,5); CTA1:=DIFF>DEA; WU1:=(C-LLV(LOW,8))/(HHV(H,8)-LLV(LOW,8))*100; K:=SMA(WU1,3,1); D:=SMA(K,3,1); CTA2:=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; CTA3:=NS1>NS2; WU:=-(HHV(H,13)-C)/(HHV(H,13)-LLV(LOW,13))*100; CTB5:MA(C,5)DOTLINE; CTB10:MA(C,13)LINETHICK2;
主力突破1:=SMA(WU,3,1); 主力突破2:=SMA(主力突破1,3,1); CTA4:=主力突破1>主力突破2;
bbi:=(MA(C,3)+MA(C,6)+MA(C,12)+MA(C,24))/4; CTA5:=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); CTA6:=擒牛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; CTA7:=多头>空头;MA11:=MA(C,5); MA22:=REF(MA(C,5),1); GZB2:=IF(MONTH<12,1,1); GZB3:=(2*C+H+LOW)/4; GZB4:=LLV(LOW,34); GZB5:=HHV(H,34); 主力:=EMA((GZB3-GZB4)/(GZB5-GZB4)*100,13)*GZB2;
散户:=EMA(0.667*REF(主力,1)+0.333*主力,2); CTA9:=主力>散户; CTA10:=(多头>空头)AND(主力>散户); CTA11:=(多头>空头)AND(主力>散户)AND(DIFF>DEA)AND(K>D)AND(NS1>NS2)AND(主力突破1>主力突破2)AND(C>BBI)AND(擒牛J>擒牛M);
量价主升:=BARSLASTCOUNT((CTA1 AND CTA2 AND CTA3 AND CTA4 AND CTA5 AND CTA6 AND CTA7 AND CTA9 AND CTA10 AND CTA11))=1; DRAWICON((CTA1 AND CTA2 AND CTA3 AND CTA4 AND CTA5 AND CTA6 AND CTA7 AND CTA9 AND CTA10 AND CTA11),L,1); STICKLINE((CTA1 AND CTA2 AND CTA3 AND CTA4 AND CTA5 AND CTA6 AND CTA7 AND CTA9 AND CTA10 AND CTA11),OPEN,C,2,0),COLORYELLOW; STICKLINE((CTA1 AND CTA2 AND CTA3 AND CTA4 AND CTA5 AND CTA6 AND CTA7 AND CTA9 AND CTA10 AND CTA11),OPEN,C,1,0),COLORFF00FF; DRAWICON(量价主升,L,25);DRAWTEXT(量价主升,L*0.96,'★量价主升'),COLORYELLOW;
DRAWTEXT_FIX(1,0.005,0,0,'所属风格:'),COLORYELLOW;
DRAWTEXT_FIX(1,0.06,0,0,FGBLOCK),COLORYELLOW;
DRAWTEXT_FIX(1,0.005,0.05,0,'所属概念:'),COLORMAGENTA;
DRAWTEXT_FIX(1,0.06,0.05,0,GNBLOCK),COLORYELLOW;
DIFF:=EMA(C,8)-EMA(C,13);
DEA:=EMA(DIFF,5);
CTA1:=DIFF>DEA;
WU1:=(C-LLV(LOW,8))/(HHV(H,8)-LLV(LOW,8))*100;
K:=SMA(WU1,3,1);
D:=SMA(K,3,1);
CTA2:=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;
CTA3:=NS1>NS2;
WU:=-(HHV(H,13)-C)/(HHV(H,13)-LLV(LOW,13))*100;
CTB5:MA(C,5)DOTLINE;
CTB10:MA(C,13)LINETHICK2;
主力突破1:=SMA(WU,3,1);
主力突破2:=SMA(主力突破1,3,1);
CTA4:=主力突破1>主力突破2;
bbi:=(MA(C,3)+MA(C,6)+MA(C,12)+MA(C,24))/4;
CTA5:=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);
CTA6:=擒牛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;
CTA7:=多头>空头;MA11:=MA(C,5);
MA22:=REF(MA(C,5),1);
GZB2:=IF(MONTH<12,1,1);
GZB3:=(2*C+H+LOW)/4;
GZB4:=LLV(LOW,34);
GZB5:=HHV(H,34);
主力:=EMA((GZB3-GZB4)/(GZB5-GZB4)*100,13)*GZB2;
散户:=EMA(0.667*REF(主力,1)+0.333*主力,2);
CTA9:=主力>散户;
CTA10:=(多头>空头)AND(主力>散户);
CTA11:=(多头>空头)AND(主力>散户)AND(DIFF>DEA)AND(K>D)AND(NS1>NS2)AND(主力突破1>主力突破2)AND(C>BBI)AND(擒牛J>擒牛M);
量价主升:=BARSLASTCOUNT((CTA1 AND CTA2 AND CTA3 AND CTA4 AND CTA5 AND CTA6 AND CTA7 AND CTA9 AND CTA10 AND CTA11))=1;
DRAWICON((CTA1 AND CTA2 AND CTA3 AND CTA4 AND CTA5 AND CTA6 AND CTA7 AND CTA9 AND CTA10 AND CTA11),L,1);
STICKLINE((CTA1 AND CTA2 AND CTA3 AND CTA4 AND CTA5 AND CTA6 AND CTA7 AND CTA9 AND CTA10 AND CTA11),OPEN,C,2,0),COLORYELLOW;
STICKLINE((CTA1 AND CTA2 AND CTA3 AND CTA4 AND CTA5 AND CTA6 AND CTA7 AND CTA9 AND CTA10 AND CTA11),OPEN,C,1,0),COLORFF00FF;
DRAWICON(量价主升,L,25);DRAWTEXT(量价主升,L*0.96,'★量价主升'),COLORYELLOW;