{CCI月周日} 換手:VOL/CAPITAL*100,NODRAW,COLORRED; 牛熊線:100,COLORGREEN,DOTLINE; 月C:("CCI.CCI#MONTH"(14)),COLORRED,LINETHICK3; 周C:("CCI.CCI#WEEK"(14)),COLORYELLOW,LINETHICK2; 日C:=("CCI.CCI"(14)),COLORLIGRAY,LINETHICK2; QS:=周C>=月C AND 周C>=200 AND 月C>=110; STICKLINE(QS,-115,-105,3,0),COLORRED; DRAWICON(CROSS(日C,100) AND 周C>=月C AND 周C>=200 AND 月C>=110,日C,38); LC:=REF(CLOSE,1); RSI6:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100,LINETHICK2; MA6:=MA(RSI6,6),COLORGREEN; 短波:=IF(MA6>REF(MA6,1) OR RSI6>MA6,MA6,DRAWNULL),COLORRED,LINETHICK2; TYPD:=IF((H>C AND C>O) OR (H>O AND O>=C),C,H)+IF((L<C AND C<O) OR(L<O AND O<=C),CLOSE,LOW)/3; 買好股CCI:=EMA((TYPD-MA(TYPD,36.0270012))/(0.015*AVEDEV(TYPD,36.0270012)),2.0332),COLORWHITE,LINETHICK2; 日:買好股CCI,COLORWHITE,LINETHICK2; 粉低吸:EVERY(買好股CCI<-150 AND 買好股CCI<REF(買好股CCI,1),3),NODRAW,COLORFF00FF; STICKLINE(買好股CCI<-150,買好股CCI,-150,2,0),COLORFF80FF; STICKLINE(C>0,-150,-151,2,0),COLORBLUE; DRAWICON(CROSS(買好股CCI,100) AND 周C>=月C AND 周C>=200 AND 月C>=110 ,買好股CCI,34); DRAWICON(CROSS(買好股CCI,110) AND 周C>=月C AND 周C>=200 AND 月C>=0 AND 短波,買好股CCI,1); 買線:=EMA(C,2); 賣線:=EMA(SLOPE(C,21)*20+C,42); STICKLINE(買線>=賣線,0,10,2,1),COLOR2040FF; STICKLINE(買線<賣線,0,-10,2,1),COLOR6CE424; DRAWTEXT(ISLASTBAR,月C,' ←月C'),COLORRED; DRAWTEXT(ISLASTBAR,周C,' ←周C'),COLORYELLOW; DRAWTEXT(ISLASTBAR,日,' ←日'),COLORWHITE; |
|