MID:=REF(HIGH+LOW,1)/2; CR:SUM(MAX(0,HIGH-MID),26)/SUM(MAX(0,MID-LOW),26)*100; MA1:REF(EMA(CR,10),10/2.5+1); MA2:REF(EMA(CR,20),20/2.5+1); MA3:REF(EMA(CR,40),40/2.5+1); MA4:REF(EMA(CR,62),62/2.5+1); X:=CR>MA1 AND CR>MA2 AND CR>MA3 AND CR>MA4; XG:=X AND REF(X,1)=0; 高開:= L>REF(C,1); DRAWICON(XG AND 高開 ,CR,11); 199; 50; 量比:V/(REF(MA(V,5),1))COLORYELLOW NODRAW ; 乖離率 :=(CLOSE-MA(CLOSE,30))/MA(CLOSE,30)*100<16 NODRAW; STICKLINE(CR<50,CR,50,1,50),COLORGREEN; P1:= ((C-REF(C,1))/REF(C,1)< -0.0001) AND ( CR>REF( CR,1)) ; A:=REF(C,1)/REF(C,2)>=1.096 AND C<REF(C,1); P2:=CROSS(CR,198); P3:=CROSS(CR,50); 角度數:=(ATAN((MA(C,10)/REF(MA(C,10),1)-1)*100)*180/3.14115926); DRAWICON( P3,200,28); DRAWICON( 高開 AND 乖離率,260,2); P5:=CROSS(CR,50) AND ZJLRQD>2; DRAWICON( P5,160,3); N:=10; CCI:=CR; CCI底背:=REF(C,BARSLAST(REF(FILTER(BACKSET(REF(CCI,N)=LLV(CCI,2*N+1),N+1),N) AND CCI=LLV(CCI,N+1),1))+1)>C AND REF(CCI,BARSLAST(REF(FILTER(BACKSET(REF(CCI,N)=LLV(CCI,2*N+1),N+1),N) AND CCI=LLV(CCI,N+1),1))+1)<CCI AND FILTER(BACKSET(REF(CCI,N)=LLV(CCI,2*N+1),N+1),N) AND CCI=LLV(CCI,N+1),COLORWHITE,NODRAW; DRAWLINE(FILTER(BACKSET(REF(CCI,N)=LLV(CCI,2*N+1),N+1),N) AND CCI=LLV(CCI,N+1),CCI,FILTER(CCI底背>0,5),CCI,0), COLORLIGREEN,DOTLINE LINETHICK2; DRAWTEXT(CCI底背,CCI,'底背'),COLORWHITE; |
|