aa1:LLV(LOW,34),LINETHICK1,COLORFFFFCC; aa2:MA(aa1,4),LINETHICK1,COLORYELLOW; TYP := (HIGH + LOW + CLOSE)/3; aa3:=(TYP-MA(TYP,6))/(0.015*AVEDEV(TYP,5)); 纏論主圖:=ABS(REF(aa3,1)-aa3),LINETHICK0; aa4:=(TYP-MA(TYP,10))/(0.015*AVEDEV(TYP,10)); 指標:=ABS(REF(aa4,1)-aa4),LINETHICK0; aa5:=(TYP-MA(TYP,20))/(0.015*AVEDEV(TYP,20)); 源碼:=ABS(REF(aa5,1)-aa5),LINETHICK0; aa6:=(TYP-MA(TYP,30))/(0.015*AVEDEV(TYP,30)); 通達信公式:=ABS(REF(aa6,1)-aa6),LINETHICK0; aa7:=(TYP-MA(TYP,60))/(0.015*AVEDEV(TYP,60)); 最強:=ABS(REF(aa7,1)-aa7),LINETHICK0; CCI:=aa3+aa4+aa5+aa6+aa7; mmm:=(3*C+H+L+O)/6; aa8:=(8*mmm+7*REF(mmm,1)+6*REF(mmm,2)+5*REF(mmm,3) +4*REF(mmm,4)+3*REF(mmm,5)+2*REF(mmm,6)+REF(mmm,8))/36; bb2:=(HHV(aa8,5)+HHV(aa8,10)+HHV(aa8,20))/3; bb3:=(LLV(aa8,5)+LLV(aa8,10)+LLV(aa8,20))/3; bb4:=(HHV(bb2,5)+HHV(bb2,10)+HHV(bb2,20))/3; bb5:=(LLV(bb3,5)+LLV(bb3,10)+LLV(bb3,20))/3; bb1:=(LLV(aa8,2)+LLV(aa8,4)+LLV(aa8,6))/3; 最強1:aa8,COLORWHITE; 最強2:bb1,COLORYELLOW; 纏論:IF(aa8=bb1,bb1, DRAWNULL),COLORGREEN; TJ1:= aa3>通達信公式; 成交量:=FILTER(TJ1,0),NODRAW; TJ2:=IF(BARSLAST(成交量)=1 ,1,0); STICKLINE(成交量 !=1,REF(HIGH,BARSLAST(成交量)), REF(HIGH,BARSLAST(成交量)),1,1),COLORCYAN; {STICKLINE(成交量 !=1,REF(LOW,BARSLAST(成交量)), REF(LOW,BARSLAST(成交量)),1,1),COLORCYAN;} 成立1:=TJ2=1; eer11:=FILTER(成立1,5); DRAWTEXT(eer11, REF(HIGH,BARSLAST(成交量)),'賣點'),COLORLIBLUE; TJ11:= aa3<-通達信公式 ; 成交量2:=FILTER(TJ11,0),NODRAW; TJ22:=IF(BARSLAST(成交量2)=1 AND CLOSE>REF(HIGH,1),1,0); 突破2:=TJ22=1; {STICKLINE(CLOSE AND 纏論!= bb1,REF(HIGH,BARSLAST(成交量2)), REF(HIGH,BARSLAST(成交量2)),1,1),COLORYELLOW;} STICKLINE(CLOSE AND 纏論!= bb1,REF(LOW,BARSLAST(成交量2)), REF(LOW,BARSLAST(成交量2)),1,1),COLORYELLOW; TJ:=IF(BARSLAST(成交量2)=1 AND CLOSE>REF(LOW,1),1,0); 成立2:=TJ=1; eer12:=FILTER(成立2,5); DRAWTEXT(eer12,REF(LOW,BARSLAST(成交量2)),'看漲'),COLORLIMAGENTA; TJ111:=ABS(aa3)>CCI AND ABS( 纏論主圖)> ABS(最強); 成交量3:=FILTER(TJ111,3); eer3:=IF(BARSLAST(成交量3)=1 AND CLOSE>REF(LOW,1),1,IF(BARSLAST(成交量3)=2 AND CLOSE>REF(LOW,2),1,IF(BARSLAST(成交量3)=3 AND CLOSE>REF(LOW,3),1,0))); 成立:=eer3=1; eer1:=FILTER(成立,5); DRAWTEXT(eer1 AND 纏論!= bb1,L*0.97,'ok'); LC:=REF(CLOSE,1); RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100); FF:=EMA(CLOSE,3); MA15:=EMA(CLOSE,21); DRAWTEXT(CROSS(FF,MA15),aa2,'抄底'),COLORA6E500; DRAWTEXT(CROSS(88,RSI),(HIGH * 1.02),'逃頂'),COLOR1880FF; eer5:=(C+L+H)/3; eer2:=ATAN(EMA(eer5,13)-REF(EMA(eer5,13),1))*3.1416*10; eer4:=EMA(C,8); DRAWTEXT(FILTER(eer2>1 AND EMA(eer5,13)>REF(EMA(eer5,8),1),10), eer4,'∠45'),COLORWHITE; STICKLINE(1,C,O,2.8,0),COLOR666600; STICKLINE(成交量,C,O,2.8,0),COLOR0000FF; STICKLINE(1,C,O,0,0),COLORCCCCCC; |
|