公式指标平台 股票指标公式源码分享 登录 注册
公式指标平台
未来函数检测
首 页 金钻指标 通达信公式 大智慧公式 同花顺公式 文华财经公式 操盘手公式 东财通公式 飞狐公式 其他公式 公式解答 股票软件 股票池
当前位置:→ 公式指标平台 > 通达信公式 > 正文 → 正文

通达信《自在买卖-对MACD再优化》副图指标公式

发布时间:2013/5/14 6:36:28  浏览次数:

通达信,自在买卖,对MACD,优化,副图,指标公式

 

MACD指标的构造起点是股价的平滑移动平均线EMA,所以,决定了它的强势性与稳定性的特点,同时它克服了均线频繁发出假性信号的缺陷,使得它对中长期趋势的把握准确率较大,深受趋势买家的喜爱。既然它有无可挑剔的稳定性,那么,它的滞后性也随之而来。因此,对这个问题的解决方法只有仰仗指标参数的优化来搞定了。
MACD指标一般不适合短线和超短线的股友使用,也不适合在盘整行情下使用。通常来说,在短线和超短线交易中需要你对股价的短期波动灰常敏感。而MACD指标的滞后性对股价短期波动太难及时地给予反映,因此,MACD指标就十分不适合短线客操作了。此外,在盘整行情中,它一般会围绕0轴上下运动,频繁发出金死叉等交易信号,而,这些信号往往大多数均属无效信号

 

DIFF1:EMA(C,13) - EMA(C,34),COLOR00FFFF ;

DEA1:EMA(EMA(C,13) - EMA(C,34),12) ;

IF(EMA(C,13) - EMA(C,34) >= EMA(EMA(C,13) - EMA(C,34) ,12),EMA(C,13) - EMA(C,34) ,DRAWNULL),COLORRED;

IF((EMA(C,13) - EMA(C,34) - EMA(EMA(C,13) - EMA(C,34) ,12) ) * 1000/EMA(C,15) > 0 AND (EMA(C,13) - EMA(C,34) - EMA(EMA(C,13) - EMA(C,34) ,12) ) * 1000/EMA(C,15) < 1.85,EMA(C,13) - EMA(C,34),DRAWNULL),COLORGREEN;

IF(EMA(C,13) - EMA(C,34) < EMA(EMA(C,13) - EMA(C,34) ,12) OR EMA(C,13) - EMA(C,34) > EMA(EMA(C,13) - EMA(C,34) ,12) AND REF(EMA(C,13) - EMA(C,34) ,1) < REF(EMA(EMA(C,13) - EMA(C,34) ,12) ,1),EMA(C,13) - EMA(C,34) ,DRAWNULL),COLOR00FF00;

DRAWBAND(DIFF1,RGB(64,0,64),DEA1,RGB(57,58,66));

DIFF:=EMA(C,13)-EMA(C,21),NODRAW;

DEA:=EMA(DIFF,5);

MACD:=2*(DIFF-DEA);

回吐:IF(DEA>0,DEA,0),COLORFFFFFF,NODRAW;

回补:IF(DEA<0,DEA,0),COLOR00FFFF,NODRAW;

持币:IF(DIFF<0,DIFF,0),COLORFF0000,NODRAW;

持股:IF(DIFF>0,DIFF,0),COLOR0000FF,NODRAW;

ZG:=HHVBARS(DIFF,89)+1;

HH:REF(DIFF,BARSSINCE(BACKSET(ISLASTBAR,ZG))),COLORAAAA77,LINETHICK2;

ZD:=LLVBARS(DIFF,89)+1;

LL:REF(DIFF,BARSSINCE(BACKSET(ISLASTBAR,ZD))),COLORAA77AA,LINETHICK2;

DRAWNUMBER(ISLASTBAR,HH+0.03,ZG),COLOR00AA00;

DRAWNUMBER(ISLASTBAR,LL+0.05,ZD),COLOR0000AA;

DRAWNUMBER(CURRBARSCOUNT=11 AND DIFF,HH+0.03,HH);

DRAWNUMBER(CURRBARSCOUNT=11 AND DIFF,LL+0.05,LL);

STICKLINE((DEA>0),0,DEA,2.5,0),COLORAAAAAA;

STICKLINE((DEA>0),0,DEA,1.8,0),COLORCCCCCC;

STICKLINE((DEA>0),0,DEA,1,0),COLORDDDDDD;

STICKLINE((DEA>0),0,DEA,0.2,0),COLORFFFFFF;

STICKLINE(DEA<0,0,DEA,2.5,0),COLOR0064AA;

STICKLINE(DEA<0,0,DEA,1.8,0),COLOR0093CC;

STICKLINE(DEA<0,0,DEA,1,0),COLOR00C2DD;

STICKLINE(DEA<0,0,DEA,0.2,0),COLOR00FFFF;

STICKLINE(DIFF<0,0,DIFF,2.5,0),COLORAA1100;

STICKLINE(DIFF<0,0,DIFF,1.8,0),COLORAA3300;

STICKLINE(DIFF<0,0,DIFF,1,0),COLORAA5500;

STICKLINE(DIFF<0,0,DIFF,0.2,0),COLORAA7700;

STICKLINE(DIFF>0,0,DIFF,2.5,0),COLOR0000AA;

STICKLINE(DIFF>0,0,DIFF,1.8,0),COLOR0000CC;

STICKLINE(DIFF>0,0,DIFF,1,0),COLOR0000DD;

STICKLINE(DIFF>0,0,DIFF,0.2,0),COLOR0000FF;

DRAWTEXT(REF(DIFF<0 AND DIFF<DEA,1) AND DIFF<0 AND DIFF>DEA ,DEA-0.1,'回'),COLOR00FFFF;

DRAWTEXT(REF(DIFF<0 AND DIFF<DEA,1) AND DIFF<0 AND DIFF>DEA ,DEA-0.2,'补'),COLOR00FFFF;

DRAWTEXT(CROSS(DIFF>0,0.5) ,DIFF+0.2,'买'),COLOR0000FF;

DRAWTEXT(CROSS(DIFF>0,0.5) ,DIFF+0.1,'入'),COLOR0000FF;

DRAWTEXT(REF(DIFF>0 AND DIFF>DEA,1) AND DIFF>0 AND DIFF<DEA ,DEA+0.2,'回'),COLORFFFFFF;

DRAWTEXT(REF(DIFF>0 AND DIFF>DEA,1) AND DIFF>0 AND DIFF<DEA ,DEA+0.1,'吐'),COLORFFFFFF;

DRAWICON(CROSS(EMA(C,13) - EMA(C,34) >= EMA(EMA(C,13) - EMA(C,34) ,12),0.5),EMA(EMA(C,13) - EMA(C,34) ,12) ,5);

DRAWICON(CROSS(EMA(EMA(C,13) - EMA(C,34) ,12) >=EMA(C,13) - EMA(C,34) ,0.5),EMA(EMA(C,13) - EMA(C,34) ,12) ,6);
 

 

通达信《自在买卖-对MACD再优化》副图指标公式

通达信《自在买卖-对MACD再优化》副图指标公式

资源下载链接   资源大小:unknow

关于我们 - 联系我们 - 广告合作 - 下载声明 - 网站帮助 - 友情链接 - 网站地图 - RSS订阅 - TOP
湘ICP备09016573号 增值电信业务经营ICP许可证:湘B2-20210269 湘公网安备43108102000039号
Copyright © GSZB.COM ,All Rights Reserved.
股票公式,股票指标,股票软件,股票知识