F1:=ZIG(3,16); VERTLINE(F1<REF(F1,1),2),coloraa8800; A1A:=EMA(CLOSE, 9); A1B:=((A1A - EMA(CLOSE, 5)) < 0); A1C:=((A1A - EMA(CLOSE, 5)) > 0); A1D:=BARSLAST(A1B); A1E:=BARSLAST(A1C); A1F:=IF((A1E > 0),(CLOSE - REF(CLOSE, 1)) / REF(CLOSE, 1) * 100,0); A20:=SUM(A1F,0); A21:=IF((A1D > 0),(0 - 2),0); A22:=IF((A1E > 0),SUM((CLOSE - REF(CLOSE, 1)) / REF(CLOSE, 1) * 100,A1E),0); A23:=A22 / A1E; A25:=EMA(EMA(EMA(CLOSE, 3), 3), 3); 上升通道:((A25 - REF(A25, 1)) + A25),colorred; 反转通道:MA(上升通道, 15),colorgreen; IF(上升通道>REF(上升通道,1),上升通道,DRAWNULL),COLORFFFFCC,LINETHICK4,POINTDOT; IF(反转通道>REF(反转通道,1),反转通道,DRAWNULL),COLOR00FFFF,LINETHICK4,POINTDOT; STICKLINE((上升通道 > 反转通道),反转通道,上升通道, 1, 0),colormagenta; DRAWTEXT(CROSS(上升通道,反转通道),反转通道 * 0.97, 上升趋势),COLOR0000FF; DRAWICON(((REF(A21, 1) = (0 - 2)) AND (A21 = 0)),LOW, 5); A1:=C>=REF(C,4); A:=C<REF(C,4); AA:=C<REF(C,4) AND REF(A1,1); T:=BARSLAST(AA),NODRAW; M:=(T=0 AND REFX(&T=1 AND NOT(A),1)) OR (REFX(&T=2 AND NOT(A),2)) OR (REFX(&T=3 AND NOT(A),3)) OR (REFX(&T=4 AND NOT(A),4)) OR (REFX(&T=5 AND NOT(A),5)) OR (REFX(&T=6 AND NOT(A),6)) OR (REFX(&T=7 AND NOT(A),7)) OR (REFX(&T=8 AND NOT(A),8)); M1:=T=1 AND REFX(&T=2 AND NOT(A),1) OR (REFX(&T=3 AND NOT(A),2)) OR (REFX(&T=4 AND NOT(A),3)) OR (REFX(&T=5 AND NOT(A),4)) OR (REFX(&T=6 AND NOT(A),5)) OR (REFX(&T=7 AND NOT(A),6)) OR (REFX(&T=8 AND NOT(A),7)); M2:=T=2 AND REFX(&T=3 AND NOT(A),1) OR (REFX(&T=4 AND NOT(A),2)) OR (REFX(&T=5 AND NOT(A),3)) OR (REFX(&T=6 AND NOT(A),4)) OR (REFX(&T=7 AND NOT(A),5)) OR (REFX(&T=8 AND NOT(A),6)); M3:=T=3 AND REFX(&T=4 AND NOT(A),1)OR (REFX(&T=5 AND NOT(A),2)) OR (REFX(&T=6 AND NOT(A),3)) OR (REFX(&T=7 AND NOT(A),4)) OR (REFX(&T=8 AND NOT(A),5)); M4:=T=4 AND REFX(&T=5 AND NOT(A),1) OR (REFX(&T=6 AND NOT(A),2)) OR (REFX(&T=7 AND NOT(A),3)) OR (REFX(&T=8 AND NOT(A),4)); M5:=T=5 AND REFX(&T=6 AND NOT(A),1) OR (REFX(&T=7 AND NOT(A),2)) OR (REFX(&T=8 AND NOT(A),3)); M6:=T=6 AND REFX(&T=7 AND NOT(A),1) OR (REFX(&T=8 AND NOT(A),2)); M7:=T=7 AND REFX(&T=8 AND NOT(A),1); N:=T=1 AND REF(T=0 AND AA,1) AND A; N1:=T=2 AND REF(N,1) AND A; N2:=T=3 AND REF(N1,1) AND A; N3:=T=4 AND REF(N2,1) AND A; N4:=T=5 AND REF(N3,1) AND A; N5:=T=6 AND REF(N4,1) AND A; N6:=T=7 AND REF(N5,1) AND A; N7:=T=8 AND REF(N6,1) AND A; DRAWTEXT(T=0,H*1.02,1),colorgreen; DRAWTEXT(N,H*1.02,2),colorgreen; DRAWTEXT(N1,H*1.02,3),colorgreen; DRAWTEXT(N2,H*1.02,4),colorgreen; DRAWTEXT(N3,H*1.02,5),colorgreen; DRAWTEXT(N4,H*1.02,6),colorgreen; DRAWTEXT(N5,H*1.02,7),colorgreen; DRAWTEXT(N6,H*1.02,8),colorgreen; DRAWTEXT(N7,H*1.02,9),coloryellow; DRAWICON(N7,H*1.04,1),colorgreen; DRAWTEXT(M,H*1.02,1),colorblack; DRAWTEXT(M1,H*1.02,2),colorblack; DRAWTEXT(M2,H*1.02,3),colorblack; DRAWTEXT(M3,H*1.02,4),colorblack; DRAWTEXT(M4,H*1.02,5),colorblack; DRAWTEXT(M5,H*1.02,6),colorblack; DRAWTEXT(M6,H*1.02,7),colorblack; DRAWTEXT(M7,H*1.02,8),colorblack; B1:=C<=REF(C,4); B:=C>REF(C,4); BB:=C>REF(C,4) AND REF(B1,1); T1:=BARSLAST(BB),NODRAW; M111:=(T1=0 AND REFX(&T1=1 AND NOT(B),1)) OR (REFX(&T1=2 AND NOT(B),2)) OR (REFX(&T1=3 AND NOT(B),3)) OR (REFX(&T1=4 AND NOT(B),4)) OR (REFX(&T1=5 AND NOT(B),5)) OR (REFX(&T1=6 AND NOT(B),6)) OR (REFX(&T1=7 AND NOT(B),7)) OR (REFX(&T1=8 AND NOT(B),8)); M11:=T1=1 AND REFX(&T1=2 AND NOT(B),1) OR (REFX(&T1=3 AND NOT(B),2)) OR (REFX(&T1=4 AND NOT(B),3)) OR (REFX(&T1=5 AND NOT(B),4)) OR (REFX(&T1=6 AND NOT(B),5)) OR (REFX(&T1=7 AND NOT(B),6)) OR (REFX(&T1=8 AND NOT(B),7)); M22:=T1=2 AND REFX(&T1=3 AND NOT(B),1) OR (REFX(&T1=4 AND NOT(B),2)) OR (REFX(&T1=5 AND NOT(B),3)) OR (REFX(&T1=6 AND NOT(B),4)) OR (REFX(&T1=7 AND NOT(B),5)) OR (REFX(&T1=8 AND NOT(B),6)); M33:=T1=3 AND REFX(&T1=4 AND NOT(B),1)OR (REFX(&T1=5 AND NOT(B),2)) OR (REFX(&T1=6 AND NOT(B),3)) OR (REFX(&T1=7 AND NOT(B),4)) OR (REFX(&T1=8 AND NOT(B),5)); M44:=T1=4 AND REFX(&T1=5 AND NOT(B),1) OR (REFX(&T1=6 AND NOT(B),2)) OR (REFX(&T1=7 AND NOT(B),7)) OR (REFX(&T1=8 AND NOT(B),4)); M55:=T1=5 AND REFX(&T1=6 AND NOT(B),1) OR (REFX(&T1=7 AND NOT(B),2)) OR (REFX(&T1=8 AND NOT(B),3)); M66:=T1=6 AND REFX(&T1=7 AND NOT(B),1) OR (REFX(&T1=8 AND NOT(B),2)); M77:=T1=7 AND REFX(&T1=8 AND NOT(B),1); N111:=T1=1 AND REF(T1=0 AND BB,1) AND B; N11:=T1=2 AND REF(N111,1) AND B; N22:=T1=3 AND REF(N11,1) AND B; N33:=T1=4 AND REF(N22,1) AND B; N44:=T1=5 AND REF(N33,1) AND B; N55:=T1=6 AND REF(N44,1) AND B; N66:=T1=7 AND REF(N55,1) AND B; N77:=T1=8 AND REF(N66,1) AND B; DRAWTEXT(T1=0,H*1.02,1),COLOR9900CC; DRAWTEXT(N111,H*1.02,2),COLOR9900CC; DRAWTEXT(N11,H*1.02,3),COLOR9900CC; DRAWTEXT(N22,H*1.02,4),COLOR9900CC; DRAWTEXT(N33,H*1.02,5),COLOR9900CC; DRAWTEXT(N44,H*1.02,6),COLOR9900CC; DRAWTEXT(N55,H*1.02,7),COLOR9900CC; DRAWTEXT(N66,H*1.02,8),COLOR9900CC; DRAWTEXT(N77,H*1.02,9),COLORFFFF00; DRAWICON(N77,H*1.04,2),colorred; DRAWTEXT(M111,H*1.02,1),colorblack; DRAWTEXT(M11,H*1.02,2),colorblack; DRAWTEXT(M22,H*1.02,3),colorblack; DRAWTEXT(M33,H*1.02,4),colorblack; DRAWTEXT(M44,H*1.02,5),colorblack; DRAWTEXT(M55,H*1.02,6),colorblack; DRAWTEXT(M66,H*1.02,7),colorblack; DRAWTEXT(M77,H*1.02,8),colorblack; VAR1:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),25); VAR2:=HIGH-REF(HIGH,1); VAR3:=REF(LOW,1)-LOW; VAR4:=SUM(IF(VAR2>0 AND VAR2>VAR3,VAR2,0),25); VAR5:=SUM(IF(VAR3>0 AND VAR3>VAR2,VAR3,0),25); VAR6:=VAR4*100/VAR1; VAR7:=VAR5*100/VAR1; VAR8:=MA(ABS(VAR7-VAR6)/(VAR7+VAR6)*100,15); VAR9:=(VAR8+REF(VAR8,15))/2; A:=(VAR7>VAR6 AND VAR7>25 AND VAR6<25); B:=ZIG(3,51/5)*100,colorwhite; G:=MA(B,2),coloryellow; D:=CROSS(B,G)*1000,colorred; W:=CROSS(G,B)*1000,colorblue; A30:=MA(C,30); angleA30:=ATAN((A30/REF(A30,1)-1)*100)*57.3; angle30:=angleA30>40 OR angleA30<-48; A10:=MA(C,10); angleA10:=ATAN((A10/REF(A10,1)-1)*100)*57.3; angle10:=angleA10>20 OR angleA10<-25 AND CLOSE>MA(CLOSE,20) ; A3010:=angle30 OR angle10; aazt:=COUNT(CLOSE>REF(CLOSE,1)*1.097 ,20)>0; DRAWGBK( W=1000 ),colorcyan; DRAWGBK( D=1000 ),color0099FF; DRAWGBK( W=1000 AND aazt),colorgreen; DRAWGBK( D=1000 AND aazt),colorred; 顶:PEAK(CLOSE,10,1); 底:TROUGH(CLOSE,10,1),colorcyan; DRAWICON(CROSS(ZIG(3,10),REF(ZIG(3,10),1)),LOW*0.97,7); DRAWTEXT(CROSS(ZIG(3,10),REF(ZIG(3,10),1)),LOW*0.94,买入); DRAWICON(CROSS(REF(ZIG(3,10),1),ZIG(3,10)),HIGH*1.04,8); DRAWTEXT(CROSS(REF(ZIG(3,10),1),ZIG(3,10)),HIGH*1.01,止损); DRAWTEXT(CROSS(ZIG(3,5),REF(ZIG(3,5),1)),LOW*0.90,★旺财) ,LINETHICK2,colorred; DRAWTEXT(CROSS(ZIG(3,8),REF(ZIG(3,8),1)),L*0.985,★机构进场),LINETHICK2,COLOR00FFFF;
|
阅读:427 评论:0
声明:站内所有文章、公式均来自互联网或网友分享提供,如侵犯您的权利请告知,我们会在24小时内及时删除!
【电脑版】 【回到顶部】