智能交易附图: DIFF:=EMA(CLOSE,8)-EMA(CLOSE,13); DEA:=EMA(DIFF,5); DRAWICON(DIFF>DEA,1,1); DRAWICON(DIFF<DEA,1,2); DRAWTEXT(ISLASTBAR=1,1,'.MACD'),COLORFFFFFF; A1:=DIFF>DEA; MACD金叉:IF(A1,0,0),COLORRED; RSV1:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100; K:=SMA(RSV1,3,1); D:=SMA(K,3,1); DRAWICON(K>D,2,1); DRAWICON(K<D,2,2); DRAWTEXT(ISLASTBAR=1,2,'.KDJ'),COLORFFFFFF; A2:=K>D; KDJ金叉:IF(A2,0,0),COLORRED; LC:=REF(CLOSE,1); RSI1:=(SMA(MAX(CLOSE-LC,0),5,1))/(SMA(ABS(CLOSE-LC),5,1))*100; RSI2:=(SMA(MAX(CLOSE-LC,0),13,1))/(SMA(ABS(CLOSE-LC),13,1))*100; DRAWICON(RSI1>RSI2,3,1); DRAWICON(RSI1<RSI2,3,2); DRAWTEXT(ISLASTBAR=1,3,'.RSI'),COLORFFFFFF; A3:=RSI1>RSI2; RSI金叉:IF(A3,0,0),COLORRED; RSV:=-(HHV(HIGH,13)-CLOSE)/(HHV(HIGH,13)-LLV(LOW,13))*100; LWR1:=SMA(RSV,3,1); LWR2:=SMA(LWR1,3,1); DRAWICON(LWR1>LWR2,4,1); DRAWICON(LWR1<LWR2,4,2); DRAWTEXT(ISLASTBAR=1,4,'.LWR'),COLORFFFFFF; A4:=LWR1>LWR2; LWR金叉:IF(A4,0,0),COLORRED; BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4; DRAWICON(CLOSE>BBI,5,1); DRAWICON(CLOSE<BBI,5,2); DRAWTEXT(ISLASTBAR=1,5,'.BBI'),COLORFFFFFF; A5:=CLOSE>BBI; BBI金叉:IF(A5,0,0),COLORRED; MTM:=CLOSE-REF(CLOSE,1); MMS:=100*EMA(EMA(MTM,5),3)/EMA(EMA(ABS(MTM),5),3); MMM:=100*EMA(EMA(MTM,13),8)/EMA(EMA(ABS(MTM),13),8); DRAWICON(MMS>MMM,6,1); DRAWICON(MMS<MMM,6,2); DRAWTEXT(ISLASTBAR=1,6,'.MTM'),COLORFFFFFF; A6:=MMS>MMM; MTM金叉:IF(A6,0,0),COLORRED; 上涨买入:IF(A1 AND A2 AND A3 AND A4 AND A5 AND A6,6,0),COLORYELLOW,LINETHICK2; 升级KDJ: {N 40 M1 18 M2 3} DRAWGBK(CURRBARSCOUNT=1, RGB(110,108,108),RGB(88,30,0),0,'',0); RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100; K:SMA(RSV,M1,1) LINETHICK1 COLORFF4600; K1:K LINETHICK2 COLORFF0000; D:SMA(K,M2,1) LINETHICK1 COLOR0FFF2B; D1:D LINETHICK2 COLOR007F00; J:3*K-2*D LINETHICK2 COLORFFF69A; J1:J LINETHICK1 COLORFFF60A; IF(J>REF(J,1),J,DRAWNULL) CIRCLEDOT,LINETHICK1 COLORWHITE; IF(J>REF(J,1),J,DRAWNULL) CIRCLEDOT,LINETHICK3 COLORC0FFFF; IF(J<REF(J,1),J,DRAWNULL) CIRCLEDOT,LINETHICK3,COLOR9F35DD; IF(J<REF(J,1),J,DRAWNULL) CIRCLEDOT,LINETHICK1,COLORFFB0FF; IF(J<REF(J,1),J,DRAWNULL) CIRCLEDOT,LINETHICK2,COLORFF8BFF; 趋势维持线:EMA(J,4.2) COLORRED LINETHICK2 ; 黑马资金追涨波动抄底: 是一个波段抄底 副图公式( 顶尖财经 股票学院: http://www.58188.com ) 资金波动:EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3),POINTDOT, COLORRED,LINETHICK5; I:=MA(BARSLAST(HIGH=HHV(HIGH,16))*IF(CLOSE<OPEN,VOL,1),3); R:=MA(BARSLAST(LOW=LLV(LOW,18))*IF(CLOSE>OPEN,VOL,1),4); 超强势:84,POINTDOT,COLORMAGENTA,LINETHICK3; 强势:60,POINTDOT,COLORGREEN,LINETHICK3; 弱市:35,POINTDOT,COLORWHITE,LINETHICK3; 短线逃顶:=IF(I,0,1),COLORGREEN; DRAWICON(短线逃顶,90,2); VAR1:=(CLOSE-LLV(LOW,45))/(HHV(HIGH,45)-LLV(LOW,45))*100; VAR2:=SMA(VAR1,3,1); VAR3:=SMA(VAR2,3,1); A6:3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5, 1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1); 黑马线:EMA(A6,5),LINETHICK2,COLOR6600FF; 贵:=12,COLOR00FF00; VAR4:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5, 1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1); A7:=(黑马线-REF(黑马线,1))/REF(黑马线,1)*100; A8:=EMA(C,5); VAR5:=CROSS(VAR4,10) AND VAR3<12; 抄底:IF(VAR5,90,1),COLORRED; DRAWICON(VAR5,65,1); DRAWTEXT(VAR5,30,'抄底'),COLORYELLOW; A9:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100; 趋势线: (MA(3*SMA(A9,6,1)-2*SMA(SMA(A9,5,1),5,1),2)),LINETHICK2,COLORYELLOW; A10:=(HHV(H,60)-C)/(HHV(H,60)-LLV(L,60))*100; 备钱:IF(CROSS(10,VAR4),40,1),COLORFF00FF; DRAWICON(CROSS(10,VAR4),45,1); DRAWTEXT(CROSS(A6,黑马线)AND 黑马线<A10,黑马线,'黑马'); DRAWTEXT(CROSS(黑马线,A10)AND 趋势线<80,黑马线,'追涨'); DRAWTEXT(CROSS(趋势线,0)AND 黑马线<40,5,'大黑马'); A1:=EMA(CLOSE,5); A2:=EMA(CLOSE,10); A3:=EMA(CLOSE,20); A4:=EMA(CLOSE,40); A5:=EMA(CLOSE,60); DRAWTEXT(FILTER(REF(黑马线,1)>90 AND A2<0,7),黑马线,'跑'),COLOR00FF00; 上穿季线:IF(CROSS(A3,A4) AND CROSS(C,A5),50,0),COLORRED,LINETHICK2; 底部:(A7<-10 AND A7>REF(A7,1))*25,COLORRED; DRAWICON(底部 AND A8>REF(A8,1),25,4); CHNMONEY:REF(IF((MA(C,5)-C)/C>0.04 AND (MA(C,10)-MA(C,5))/MA(C,5)>0.04,30,0),1),COLORF00FF0; 大势已去:IF(CROSS(黑马线,A6)AND 黑马线>70 AND 趋势线>80,90,100),COLORFF0000; |