联系方式 Contact

云指标公式网

淘宝:zb-mart.taobao.com

电话:18020657357

微信:18020657357

Q Q:396950280

点击这里给我发消息

网址:www.yzhibiao.com

搜索 Search

三强LMACD

2016-5-12 22:30:50点击:

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

RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
VAR1:=LLV(LOW,N);
VAR2:=HHV(HIGH,N);
SD:=100*(CLOSE-VAR1)/(VAR2-VAR1);
MSD:SMA(SD,3,1),colorred;
MMSD:=MA(SD,3);
金: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),20,'▲郝无惧'),colorblack;
DRAWTEXT(CROSS(MSD,50),50,'▲无我'),colorblack;
DRAWTEXT(CROSS(MSD,80),80,'2B'),colorblue;
DRAWTEXT(CROSS(90,MSD),90,'无贪'),colorred;
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(SD,A)-EMA(SD,B),colorred;
DEA:EMA(DIF,M);
LMACD:(DIF-DEA)*3,COLORSTICK;
LMACD空中加油:=LMACD>=0
AND REF(LMACD,1)>=0
AND REF(LMACD,2)>=0
AND REF(LMACD,3)>=0
AND LMACD>REF(LMACD,1) AND REF(LMACD,1)<REF(LMACD,2)
AND REF(LMACD,2)<REF(LMACD,3)
AND REF(LMACD,3)<REF(LMACD,4)
AND MMSD<40
AND K<55;
DRAWICON(LMACD空中加油,0.35,1),coloryellow;
STICKLINE(LMACD空中加油,0.3,LMACD,2,0),coloryellow;
DRAWTEXT(LMACD空中加油,-5,'加仓'),colorred;
绿柱缩短:=LMACD<0 AND LMACD>REF(LMACD ,1)  AND REF(LMACD ,1)<REF(LMACD ,2)
AND REF(LMACD ,2)<REF(LMACD ,3)
AND MMSD<25;
STICKLINE(绿柱缩短,0.1,LMACD,2,0),colormagenta;
DRAWTEXT(绿柱缩短,-5,'建仓'),colorred;
红柱缩短:=LMACD<REF(LMACD ,1)  AND REF(LMACD ,1)>REF(LMACD ,2)
AND REF(LMACD ,2)>REF(LMACD ,3)
AND REF(LMACD,3)>REF(LMACD,4)
AND ((MMSD>80 AND LMACD>0)OR (MMSD>85 AND LMACD<0));
DRAWICON(红柱缩短,0.35,2);
STICKLINE(红柱缩短,0.1,LMACD,2,0),colorgreen;
DRAWTEXT(红柱缩短,15,'守趋势止盈'),colorblue;
弱势线:20,LINETHICK1,colorred,LINETHICK2;
中势线:50,LINETHICK1,colormagenta;
强势线:80,LINETHICK1,colorred;
赶顶线:90,DOTLINE,colorblue;