MA5:MA(CLOSE,5),LINETHICK1,COLORGREEN; MA10:MA(CLOSE,10),LINETHICK1,COLORRED; 現(xiàn)價(jià):CLOSE,COLORWHITE,NODRAW; _10日漲跌%: (C-REF(CLOSE,10))/REF(CLOSE,10)*100,COLORGREEN,NODRAW; 給:=EMA(C,2),COLORRED; 力:=EMA(SLOPE(C,9)*20+C,37); 買:=CROSS(給,力); 賣:=CROSS(力,給); DRAWICON(買,L*0.98,1); DRAWTEXT(買,L*0.96,'進(jìn)'),COLORRED; DRAWICON(賣,H*1.02,2); DRAWTEXT(賣,H*1.03,'出'),COLORYELLOW; STICKLINE(給>=力,LOW,HIGH,0.01,0),COLOR0000DD; STICKLINE(給>=力,CLOSE,OPEN,2,1),COLORRED; STICKLINE(給>=力,LOW,HIGH,0.01,0),COLOR0000DD; STICKLINE(給>=力,CLOSE,OPEN,2,1),COLORRED; STICKLINE(給<力,LOW,HIGH,0.01,0),COLORFFDD00; STICKLINE(給<力,CLOSE,OPEN,2,0),COLORFFFF00; STICKLINE(CROSS(給,力),OPEN,CLOSE,2.5,0),COLORYELLOW; STICKLINE(CROSS(力,給),OPEN,CLOSE,2.5,0),COLORWHITE; MA60:=MA(CLOSE,60),COLORMAGENTA,LINETHICK4; MA200:=MA(CLOSE,200),COLORFF0000,LINETHICK4; DRAWICON(CROSS(MA60,MA200),MA200,1); DRAWICON(CROSS(MA200,MA60),MA200,2); 主力建倉:=MA60>MA200 AND CROSS(MA60,MA200); 主力清倉:=MA60<MA200 AND CROSS(MA200,MA60); DRAWTEXT(主力建倉,MA60-0.30,'主力建倉'),COLOR0000FF; DRAWTEXT(主力清倉,MA200+0.30,'主力清倉'),COLOR00FF00; VAR33:=(CLOSE*2.5/100+CLOSE); 阻力價(jià):=HHV(HIGH,19),COLORBLUE, LINETHICK3; DRAWICON(阻力價(jià)>REF(阻力價(jià),1)AND CROSS(阻力價(jià),VAR33)AND C<O,H*1.02,6); DRAWTEXT(阻力價(jià)>REF(阻力價(jià),1)AND CROSS(阻力價(jià),VAR33)AND C<O,H,'逃'); VAR110:=(HIGH+LOW+OPEN+2*CLOSE)/5; VAR2:=REF(VAR110,1); VAR3:=SMA((CLOSE-VAR2),6,1)/SMA(ABS(CLOSE-VAR2),6,1)*100; VAR4:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100; VAR5:=EMA(0.667*REF(VAR4,1)+0.333*VAR4,5); VAR6:=IF(VOL>=1.3*MA(VOL,5) AND COUNT(VAR4>=VAR5 AND VAR4<-17,3) AND REF(LOW,1)=LLV(LOW,120),1,0); VAR7:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100; VAR8:=SMA(MAX(VAR110-VAR2,0),10,1)/SMA(ABS(VAR110-VAR2),10,1)*100; VAR9:=IF(COUNT(VAR8<20,5)>=1 AND COUNT(VAR110=LLV(VAR110,10),10)>=1 AND CLOSE>=OPEN*1.038 AND VOL>MA(VOL,5)*1.2,1,0); DRAWTEXT(FILTER(VAR9 OR VAR6,5),LOW,'注意買入'),COLORRED; AAA:=(3*C+H+L+O)/6; VAR1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36; TJ1:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>VAR1; 立樁量:=FILTER(TJ1,5); TJ2:=IF(BARSLAST(立樁量)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(立樁量)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(立樁量)=3 AND CLOSE>REF(HIGH,3),1,0))); 突破:=TJ2=1; TJ3:=IF(BARSLAST(立樁量)=1 AND CLOSE>REF(LOW,1),1,IF(BARSLAST(立樁量)=2 AND CLOSE>REF(LOW,2),1,IF(BARSLAST(立樁量)=3 AND CLOSE>REF(LOW,3),1,0))); 三天法則:=TJ3=1; 成立:=三天法則 AND 突破; 條件成立:=FILTER(成立,3); DRAWTEXT(條件成立,L*0.99,'成立'),COLORRED; 指標(biāo)王:=CROSS(SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,3,1),SMA(SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,3,1),3,1)) AND SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,3,1)<20; DRAWICON(指標(biāo)王,LOW*0.96,1); DRAWTEXT(指標(biāo)王,L,'主力信號(hào)'),COLORMAGENTA; 后金窗:COUNT(L=LLV(L,20),20)=1 AND L=LLV(L,20),NODRAW,COLORFF00FF; DRAWICON(后金窗,LOW*0.98, 1); DRAWTEXT(后金窗>0, LOW*0.95,'后金窗'),COLORYELLOW; VAR26:=EMA(CLOSE,2)-EMA(CLOSE,150); VAR27:=EMA(VAR26,100); VAR28:=2*(VAR26-VAR27); VAR29:=POW(VAR28,3)*0.1+POW(VAR28,1); VAR2A:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE)); VAR2B:=EMA(VAR2A*0.97,3); VAR2C:=(HIGH+LOW+CLOSE)/3; VAR2D:=(VAR2C-MA(VAR2C,14))/(0.015*AVEDEV(VAR2C,14)); 龍?zhí)ь^:=IF( VAR28>0.1,VAR29,0)*5,COLORCYAN; 護(hù)盤: CROSS(VAR28,1),COLORFF9900,NODRAW; DRAWICON(護(hù)盤,LOW*0.98,1); DRAWTEXT(護(hù)盤>0, LOW*0.95,'護(hù)盤'),COLORMAGENTA; DIF:=EMA(CLOSE,6)-EMA(CLOSE,16); DEA:=EMA(DIF,9); 資金窗:CROSS(DIF,DEA) AND DEA>-0.05,COLORFFFFFF,NODRAW; DRAWICON(資金窗,LOW*0.98,1); DRAWTEXT(資金窗>0, LOW*0.95,'資金窗'),COLORYELLOW; 答案 VAR33:=(CLOSE*2.5/100+CLOSE); |
|