主圖 獨(dú)狼中長線 短線:EMA(CLOSE,21)-1+EMA(VOL,5)/EMA(VOL,40),,COLORGRAY; 中線:ZIG(3,19),LINETHICK1,COLOR33FF33; DRAWTEXT(CROSS(REF(ZIG(3,19),1),ZIG(3,19)),HIGH+0.04,'逃頂'),COLORYELLOW; DRAWTEXT(CROSS(REF(ZIG(3,19),1),ZIG(3,19)),HIGH+0.03,'逃頂'),COLORYELLOW; DRAWTEXT(CROSS(ZIG(3,19),REF(ZIG(3,19),1)),LOW-0.02,'抄底'),COLORRED; VAR3A:=HHVBARS(ZIG(3, 19)>REF(ZIG(3,19),1) AND REF(ZIG(3,19),1)<REF(ZIG(3,19), 2),0); DRAWTEXT(VAR3A=4 OR VAR3A=7 OR VAR3A=20,L-0.03,'▲'),COLOR9966FF; DRAWTEXT(VAR3A=54 OR VAR3A=143 OR VAR3A=376,L-0.03,'★'),COLOR0000FF; DRAWTEXT(VAR3A=12 OR VAR3A=33 OR VAR3A=88 OR VAR3A=232,H+0.04,'●'),COLORFF33FF; VAR1:=EMA(C,3); VAR2:=EMA(C,5); VAR3:=EMA(C,10); VAR4:=EMA(C,20); VAR5:=EMA(C,30); VAR6:=(VAR2+VAR3+VAR4+VAR5)/4; VAR7:=(VAR6-REF(VAR6,15))/REF(VAR6,15)*100; VAR8:=(VAR6-REF(VAR6,15))/REF(VAR6, 15)*100; VAR9:=EMA(VAR7,8);STICKLINE(VAR7<1*REF(VAR7,1),H,L,0,0); 買進(jìn)價:=((C-REF(MA(C,6),1))/6+MA(C,8))*1.004; 買進(jìn)條件:=CROSS(C,買進(jìn)價) AND 買進(jìn)價>REF(買進(jìn)價,1); STICKLINE(VAR7<1*REF(VAR7,1),O,C,3,1),COLORBLUE,LINETHICK2; STICKLINE(VAR7>1*REF(VAR7,1),O,C,3,1),COLORRED; STICKLINE(VAR7<1*REF(VAR7,1) AND VAR9>1*REF(VAR9,1),O,C,3, 1),COLORGREEN; STICKLINE(買進(jìn)條件,O,C,3,0),COLORWHITE,LINETHICK1; 加碼價:=((C-REF(MA(C,18),1))/18+MA(C,18))*1.004; 加碼條件:=CROSS(C,加碼價) AND 加碼價>REF(加碼價,1); STICKLINE(加碼條件,O,C,3,0),COLORYELLOW,LINETHICK1; A:MA(C,3),COLORGREEN,LINETHICK2; B:=A<REF(A,1); MA(C,3); N:=10; T1:=CONST(HHVBARS(V,N)); T0:IF(CURRBARSCOUNT<=N+3,CONST(IF(T1=0,C,REF(C,T1))),DRAWNULL),COLORFF00FF; IF(CURRBARSCOUNT=T1+1,T0,DRAWNULL),CIRCLEDOT,COLORFF00FF; DRAWTEXT(ISLASTBAR,T0,' 量能平臺'),COLORCC00CC; W:=20; W1:=CONST(REF(HHVBARS(V,W),T1+1)+T1+1); W0:IF(CURRBARSCOUNT<=T1+W+3 AND CURRBARSCOUNT>=T1+1,CONST(REF(C,W1)),DRAWNULL),COLOR009999; IF(CURRBARSCOUNT=W1+1,W0,DRAWNULL),CIRCLEDOT,COLOR00CCCC; M:=10; Q1:=CONST(REF(HHVBARS(V,M),T1+1)+T1+1); Q0:IF(CURRBARSCOUNT<=T1+M+3 AND CURRBARSCOUNT>=T1+1,CONST(REF(C,Q1)),DRAWNULL),COLOR009900; IF(CURRBARSCOUNT=Q1+1,Q0,DRAWNULL),CIRCLEDOT,COLOR00CC00; 【箱頂】:PEAK(CLOSE,N,1)*0.98; 【箱底】:TROUGH(CLOSE,N,1)*1.02; 【箱高】:100*(【箱頂】-【箱底】)/【箱底】,NODRAW; 獨(dú)狼短線 VAR1:=(HHV(HIGH,18)-CLOSE)/(HHV(HIGH,18)-LLV(LOW,18))*100; VAR2:=SMA(VAR1,5,1); VAR3:=SMA(VAR2,8,1); VAR4:=CROSS(VAR2,VAR3) AND VAR3<20; VAR5:=CLOSE>LLV(CLOSE,30)+0.15*LLV(CLOSE,30) AND VAR4; VAR6:=IF(CLOSE>1000,VAR4,VAR5); 長線:(EMA(CLOSE,60)+EMA(CLOSE,90))/2,LINETHICK2,COLORCC33FF; 短線:EMA(CLOSE,21)-1+EMA(VOL,5)/EMA(VOL,40),,COLORGRAY; 中線:ZIG(3,19),LINETHICK1,COLOR33FF33; DRAWTEXT(CROSS(REF(ZIG(3,13),1),ZIG(3,13)),HIGH+0.04,'逃頂'),COLORYELLOW; DRAWTEXT(CROSS(REF(ZIG(3,3),1),ZIG(3,3)),HIGH+0.03,'逃頂'),COLORYELLOW; DRAWTEXT(CROSS(ZIG(3,3),REF(ZIG(3,3),1)),LOW-0.02,'抄底'),COLORRED; VAR3A:=HHVBARS(ZIG(3, 3)>REF(ZIG(3,3),1) AND REF(ZIG(3,3),1)<REF(ZIG(3,3), 2),0); DRAWTEXT(VAR3A=4 OR VAR3A=7 OR VAR3A=20,L-0.03,'▲'),COLOR9966FF; DRAWTEXT(VAR3A=54 OR VAR3A=143 OR VAR3A=376,L-0.03,'★'),COLOR0000FF; DRAWTEXT(VAR3A=12 OR VAR3A=33 OR VAR3A=88 OR VAR3A=232,H+0.04,'●'),COLORFF33FF; VAR7:=(VAR6-REF(VAR6,15))/REF(VAR6,15)*100; VAR8:=(VAR6-REF(VAR6,15))/REF(VAR6, 15)*100; VAR9:=EMA(VAR7,8);STICKLINE(VAR7<1*REF(VAR7,1),H,L,0,0); 買進(jìn)價:=((C-REF(MA(C,6),1))/6+MA(C,8))*1.004; 買進(jìn)條件:=CROSS(C,買進(jìn)價) AND 買進(jìn)價>REF(買進(jìn)價,1); STICKLINE(VAR7<1*REF(VAR7,1),O,C,3,1),COLORBLUE,LINETHICK2; STICKLINE(VAR7>1*REF(VAR7,1),O,C,3,1),COLORRED; STICKLINE(VAR7<1*REF(VAR7,1) AND VAR9>1*REF(VAR9,1),O,C,3, 1),COLORGREEN; STICKLINE(買進(jìn)條件,O,C,3,0),COLORWHITE,LINETHICK1; 加碼價:=((C-REF(MA(C,18),1))/18+MA(C,18))*1.004; 加碼條件:=CROSS(C,加碼價) AND 加碼價>REF(加碼價,1); STICKLINE(加碼條件,O,C,3,0),COLORYELLOW,LINETHICK1; 【箱頂】:PEAK(CLOSE,N,1)*0.98; 【箱底】:TROUGH(CLOSE,N,1)*1.02; 【箱高】:100*(【箱頂】-【箱底】)/【箱底】,NODRAW; |
|