MSD指标最早是由程峰在《稳操胜券》一书中提出,其原理是采用震荡型指标:随即指标KD中D值的编制原理,另外再加上一条大盘指数的KD指标中的D值曲线,这样在图中就形成了蓝红二条曲线,其中红色线是大盘的D值曲线,蓝色线是个股的D值曲线,蓝红二条曲线和其他震荡指标一样都是在0—100内波动,蓝色线或者红色线的分析方法和使用规则和KD指标的分析方法和使用规则一样,在20以下属超卖区,50属强弱分界线,80以上为超买区,这是蓝线或红线单条线的使用法则,那么将它们放在一个坐标图表中,就形成了震荡型强弱对比指标。MSD指标的研判规则分为以下三大方面:
1,大盘线和个股线的波动形态和方向一致,同涨同跌,该类个股为随大流而波动,大盘涨,个股随张,大盘跌,个股随跌,属于和大盘同步股。
2,大盘线和个股线的波动形态和方向不一致,不同涨不同跌,该类个股逆大盘而运动,大盘涨,个股也涨,其涨幅要明显大于大盘,大盘跌,个股不跌或上涨或跌幅要小于大盘,该类个股属于强于大盘股。
3,大盘线和个股线的波动形态和方向不一致,不同涨不同跌,该类个股逆大盘而运动,大盘涨,个股不涨或下跌或涨幅要小于大盘,大盘跌,个股也跌,其跌幅要明显大于大盘跌幅,该类个股属于弱于大盘股。如图:
MSD指标的实战法则如下:
1,当大盘线和个股线都在20以下,并几乎同时上穿20线时,可以买入。
2,当大盘线和个股线都在80以上,并几乎同时下穿80线时,可以卖出。
3,当个股线上穿大盘线时(最好在20左右),可以买入。
4,当个股线下穿大盘线时(最好在80左右),可以卖出。
5,当个股线在50以上上穿大盘线时,谨慎买入。
6,当个股线在50以下下穿大盘线时,谨慎卖出。
MSD指标的公式及其源码
在国内股票软件市场上大致有20多种看盘交易软件(比较具有知名度的),在本书中笔者只取其中较有代表性的,市场普及率较高的,有较好的指标公式管理平台的几种软件公布其公式及源码,如:大智慧软件,通达信软件,同花顺软件,钱龙新一代软件,飞狐交易师软件等,还有很多各具特色,各具优点的看盘交易软件,由于篇幅所限,这里就不一一展示其公式了,MSD指标的公式及其源码如下。
大智慧软件中的MSD指标的公式及其源码:
input:n(34,1,100,1),m(3,1,50,1),k(2,1,500,1)
RSV1:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
gg:ma(rsv1,m);
RSV2:=(indexc-LLV(indexl,N))/(HHV(indexh,N)-LLV(indexl,N))*100;
dp:ma(rsv2,m);
0,colorred,pointdot,linethick2;
20,colorred,pointdot,linethick2;
50,colorred,pointdot,linethick2;
80,colorred,pointdot,linethick2;
100,colorred,pointdot,linethick2;
a1:=count(gg>ref(gg,1),k)=k;
a2:=count(dp
a3:=count(gg
a4:=count(dp>ref(dp,1),k)=k;
逆势上涨:if(a1 and a2,25,0),linethick0;
DRAWTEXT(逆势上涨,10,'涨'),colorred;
逆势下跌:if(a3 and a4,10,0),linethick0;
DRAWTEXT(逆势下跌,10,'跌'),COLORGREEN;
通达信软件中的MSD指标的公式及其源码:
RSV1:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;
GG:MA(RSV1,3);
RSV2:=(INDEXC-LLV(INDEXL,34))/(HHV(INDEXH,34)-LLV(INDEXL,34))*100;
DP:MA(RSV2,3);
0,COLORRED,POINTDOT,LINETHICK2;
20,COLORRED,POINTDOT,LINETHICK2;
50,COLORRED,POINTDOT,LINETHICK2;
80,COLORRED,POINTDOT,LINETHICK2;
100,COLORRED,POINTDOT,LINETHICK2;
A1:=COUNT(GG>REF(GG,1),2)=2;
A2:=COUNT(DP
A3:=COUNT(GG
A4:=COUNT(DP>REF(DP,1),2)=2;
逆势上涨:IF(A1 AND A2,25,0),LINETHICK0;
DRAWTEXT(逆势上涨,10,'涨'),COLORRED;
逆势下跌:IF(A3 AND A4,10,0),LINETHICK0;
DRAWTEXT(逆势下跌,10,'跌'),COLORGREEN;
同花顺软件中的MSD指标的公式及其源码:
RSV1:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;
GG:MA(RSV1,3);
RSV2:=(INDEXC-LLV(INDEXL,34))/(HHV(INDEXH,34)-LLV(INDEXL,34))*100;
DP:MA(RSV2,3);
0,COLORRED,POINTDOT,LINETHICK2;
20,COLORRED,POINTDOT,LINETHICK2;
50,COLORRED,POINTDOT,LINETHICK2;
80,COLORRED,POINTDOT,LINETHICK2;
100,COLORRED,POINTDOT,LINETHICK2;
A1:=COUNT(GG>REF(GG,1),2)=2;
A2:=COUNT(DP
A3:=COUNT(GG
A4:=COUNT(DP>REF(DP,1),2)=2;
逆势上涨:IF(A1 AND A2,25,0),LINETHICK0;
DRAWTEXT(逆势上涨,10,'涨'),COLORRED;
逆势下跌:IF(A3 AND A4,10,0),LINETHICK0;
DRAWTEXT(逆势下跌,10,'跌'),COLORGREEN;
钱龙新一代软件中的MSD指标的公式及其源码:
RSV1:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;
GG:MA(RSV1,3);
RSV2:=(INDEXC-LLV(INDEXL,34))/(HHV(INDEXH,34)-LLV(INDEXL,34))*100;
DP:MA(RSV2,3);
0,COLORRED,POINTDOT,LINETHICK2;
20,COLORRED,POINTDOT,LINETHICK2;
50,COLORRED,POINTDOT,LINETHICK2;
80,COLORRED,POINTDOT,LINETHICK2;
100,COLORRED,POINTDOT,LINETHICK2;
A1:=COUNT(GG>REF(GG,1),2)=2;
A2:=COUNT(DP
A3:=COUNT(GG
A4:=COUNT(DP>REF(DP,1),2)=2;
逆势上涨:IF(A1 AND A2,25,0),LINETHICK0;
DRAWTEXT(逆势上涨,10,'涨'),COLORRED,linethick0;
逆势下跌:IF(A3 AND A4,10,0),LINETHICK0,linethick0;
DRAWTEXT(逆势下跌,10,'跌'),COLORGREEN,linethick0;
飞狐交易师软件中的MSD指标的公式及其源码:
input:n(34,1,100,1),m(3,1,50,1),k(2,1,500,1)
RSV1:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
gg:ma(rsv1,m);
RSV2:=(indexc-LLV(indexl,N))/(HHV(indexh,N)-LLV(indexl,N))*100;
dp:ma(rsv2,m);
0,colorred,pointdot,linethick2;
20,colorred,pointdot,linethick2;
50,colorred,pointdot,linethick2;
80,colorred,pointdot,linethick2;
100,colorred,pointdot,linethick2;
a1:=count(gg>ref(gg,1),k)=k;
a2:=count(dp
a3:=count(gg
a4:=count(dp>ref(dp,1),k)=k;
逆势上涨:if(a1 and a2,25,0),linethick0;
DRAWTEXT(逆势上涨,10,'涨'),colorred;
逆势下跌:if(a3 and a4,10,0),linethick0;
DRAWTEXT(逆势下跌,10,'跌'),COLORGREEN;