MACD KDJ简单优化
指标功能:[B]国产软件[/B]
指标类型:简体中文
所需积分:0
推荐星级:
授权方式:共享版
公式大小:0 Bytes
更新时间:2015-02-10 21:52:00
公式简介:
{MACD KDJ 简单优化}
DIF:(EMA(CLOSE,12) - EMA(CLOSE,26));
DEA:EMA(DIF,9);
MACD:=2*(DIF-DEA);{MACD}
IF(MACD>REF(MACD,1),MACD,DRAWNULL)STICK,COLORRED;
IF(MACD<REF(MACD,1),MACD,DRAWNULL)STICK,COLORCYAN;{MACD柱状}
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:SMA(RSV,3,1),NODRAW;
D:SMA(K,3,1),NODRAW;
J:3*K-2*D,NODRAW;{KDJ}
DRAWBAND(DIF,RGB(200,55,55),DEA,RGB(55,200,66));{带状 红多 绿空}
DRAWICON(CROSS(DEA,DIF) AND K<D,DEA,2); {}
DRAWICON(CROSS(DIF,DEA) AND COUNT(MACD>REF(MACD,1),2)=2 AND K>=D,DEA,1);
[url=http://www.goodgupiao.com/gupiaogongshi/36238.html][B]MACD KDJ简单优化[/B][/url]