
六脉神剑指标由MACD、KDJ、RSI相对强弱指标、LWR威廉指标、BBI多空指标、MTM动量线这6个指标组成;
同花顺软件:在同花顺软件通达信编程模式下直接复制代码即可使用;
如果是博易大师软件,复制代码后,在以下文件夹:博易大师\pobo5\cfg\icon文件夹下,把icon1,icon2图标换成箭头图标就可搞定;



//战法技巧:1.看到6红开始看多。一路红色一路多。见到3绿就下车。
以下是同花顺软件通达信模式下源代码:
DIF:=EMA(CLOSE,8)-EMA(CLOSE,12);//MACD
DEA:=EMA(DIF,5);
DRAWICON(DIF>DEA,1,1);
DRAWICON(DIF<DEA,0.5,2);
RSV1:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;//KDJ
K:=SMA(RSV1,3, 1);
D:=SMA(K,3,1);
DRAWICON(K>D,2,1);
DRAWICON(K<D,1.5,2);
LC:= REF(CLOSE,1);//RSI相对强弱指标
RSI$1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
RSI$2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;
DRAWICON(RSI$1>RSI$2,3,1);
DRAWICON(RSI$1<RSI$2,2.5,2);
RSV:= (HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100;//LWR威廉指标
LWR1:=SMA(RSV,3,1);
LWR2:=SMA(LWR1,3,1);
DRAWICON(LWR1<LWR2,4,1);
DRAWICON(LWR1>LWR2,3.5,2);
BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;//BBI多空指标
a:=CLOSE;
DRAWICON(BBI<C,5,1);
DRAWICON(BBI>C,4.5,2);
MTM:=CLOSE-REF(CLOSE,12);//MTM动量线
MAMTM:=MA(MTM,6);
DRAWICON(MTM>MAMTM,6,1);
DRAWICON(MTM<MAMTM,5.5,2);
aa:0.5;
bb:6.5;