趋势判牛支撑压力线: 下面是指标的效果图,有未来去不掉,但是很好用。 {+4天上方时间为准} Z1:=STRCAT(HYBLOCK,' '); Z2:=STRCAT(Z1,DYBLOCK); Z3:=STRCAT(Z2,' '); DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),COLORRED; 无敌:(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1+XMA(XMA(H,25),25),DOTLINE,COLORYELLOW; 牛趋势:XMA(XMA(L,25),25)-(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1,LINETHICK2,COLORRED; 无敌2:EMA(牛趋势,25)COLORCYAN,LINETHICK2; DRAWBAND(牛趋势,RGB(55,0,0),无敌2,RGB(0,91,0)); DRAWKLINE(H,O,L,C); STICKLINE(牛趋势>LOW AND 牛趋势<HIGH,牛趋势,MIN(MIN(OPEN,CLOSE),牛趋势),2,0),COLORYELLOW; STICKLINE(牛趋势>MIN(C,O) AND 牛趋势<MAX(C,O),牛趋势,MIN(OPEN,CLOSE),2,0),COLORYELLOW; STICKLINE(牛趋势>HIGH,OPEN,CLOSE,2,0),COLORYELLOW; STICKLINE(牛趋势>HIGH,HIGH,LOW,0,0),COLORYELLOW; VAR23:=100*XMA(XMA((C-REF(C,1)),6),6)/XMA(XMA(ABS((C-REF(C,1))),6),6); 回调买:=LLV(VAR23,2)=LLV(VAR23,7) AND COUNT(VAR23<0,2) AND CROSS(VAR23,MA(VAR23,2)); XG:=牛趋势>HIGH AND 回调买 AND L<=牛趋势; DRAWTEXT(XG,L,'▲买入'),COLORRED; JJ:=(HIGH+LOW+CLOSE)/3; QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW); QJ1:=IF(CAPITAL=0,QJ0*(JJ-MIN(CLOSE,OPEN)),QJ0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW))); QJ2:=IF(CAPITAL=0,QJ0*(MIN(OPEN,CLOSE)-LOW),QJ0*IF(HIGH=LOW,1,(JJ-MIN(CLOSE,OPEN)))); QJ3:=IF(CAPITAL=0,QJ0*(HIGH-MAX(OPEN,CLOSE)),QJ0*IF(HIGH=LOW,1,(HIGH-MAX(OPEN,CLOSE)))); QJ4:=IF(CAPITAL=0,QJ0*(MAX(CLOSE,OPEN)-JJ),QJ0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-JJ))); DDX:=((QJ1+QJ2)-(QJ3+QJ4))/IF(CAPITAL=0,10000,10000),COLOR00AAAA,LINETHICK; V2:=SMA(IF(C>=REF(C,1),DDX,-DDX/100),2,1); V5:=SMA(V2*120/FROMOPEN*5,2,1); V10:=SMA(V5,5,1); V20:=SMA(V10,5,1); DY:=CURRBARSCOUNT=1 AND C<REF(C,1); DY2:=REF(V2,1)-DY; XG2:=C>O AND DY2<0.02 AND MA(C,5)>MA(C,60) AND C/REF(C,1)>=1.02 AND H<无敌; {DRAWTEXT(XG2,L,'▲抓牛'),COLORYELLOW;} DRAWTEXT(XG2 AND L<牛趋势,L,'金钻起涨'),COLORMAGENTA; {DRAWTEXT_FIX(1,0.00,0.10,0,'无敌'),COLORYELLOW; DRAWTEXT_FIX(1,0.00,0.15,0,'乾坤多空'),COLORYELLOW; } VAR9:=CLOSE-REF(CLOSE,5); VARA:=EMA(EMA(VAR9,5),5)/EMA(EMA(ABS(VAR9),5),5); VARC:=EMA(EMA(VAR9,20),20)/EMA(EMA(ABS(VAR9),20),20); 卖出:=IF(VARA>0 AND CROSS(VARC,VARA),90,100); DRAWICON(卖出<0,H+0.05,2); 买线:=EMA(CLOSE,2); 卖线:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42); B1:IF(CROSS(买线,卖线),L-0.02,DRAWNULL),CROSSDOT,LINETHICK3,COLORMAGENTA; S1:IF(CROSS(80,RSI)*30,H+0.02,DRAWNULL),CROSSDOT,LINETHICK3,COLORYELLOW; VC:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA (CLOSE,32))/MA(CLOSE,32)*100)/3; S2:=IF(VC>20 AND FILTER(VC< REF(VC,1),5),H+0.02,DRAWNULL),CIRCLEDOT,LINETHICK3,COLORGREEN; A0:=(L+H+C*2)/4; A1:EMA(A0,14)COLORGREEN,LINETHICK2; A2:=EMA(A0,25)COLORGREEN,LINETHICK2; A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW; A2X:=(A2-REF(A2,1))/REF(A2,1)*100,NODRAW; 支撑:IF(A1X>=0 AND BARSLAST(CROSS(A1X,0))>0,REF((C+O)/2,BARSLAST(CROSS(A1X,0))),DRAWNULL),COLORMAGENTA{,LINETHICK2}; 压力:IF(A1X<0 AND BARSLAST(CROSS(0,A1X))>0,REF((C+O)/2,BARSLAST(CROSS(0,A1X))),DRAWNULL),COLORCYAN,{LINETHICK2}; 买入持股:IF(A1X>=0,A1,DRAWNULL)COLORRED,LINETHICK3; 卖出空仓:IF(A1X<0 AND A2X<0,A1,DRAWNULL)COLORGREEN,LINETHICK3; STICKLINE(CROSS(A1X,0),H,L,0,0 ),COLOR9933FF; STICKLINE(CROSS(A1X,0),C,O,3,0 ),COLOR0000CC; STICKLINE(CROSS(A1X,0),C,O,1,0 ),COLOR0033FF; STICKLINE(CROSS(0,A1X),L,H,0,0 ),COLOR66CC33; YJD:=IF(DATE+19000000>20200413,1,0); DRAWTEXT_FIX(ISLASTBAR=1 AND YJD,0.1,0.2,0,''),COLORYELLOW; 准波段王: 用波段指标:此指标为中短线波段指标, 也可以看长线做短线,提示还是比较及时的。 方块逐渐放大可介入,方块横盘或缩小可减仓或出货。 X_1:=(CLOSE+HIGH+LOW+OPEN)/4; X_2:=SUMBARS(VOL,CAPITAL); X_3:=HHV(X_1,X_2); X_4:=LLV(X_1,X_2); X_5:=(2*X_1-X_4-REF(X_4,1))/(X_3-X_4); X_6:=(X_1-X_4)/(X_3-X_4); X_7:=IF(X_1<=X_4,X_5*60,X_6*60); X_8:=600*(EMA(CLOSE,3)-EMA(LOW,30))/EMA(LOW,30); X_9:=EMA(X_8,7); X_10:=(WINNER(120*CLOSE/100)-WINNER(100*CLOSE/100))*100; X_11:=(-100)*(WINNER(120*CLOSE/100)-WINNER(100*CLOSE/100))+5; X_12:=HHV(HIGH,9)-LLV(LOW,9); X_13:=HHV(HIGH,9)-CLOSE; X_14:=CLOSE-LLV(LOW,9); X_15:=X_13/X_12*100-70; X_16:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100; X_17:=(2*CLOSE+HIGH+LOW)/4; X_18:=SMA(X_14/X_12*100,3,1); X_19:=LLV(LOW,34); X_20:=SMA(X_18,3,1)-SMA(X_15,9,1); X_21:=IF(X_20>100,X_20-100,0); X_22:=HHV(HIGH,34); X_23:=EMA((X_17-X_19)/(X_22-X_19)*100,8); X_24:=EMA(X_23,5); STICKLINE(X_23-X_24>0,X_23,X_24,8,1),COLORRED; STICKLINE(X_23-X_24<0,X_23,X_24,8,1),COLORGREEN; 精准波段背离: 信号不漂移,背离提示很准。( 顶尖财经 股票学院: http://www.58188.com ) 这个也就是 很著名的 大牛中牛短牛 指标,做成文华公式,使用也是不错的。 {+4天上方时间为准} N1:=5;N2:=10; LC:=REF(CLOSE,1); A0:=(2*C+H+L)/4; 均线:=MA(A0,3)>REF(MA(A0,3),1); 安全线:2,COLORRED,POINTDOT,LINETHICK4; A1:=(CLOSE-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*10; K:MA(3*SMA(A1,6,1)-2*SMA(SMA(A1,5,1),5,1),3),LINETHICK1,COLORF00FF0; D:MA(K,3),COLORFF0000,LINETHICK1; J:3*K-2*D,LINETHICK1,COLORF00FF0; DRAWBAND(K,RGB(255,10,10),D,RGB(130,202,100)); VAR1:=C-REF(C,1); VAR2:=100*EMA(EMA(VAR1,6),6)/EMA(EMA(ABS(VAR1),6),6); MA5:=EMA(C,5); MA13:=EMA(C,13); UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS (MA13,MA5))+1),H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS (MA5,MA13))+1),0),COLOR0000FF; DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS (MA5,MA13))+1),L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS (MA13,MA5))+1),0),COLOR00FF00; 短牛:(LLV(VAR2,2)=LLV(VAR2,7) AND COUNT(VAR2<0,2) AND CROSS(VAR2,MA(VAR2,2))) AND REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1); 底线:=0,COLORFF00FF; 顶线:=10,COLORFF0000; STICKLINE(UP,0,0.2,3,0),COLOR0000FF; STICKLINE(DOWN,0,0.2,3,0),COLOR00FF00; STICKLINE(短牛,0,3,2,0),COLOR000088; STICKLINE(短牛,0,3,1,0),COLOR0000CC; STICKLINE(短牛,0,3,0.22,0),COLOR0000FF; DRAWTEXT(短牛,3,'短牛'),COLOR0000FF; 中牛:REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) AND C<HHV(H,21)*0.82; STICKLINE(中牛,0,2,3,0),COLOR880088; STICKLINE(中牛,0,2,1.5,0),COLORLIMAGENTA; STICKLINE(中牛,0,2,0.8,0),COLORCC00CC; STICKLINE(中牛,0,2,0.2,0),COLORFF00FF; DRAWTEXT(中牛,2,'中牛'),COLORFF00FF; HR:=HHV(HIGH,55); HRY:=LLV(LOW,55); HRY11:=HR*HRY; HRY33:=SQRT(HRY11); 大牛:REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) AND C<HRY33; STICKLINE(大牛,0,1,5,0),COLORRED; STICKLINE(大牛,0,1,2,0),COLORLIBLUE; STICKLINE(大牛,0,1,1,0),COLORYELLOW; STICKLINE(大牛,0,1,0.2,0),COLOR00FFFF; DRAWTEXT(大牛,1,'大牛'),COLOR00FFFF; ST:=REF(UP,1)>REF(UP,2) AND DOWN<REF(UP,1); STICKLINE(ST,10,9,5,0),COLORLIGREEN; STICKLINE(ST,10,9,2,0),COLOR00AA00; STICKLINE(ST,10,9,1,0),COLORYELLOW; STICKLINE(ST,10,9,0.2,0),COLOR00FF00; DRAWTEXT(ST,9,'卖'),COLOR00FF00; DIFF:=EMA(DCLOSE,12)-EMA(DCLOSE,26); DEA:=EMA(DIFF,9),COLORFFFF00; A11:=BARSLAST(REF(CROSS(DIFF,DEA),1)); 底背离:=REF(CLOSE,A11+1)>CLOSE AND DIFF>REF(DIFF,A11+1) AND CROSS(DIFF,DEA); DRAWTEXT(底背离,-0.6,'底背离'),COLORWHITE,DRAWABOVE; A22:=BARSLAST(REF(CROSS(DEA,DIFF),1)); 顶背离:=REF(CLOSE,A22+1)<CLOSE AND REF(DIFF,A22+1)>DIFF AND CROSS(DEA,DIFF); DRAWTEXT(顶背离,11,'顶背离'),COLORWHITE; YJD:=IF(DATE+19000000>20200413,1,0); DRAWTEXT_FIX(ISLASTBAR=1 AND YJD,0.1,0.2,0,' '),COLORYELLOW; |