联系方式 Contact

云指标公式网

淘宝:zb-mart.taobao.com

电话:18020657357

微信:18020657357

Q Q:396950280

点击这里给我发消息

网址:www.yzhibiao.com

搜索 Search

三强林 --- 史丹三强MACD平滑处理

2016-4-20 16:02:02点击:

三买史丹MSD指标,结合大盘MSD分析。通过macd平滑处理买卖点。灵活运用可使收益最大化

VAR1:=LLV(LOW,N);

VAR2:=HHV(HIGH,N);

SD:=100*(CLOSE-VAR1)/(VAR2-VAR1);

MSD:SMA(SD,3,1),colorred;

金:IF(MSD>REF(MSD,1),MSD,DRAWNULL),colorred,LINETHICK3;

空:IF(MSD<REF(MSD,1),MSD,DRAWNULL),colorgreen,LINETHICK3;

{DRAWTEXT(CURRBARSCOUNT=1,MSD,''),colorred,LINETHICK2;}

VAR3:=LLV(INDEXL,N);

VAR4:=HHV(INDEXH,N);

DP:=100*(INDEXC-VAR3)/(VAR4-VAR3);

大盘MSD:MA(DP,3),colorblue;

{DRAWTEXT(CURRBARSCOUNT=1,大盘MSD,''),colorblue;}

VAR5:=LLV(INDEXC,N);

VAR6:=HHV(INDEXC,N);

HY:=100*(INDEXC-VAR5)/(VAR6-VAR5);

行业MSD:MA(HY,3),DOTLINE,colorgreen;

{DRAWTEXT(CURRBARSCOUNT=1,行业MSD,''),colorgreen;}

DRAWTEXT(CROSS(MSD,20),15,'▲郝胖又偷买'),colorred;

DRAWTEXT(CROSS(MSD,90),95,'2B'),colorred;

DRAWTEXT(CROSS(90,MSD),90,'不走没救了'),colorred;

弱势线:20,LINETHICK1,colorred,LINETHICK2;

中势线:50,LINETHICK1,colormagenta;

强势线:80,LINETHICK1,colorred;

赶顶线:90,DOTLINE,colorblue;

A1:=COUNT(MSD>REF(MSD,1),2)=2;

A2:=COUNT(大盘MSD<REF(大盘MSD,1),2)=2;

A3:=COUNT(MSD<REF(MSD,1),2)=2;

A4:=COUNT(大盘MSD>REF(大盘MSD,1),2)=2;

逆势上涨:IF(A1 AND A2,25,0),LINETHICK0;

DRAWTEXT(逆势上涨,10,'涨'),colorred;

逆势下跌:IF(A3 AND A4,10,0),LINETHICK0;

DRAWTEXT(逆势下跌,10,'跌'),colorgreen;

DIF:EMA(MSD,A)-EMA(MSD,B);

DEA:EMA(DIF,M);

MACD:(DIF-DEA)*2,COLORSTICK;

MACD空中加油:=

MACD>=0

AND REF(MACD,1)>=0

AND REF(MACD,2)>=0

AND REF(MACD,3)>=0

AND MACD>REF(MACD,1) AND REF(MACD,1)<REF(MACD,2)

AND REF(MACD,2)<REF(MACD,3)

AND MSD<50;

DRAWICON(MACD空中加油,0.35,1);

STICKLINE(MACD空中加油,0.3,MACD,2,0),coloryellow;

绿柱缩短:=MACD<0 AND MACD>REF(MACD ,1)  AND REF(MACD ,1)<REF(MACD ,2)

AND REF(MACD ,2)<REF(MACD ,3)

AND REF(MACD ,3)<REF(MACD ,4)

AND MSD<30;

STICKLINE(绿柱缩短,0.1,MACD,2,0),colormagenta;

红柱缩短:=MACD>0 AND MACD<REF(MACD ,1)  AND REF(MACD ,1)>REF(MACD ,2)

AND REF(MACD ,2)>REF(MACD ,3)

AND REF(MACD ,3)>REF(MACD ,4)

AND MSD>80;

STICKLINE(红柱缩短,0.1,MACD,2,0),colorgreen;