公式指标论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

MACD-kdj合成(MACD和KDJ合在一起)

2016-9-22 04:54| 发布者: admin| 查看: 33| 评论: 0

MACD指标和KDJ指标和在一起,

DIFF:=EMA(CLOSE,13) - EMA(CLOSE,34);
DEA:=EMA(DIFF,13);
MACD:=2*(DIFF-DEA/2);
AH:=HHV(MACD,13*1);
AL:=LLV(MACD,13*0.3);
STICKLINE(MACD>0 ,MACD,0,1,0),COLOR0000AA,LINETHICK1;
STICKLINE(MACD<0 ,MACD,0,1,0),COLOR008800,LINETHICK1;
趋势线:=EMA(MACD,34,1);
PARTLINE(趋势线,趋势线>REF(趋势线,1),RGB(255,255,0),趋势线 FILLRGN(趋势线,REF(趋势线,1),趋势线>REF(趋势线,1),RGB(255,255,0),趋势线<=REF(趋势线,1),RGB(0,88,255));
K:=SMA(MACD,2,1);
D:=SMA(K,2,1);
J:SMA(D,2,1);
STICKLINE(MACD>0,0.000001,0.000003,15,0),colorred;
STICKLINE(MACD<0,0.000001,0.000003,15,0),colorgreen;
PARTLINE(K,K>REF(K,1),RGB(255,0,0),K PARTLINE(D,D>REF(D,1),RGB(255,0,0),D PARTLINE(J,J>REF(J,1),RGB(255,0,0),J STICKLINE(REF(MACD,1) STICKLINE(MACD=AH,AH,K,8,0),LINETHICK1,colorred;

STICKLINE(REF(MACD,2)>MACD,MACD,REF(MACD,1),8,1),colorgreen;


鲜花

握手

雷人

路过

鸡蛋
返回顶部