通達(dá)信【六脈神劍3.0】副圖/選股指標(biāo) 源碼
【六脈神劍3.0】指標(biāo)簡(jiǎn)介:
1、六脈神劍指的是MACD+KDJ+RSI+LWR+BBI+ZLMM,這6個(gè)指標(biāo)同時(shí)共振出現(xiàn)的買(mǎi)點(diǎn)信號(hào)。
2、六脈神劍3.0版本,也算是在上一版【六脈神劍】指標(biāo)基礎(chǔ)上優(yōu)化而來(lái),并增強(qiáng)了捕捉信號(hào)的敏感度,提高了成功率。
3、六指標(biāo)同時(shí)共振買(mǎi)入時(shí),顯示“紅箭頭”同時(shí)向上,并帶有“黃柱”買(mǎi)入信號(hào);洋紅色覆蓋表示可“持有”的天數(shù)。
指標(biāo)無(wú)未來(lái)函數(shù),以下舉例:
1、六脈神劍3.0副圖:
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;{微信公眾號(hào):尊重市場(chǎng)}
ABC1:=DIFF>DEA;
尊重市場(chǎng)1:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
K:=SMA(尊重市場(chǎng)1,3,1);
D:=SMA(K,3,1);
DRAWICON(K>D,2,1);
DRAWICON(K<D,2,2);
DRAWTEXT(ISLASTBAR=1,2,'. KDJ'),COLORFFFFFF;
ABC2:=K>D;
指標(biāo)營(yíng)地:=REF(CLOSE,1);
RSI1:=(SMA(MAX(CLOSE-指標(biāo)營(yíng)地,0),5,1))/(SMA(ABS(CLOSE-指標(biāo)營(yíng)地),5,1))*100;
RSI2:=(SMA(MAX(CLOSE-指標(biāo)營(yíng)地,0),13,1))/(SMA(ABS(CLOSE-指標(biāo)營(yíng)地),13,1))*100;
DRAWICON(RSI1>RSI2,3,1);
DRAWICON(RSI1<RSI2,3,2);
DRAWTEXT(ISLASTBAR=1,3,'. RSI'),COLORFFFFFF;
ABC3:=RSI1>RSI2;
尊重市場(chǎng):=-(HHV(HIGH,13)-CLOSE)/(HHV(HIGH,13)-LLV(LOW,13))*100;
LWR1:=SMA(尊重市場(chǎng),3,1);
LWR2:=SMA(LWR1,3,1);
DRAWICON(LWR1>LWR2,4,1);
DRAWICON(LWR1<LWR2,4,2);
DRAWTEXT(ISLASTBAR=1,4,'. LWR'),COLORFFFFFF;
ABC4:=LWR1>LWR2;
BBI:=(MA(CLOSE,3)+MA(CLOSE,5)+MA(CLOSE,8)+MA(CLOSE,13))/4;
DRAWICON(CLOSE>BBI,5,1);
DRAWICON(CLOSE<BBI,5,2);
DRAWTEXT(ISLASTBAR=1,5,'. BBI'),COLORFFFFFF;
ABC10:=7;
ABC5:=CLOSE>BBI;
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,'. ZLMM'),COLORFFFFFF;
ABC6:=MMS>MMM;{微信公眾號(hào):尊重市場(chǎng)}
買(mǎi)入:IF(ABC1 AND ABC2 AND ABC3 AND ABC4 AND ABC5 AND ABC6=1
AND REF(ABC1 AND ABC2 AND ABC3 AND ABC4 AND ABC5 AND ABC6,1)=0,6,0),COLORYELLOW,LINETHICK2;
持有:IF(ABC1 AND ABC2 AND ABC3 AND ABC4 AND ABC5 AND ABC6,6,0),COLORMAGENTA,LINETHICK2;
共振:=ABC1 AND ABC2 AND ABC3 AND ABC4 AND ABC5 AND ABC6 ;
STICKLINE(共振,0,6,0.6,1),COLORMAGENTA;
STICKLINE(買(mǎi)入,0,6,0.6,0),COLORYELLOW;
DRAWICON(DIFF>DEA,1,1);
DRAWICON(DIFF<DEA,1,2);
DRAWICON(K>D,2,1);
DRAWICON(K<D,2,2);
DRAWICON(RSI1>RSI2,3,1);
DRAWICON(RSI1<RSI2,3,2);
DRAWICON(LWR1>LWR2,4,1);
DRAWICON(LWR1<LWR2,4,2);
DRAWICON(CLOSE>BBI,5,1);
DRAWICON(CLOSE<BBI,5,2);
DRAWICON(MMS>MMM,6,1);{微信公眾號(hào):尊重市場(chǎng)}
DRAWICON(MMS<MMM,6,2);
DRAWICON(買(mǎi)入,6.6,9);
2、六脈神劍3.0選股指標(biāo):
DIFF:=EMA(CLOSE,8)-EMA(CLOSE,13);
DEA:=EMA(DIFF,5);{微信公眾號(hào):尊重市場(chǎng)}
ABC1:=DIFF>DEA;
尊重市場(chǎng)1:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
K:=SMA(尊重市場(chǎng)1,3,1);
D:=SMA(K,3,1);
ABC2:=K>D;
指標(biāo)營(yíng)地:=REF(CLOSE,1);
RSI1:=(SMA(MAX(CLOSE-指標(biāo)營(yíng)地,0),5,1))/(SMA(ABS(CLOSE-指標(biāo)營(yíng)地),5,1))*100;
RSI2:=(SMA(MAX(CLOSE-指標(biāo)營(yíng)地,0),13,1))/(SMA(ABS(CLOSE-指標(biāo)營(yíng)地),13,1))*100;
ABC3:=RSI1>RSI2;
尊重市場(chǎng):=-(HHV(HIGH,13)-CLOSE)/(HHV(HIGH,13)-LLV(LOW,13))*100;
LWR1:=SMA(尊重市場(chǎng),3,1);
LWR2:=SMA(LWR1,3,1);
ABC4:=LWR1>LWR2;
BBI:=(MA(CLOSE,3)+MA(CLOSE,5)+MA(CLOSE,8)+MA(CLOSE,13))/4;
ABC10:=7;
去新三板:=NOT(CODELIKE('4'));
去科創(chuàng)板:=NOT(CODELIKE('688'));
去ST:=IF(NAMELIKE('S'),0,1);
去星星:=IF(NAMELIKE('*'),0,1);
去北交:=NOT(CODELIKE('8'));
條件限定:=去新三板 AND 去ST AND 去科創(chuàng)板 AND 去星星 AND 去北交;
ABC5:=CLOSE>BBI;
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);