1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
| DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26); DEA:=EMA(DIFF,9); DRAWICON(DIFF>DEA,1,1); DRAWICON(DIFF<DEA,1,2); MACD金叉:=DIFF>DEA; DRAWTEXT(ISLASTBAR=1,5.9,'.MACD'),COLORFFFFFF; RSV:=(CLOSE-LLV(LOW,12))/(HHV(HIGH,12)-LLV(LOW,12))*100; K:=SMA(RSV,3,1); D:=SMA(K,3,1); DRAWICON(K>D,2,1); DRAWICON(K<D,2,2); KDJ金叉:=K>D; DRAWTEXT(ISLASTBAR=1,4.9,'.KDJ'),COLORFFFFFF; LC:=REF(CLOSE,1); RSI1:=(SMA(MAX(CLOSE-LC,0),9,1))/(SMA(ABS(CLOSE-LC),9,1))*100; RSI2:=(SMA(MAX(CLOSE-LC,0),26,1))/(SMA(ABS(CLOSE-LC),26,1))*100; DRAWICON(RSI1>RSI2,3,1); DRAWICON(RSI1<RSI2,3,2); RSI金叉:=RSI1>RSI2; DRAWTEXT(ISLASTBAR=1,3.9,'.RSI'),COLORFFFFFF; LWR1:=SMA(RSV,3,1); LWR2:=SMA(LWR1,3,1); DRAWICON(LWR1>LWR2,4,1); DRAWICON(LWR1<LWR2,4,2); LWR金叉:=LWR1>LWR2; DRAWTEXT(ISLASTBAR=1,2.9,'.LWR'),COLORFFFFFF; BBI:=(MA(CLOSE,3)+MA(CLOSE,9)+MA(CLOSE,12)+MA(CLOSE,26))/4; DRAWICON(CLOSE>BBI,5,1); DRAWICON(CLOSE<BBI,5,2); BBI金叉:=CLOSE>BBI; DRAWTEXT(ISLASTBAR=1,1.9,'.BBI'),COLORFFFFFF; MTM:=CLOSE-REF(CLOSE,1); MT:=100*EMA(EMA(MTM,9),9)/EMA(EMA(ABS(MTM),9),3); TM:=100*EMA(EMA(MTM,26),12)/EMA(EMA(ABS(MTM),26),12); DRAWICON(MT>TM,6,1); DRAWICON(MT<TM,6,2); MTM金叉:=MT>TM; DRAWTEXT(ISLASTBAR=1,0.9,'.MTM'),COLORFFFFFF; 六脉神剑:MACD金叉 AND KDJ金叉 AND RSI金叉 AND LWR金叉 AND BBI金叉 AND MTM金叉,COLORYELLOW,LINETHICK2;
|