上升线:EMA(C,3),COLORRED,LINETHICK2; 下降线:EMA(C,5),COLOR00FF00,LINETHICK2; 中间线:EMA(下降线,5),COLORWHITE,LINETHICK2; TMEY1:=(HIGH+LOW+OPEN+2*CLOSE)/5; TMEY2:=REF(TMEY1,1); TMEY3:=SMA((CLOSE-TMEY2),6,1)/SMA(ABS(CLOSE-TMEY2),6,1)*100; TMEY4:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100; TMEY5:=EMA(0.667*REF(TMEY4,1)+0.333*TMEY4,5); TMEY6:=IF(VOL>=1.3*MA(VOL,5) AND COUNT(TMEY4>=TMEY5 AND TMEY4<-17,3) AND REF(LOW,1)=LLV(LOW,120),1,0); TMEY7:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100; TMEY8:=SMA(MAX(TMEY1-TMEY2,0),10,1)/SMA(ABS(TMEY1-TMEY2),10,1)*100; TMEY9:=IF(COUNT(TMEY8<20,5)>=1 AND COUNT(TMEY1=LLV(TMEY1,10),10)>=1 AND CLOSE>=OPEN*1.038 AND VOL>MA(VOL,5)*1.2,1,0); DRAWICON(FILTER(REF(TMEY3,1)>81 AND TMEY3<80 OR CROSS(82,TMEY7),5),HIGH,2); DRAWTEXT(FILTER(REF(TMEY3,1)>81 AND TMEY3<80 OR CROSS(82,TMEY7),5),HIGH,'快卖'),COLORYELLOW; DRAWTEXT(FILTER(TMEY9 OR TMEY6,5),LOW,'注意买入'),COLORRED; DRAWICON(FILTER(CROSS(上升线,下降线)AND 中间线>=REF(中间线,1)AND TMEY3<50,5),上升线,1); 量化数值:=1; 量化数值1:=2; 日:=150; 昨前:=3; 高1:=REF(HHV(H,日),昨前); 顶:REFDATE(高1,DATE),COLORBLACK; 绝顶:=REFDATE(顶,DATE),NODRAW; 溜:=绝顶=H AND ((C-L)<(O-C) OR (O-L)<(C-O)),NODRAW; STICKLINE(溜,C,O,3,0),COLOR777777; STICKLINE(溜,C,O,2,0),COLORAAAAAA; STICKLINE(溜,C,O,1,0),COLORCCCCCC; STICKLINE(溜,C,O,0.1,0),COLORFFFFFF; STICKLINE(溜,L,H,0,0),COLORFFFFFF; DRAWTEXT(溜,C*1.06,'绝顶')COLORFFFFFF; ZT:=REF(C,1)*1.1-C<0.01 AND H=C; STICKLINE( ZT,C,O,2,0),COLORYELLOW; 巨量平台:REF(H,BARSLAST(V=HHV(VOL,120)))DOTLINE,COLORWHITE,LINETHICK1; 综合1:= NOT(REF(巨量平台,1)=巨量平台) AND ZT; DRAWTEXT(综合1,L,'量爆'),COLORCYAN; 操:=MA(C,5); 分界:HHV(操,13)DOTLINE,COLORFFB9CC; 筛选过滤:BACKSET(CURRBARSCOUNT=13,42),NODRAW; 划线范围:BACKSET(CURRBARSCOUNT=0,55),NODRAW; X_3:=IF(CURRBARSCOUNT<=55 AND CURRBARSCOUNT>=13 AND 筛选过滤,CONST(REF(LOW,量化数值)),DRAWNULL); 辅助线1:IF(CURRBARSCOUNT<=55 AND 筛选过滤=0,CONST(REF(LOW,量化数值)),DRAWNULL),DOTLINE,COLORRED; 有效K线1:筛选过滤 AND ABS((MAX(OPEN,CLOSE)-X_3)/X_3*100)<=1.5,NODRAW; 满足1:COUNT(有效K线1,55)>=3,NODRAW; 成立线1:IF(CONST(满足1),X_3,DRAWNULL),COLORGREEN,LINETHICK2; STICKLINE(有效K线1,OPEN,CLOSE,2,0),COLORMAGENTA; STICKLINE(有效K线1,LOW,HIGH,0,0),COLORMAGENTA; STICKLINE(CURRBARSCOUNT=量化数值+1,OPEN,CLOSE,2,0),COLORMAGENTA; STICKLINE(CURRBARSCOUNT=量化数值+1,LOW,HIGH,0,0),COLORMAGENTA; X_4:=IF(CURRBARSCOUNT<=55 AND CURRBARSCOUNT>=13 AND 筛选过滤,CONST(REF(LOW,量化数值1)),DRAWNULL); 辅助线2:IF(CURRBARSCOUNT<=55 AND 筛选过滤=0,CONST(REF(LOW,量化数值1)),DRAWNULL),DOTLINE,COLORRED; 条件符合线:筛选过滤 AND ABS((MAX(HIGH,CLOSE)-X_4)/X_4*100)<=1.5,NODRAW; 满足2:COUNT(条件符合线,55)>=2,NODRAW; 成立线2:IF(CONST(满足2),X_4,DRAWNULL),COLORGREEN,LINETHICK2; STICKLINE(条件符合线,OPEN,CLOSE,2,0),COLORMAGENTA; STICKLINE(条件符合线,LOW,HIGH,0,0),COLORMAGENTA; STICKLINE(CURRBARSCOUNT=量化数值1+1,OPEN,CLOSE,2,0),COLORWHITE; STICKLINE(CURRBARSCOUNT=量化数值1+1,LOW,HIGH,0,0),COLORWHITE; 昨日收盘:IF(CURRBARSCOUNT<=5,CONST(REF(C,1)),DRAWNULL); 长趋势:EMA(CLOSE,250),NODRAW,COLOR8000FF; NOTEXTA:IF(长趋势>=REF(长趋势,1),长趋势,DRAWNULL),COLORRED,LINETHICK4,POINTDOT; NOTEXTB:IF(长趋势<REF(长趋势,1),长趋势,DRAWNULL),COLOR006A6A,LINETHICK4,POINTDOT; T:=FINDHIGHBARS(H,60,30,1); A:DRAWLINE(CURRBARSCOUNT=CONST(T)+1,H,ISLASTBAR,REF(H,T),0),COLORYELLOW; TT:=BARSLAST(C>A*1.014 AND L<A); TA:=BARSLAST(CROSS(A!=DRAWNULL,0.5)); TJ:=VOL=HHV(VOL,T+1) AND TA>28; TJ1:=COUNT(EXPMA(C,2)>=A,TA+1)=1 AND EXPMA(C,2)>=A*1.01; E13:=EXPMA(C,TA+1); CJ:=(A/E13-1) *100 ; HH:=HHV(CJ,10);{股民学院 www.58188.com 整理} 综合:=COUNT(TT=0,T+1)=1 AND TT=0 AND TJ AND TJ1 AND HH<20; STICKLINE(综合,H,L,0,0),COLORFF00FF; STICKLINE(综合,C,O,3,0),COLOR990099; STICKLINE(综合,C,O,2,0),COLORBB00BB; STICKLINE(综合,C,O,1,0),COLORDD00DD; STICKLINE(综合,C,O,0.3,0),COLORFF00FF; DRAWICON(综合,L*0.93,25); DRAWTEXT(TA=0,A*1.05,STRCAT(STRCAT('最高价:',VAR2STR(REF(A,TA),2)),'元'))COLORYELLOW; |