联系方式 Contact

云指标公式网

淘宝:iyungs.taobao.com

电话:18020657357

微信:396950280

Q Q:332879389

点击这里给我发消息

网址:www.yzhibiao.com

搜索 Search

淘金MACD

2016-9-30 15:00:16点击:

 IF(PERIODNAME<>"日线")

{
统计:"该指标只在日线周期下有效。";
RETURN;
}
r1:=ZDMR[-1];
r2:=BDMR[-1];
r3:=-ZDMC[-1];
r4:=-BDMC[-1];
x1:=(ZDMR+BDMR);
y1:=-(ZDMC+BDMC);
a1=MA(x1,3);
b1=MA(y1,3);
DDX:=2*(a1+b1);
DDX1:=EMA(DDX,60)*60,COLOR00FFFF;
DDX2:=MA(DDX1,5),COLORFF00FF;
DDX3:=MA(DDX2,10),COLOR00FF00;
主力红买绿卖:DDX1>DDX2,nodraw,colorlimagenta;
RSV=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
k=SMA(RSV,3,1);
d=SMA(k,3,1);
J:(3*k-2*d),nodraw;
MD:=2*(K-D),nodraw;
DF : EMA(CLOSE,12) - EMA(CLOSE,26),colorwhite;
DA : EMA(DF,9),colorliblue;
MACD:2*(DF-DA),nodraw;
STICKLINE(MACD>0 AND ddx1>=ddx2 AND ddx2>=ddx3,0,MACD,8,0),colorred;
STICKLINE(MACD>0 AND ddx1>=ddx2 AND ddx2<ddx3,0,MACD,8,0),colorliblue;
STICKLINE(MACD>0 AND ddx1<ddx2,0,MACD,8,0),colorliblue;
STICKLINE(MACD<0 AND ddx1>=ddx2 AND ddx2>ddx3 ,0,MACD,8,0),colormagenta;
STICKLINE(MACD<0 AND ddx1>=ddx2 AND ddx2<ddx3 ,0,MACD,8,0),colorgreen;
STICKLINE(MACD<0 AND ddx1<ddx2 ,0,MACD,8,0),colorgreen;
STICKLINE(J<=0 AND MACD>0 ,0,-MACD,8,1),colorwhite;
STICKLINE(J<=0 AND MACD<0 ,0,-MACD,8,1),colorwhite;
STICKLINE(J>0 AND j<10 AND MACD>0 ,-MACD,0,8,0),colorwhite;
STICKLINE(J>0 AND j<10 AND MACD<0 ,-MACD,0,8,0),colorwhite;
DRAWICON(J>90 AND MACD>0,MACD,2);
DRAWICON(J>90 AND MACD<0,-MACD,2);
MACDkdj共振能量:=MACD>0 AND MACD>=REF(MACD,1) AND  MD>=REF(MD,1);;
持续放量:=(VOL>=MA(VOL,5) AND VOL>=MA(VOL,135)) OR (MA(VOL,5)>MA(VOL,135));
k线形态:=C>O;
强势放量:持续放量 AND MACDkdj共振能量 AND C>O AND C>MA(C,20),nodraw,coloryellow;
STICKLINE(强势放量,0,MACD,4,0),coloryellow;
VAR1:=REF(LOW,1);//www.88gs.com
VAR2:=SMA(ABS(LOW-VAR1),3,1)/SMA(MAX(LOW-VAR1,0),3,1)*100;
VAR3:=EMA(IF(CLOSE*1.2,VAR2*10,VAR2/10),3);
VAR4:=LLV(LOW,38);
VAR5:=HHV(VAR3,38);
VAR6:=IF(LLV(LOW,90),1,0);
VAR7:=EMA(IF(LOW<=VAR4,(VAR3+VAR5*2)/2,0),3)/618*VAR6;
VAR8:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;
VAR9:=SMA(VAR8,13,8);
主力吸货:VAR7,colorred,nodraw;
FILLRGN(DF,DA,主力吸货,colorred);