Board logo

标题: MACD叠加K线 [打印本页]

作者: 679089    时间: 2013-1-21 17:04     标题: MACD叠加K线

本帖最后由 679089 于 2013-1-21 19:48 编辑

ZA1:=EMA(C,25);
ZA2:=EMA(ZA1,45);
ZB1:=EMA(C,65);
ZB2:EMA(ZB1,45),COLORYELLOW,LINETHICK2;
DIFF:=(ZA1+ZB2)/2;
DEA:=(ZA2+ZB1)/2;
IF(DIFF>=DEA,DIFF,DRAWNULL),LINETHICK2,COLORRED;
IF(DIFF<DEA,DIFF,DRAWNULL),LINETHICK1,COLORBLUE;
KA0:=(HHV(C,45)-LLV(C,45))/45;
KA1:=SMA(C,3,1);
KA2:=SMA(C-KA0*3,3,1);
KA3:=SMA(KA1-KA0*3,3,1);
IF(KA2>=KA3,KA2,DRAWNULL )COLORMAGENTA,LINETHICK2;
IF(KA2<KA3,KA2,DRAWNULL ),LINETHICK1,COLORGREEN;




欢迎光临 VV娱乐社区论坛 (http://bbs.51vv.com/) Powered by Discuz! 7.0.0