F1:=ZIGZAG(C,16,1);
VERTLINE(F1 DRAWICON(CROSS(ZIGZAG(C,10,1),REF(ZIGZAG(C,10,1),1)),LOW*0.97,7); DRAWICON(CROSS(REF(ZIGZAG(C,10,1),1),ZIGZAG(C,10,1)),HIGH*1.04,8); B:=TROUGHBARS(C,5,1,1)=0; DRAWNUMBER1(B,LOW*0.85,LOW,2);//画数字 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; A1:=(VAR7>VAR6 AND VAR7>25 AND VAR6<25); B1:=ZIGZAG(C,51/5,1)*100,COLORWHITE; G:=MA(B1,2),COLORYELLOW; D:=CROSS(B1,G)*1000,COLORRED; W:=CROSS(G,B1)*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; A:=(3*C+L+O+H)/6; DRAWTEXT(CROSS(ZIGZAG(C,5,1),REF(ZIGZAG(C,5,1),1)),LOW*0.95,'') ,LINETHICK2,COLORRED; ★ 旺 财 折线:=ZIGZAG(C,20,1); 前波峰值:=PEAK(C,20,1,1); 前波谷值:=TROUGH(C,20,1,1); DRAWNUMBER1(折线>REF(折线,1) AND REF(折线,1) DRAWNUMBER1(折线REF(折线,2),REF(C,1),(REF(C,1)-前波谷值)/前波谷值*100,1); 买线:=ZIGZAG(C,10,1); 卖线:=MA(买线,3); 支撑:=MA(REF(LLV(C,30),1),2),COLORABFF46; VARF1:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1); VAR101:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1); VARDD:=(ZIGZAG(C,5,1)=REF(ZIGZAG(C,5,1),2)) AND (REF(ZIGZAG(C,5,1),2)>=REF(ZIGZAG(C,5,1),3)); 波段买点:=CROSS((ZIGZAG(C,10,1)),(MA((ZIGZAG(C,10,1)),3))); DRAWTEXT(波段买点,(支撑*0.77),'--波段买'),COLOR00AAFF; STICKLINE(波段买点,(支撑*0.95),支撑,9,0),COLORRED; 黑马现:=ZIGZAG(C,72,1)>REF(ZIGZAG(C,72,1),1) AND REF(ZIGZAG(C,72,1),1)<=REF(ZIGZAG(C,72,1),2) AND REF(ZIGZAG(C,72,1),2)<=REF(ZIGZAG(C,72,1),3); DRAWTEXT(黑马现,(支撑*0.94),'--发现黑马'),COLORFF6600; STICKLINE(黑马现,(支撑*0.9),(支撑*0.95),9,0),COLORFF6600; 机构:=((ZIGZAG(C,5,1)>REF(ZIGZAG(C,5,1),1)) AND (REF(ZIGZAG(C,5,1),1)<=REF(ZIGZAG(C,5,1),2)) AND (REF(ZIGZAG(C,5,1),2)<=REF(ZIGZAG(C,5,1),3))=1) AND (CROSS(ZIGZAG(C,8,1),REF(ZIGZAG(C,8,1),1))) AND (CROSS(ZIGZAG(C,13,1),REF(ZIGZAG(C,13,1),1))); DRAWTEXT(机构,(L*0.67),'--机构进'),COLORYELLOW; STICKLINE(机构,(L*0.92),(L*0.98),9,0),COLORYELLOW; DRAWTEXT((VARDD=1),(H*1.1),'-卖'),COLORWHITE; STICKLINE((VARDD=1),(H*1.01),(H*1.05),9,0),COLORWHITE; 奔 牛:=(CROSS((3*(SMA(SMA(((C-LLV(L,20))/(HHV(H,20)-LLV(L,20))*100),3,1),3,1)/28.57)-2*(EMA((SMA(SMA(((C-LLV(L,20))/(HHV(H,20)-LLV(L,20))*100),3,1),3,1)/28.57),5))),(SMA(SMA(((C-LLV(L,20))/(HHV(H,20)-LLV(L,20))*100),3,1),3,1)/28.57)) AND (SMA(SMA(((C-LLV(L,20))/(HHV(H,20)-LLV(L,20))*100),3,1),3,1)/28.57)<2.1 AND 买线>=卖线); DRAWTEXT(奔牛,(支撑*0.99),'--奔牛'),COLORFF00FF; STICKLINE(奔牛,(支撑*0.96),(支撑),9,0),COLORFF00FF; XOPEN:=(REF(O,1)+REF(C,1))/2; XCLOSE:=CLOSE; XHIGH:=MAX(HIGH,XOPEN); XLOW:=MIN(LOW,XOPEN); VOLALITY:=MA(XHIGH-XLOW,8); 凰线:=MA(XCLOSE,5)+VOLALITY/2,POINTDOT; 凤线:=MA(XCLOSE,5)-VOLALITY/2,POINTDOT; BU:=CROSS(XCLOSE,凰线); SEL:=CROSS(凤线,XCLOSE); VAR1X:=BARSLAST(BU); VAR2X:=BARSLAST(SEL); DRAWICON(REF(VAR1,1)>VAR2 AND VAR1=0,XLOW,7),ALIGN1,VALIGN0; DRAWICON(REF(VAR2,1)>VAR1 AND VAR2=0,XHIGH,8),ALIGN1,VALIGN2; VAR10:=IF(TROUGHBARS(C,16,1,1)=0 AND HIGH>LOW+0.04,4,0); VAR11:=ZIGZAG(C,6,1)>REF(ZIGZAG(C,6,1),1) AND REF(ZIGZAG(C,6,1),1)<=REF(ZIGZAG(C,6,1),2) AND REF(ZIGZAG(C,6,1),2)<=REF(ZIGZAG(C,6,1),3); VAR12:=ZIGZAG(C,6,1)=REF(ZIGZAG(C,6,1),2) AND REF(ZIGZAG(C,6,1),2)>=REF(ZIGZAG(C,6,1),3); VAR13:=ZIGZAG(C,22,1)>REF(ZIGZAG(C,22,1),1) AND REF(ZIGZAG(C,22,1),1)<=REF(ZIGZAG(C,22,1),2) AND REF(ZIGZAG(C,22,1),2)<=REF(ZIGZAG(C,22,1),3); VAR14:=ZIGZAG(C,22,1)=REF(ZIGZAG(C,22,1),2) AND REF(ZIGZAG(C,22,1),2)>=REF(ZIGZAG(C,22,1),3); VAR15:=ZIGZAG(C,51,1)>REF(ZIGZAG(C,51,1),1) AND REF(ZIGZAG(C,51,1),1)<=REF(ZIGZAG(C,51,1),2) AND REF(ZIGZAG(C,51,1),2)<=REF(ZIGZAG(C,51,1),3);