当前位置:→ 公式网 > 通达信公式 > 正文 ℃ 公式解密、改选股等业务 联系点击查看详情...
以下是国外很流行的MACD,暗含玄机 (通达信 副图指标 源码 附图)(无源码的请下载附件导入)
据说是国外很流行的MACD,越看越有看头,个人感觉很好,发出来与理想的朋友共享,源码是飞狐的,差别在于横向虚线上。
大智慧、飞狐、通达信通用
出处搞不清了,还望原作者见谅。
C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- P:=13;S:=5;M:=1;
- DIFF:EMA(C,S)-EMA(C,P);
- DEA:EMA(DIFF,M),COLORRED;
- MACD:2*(DIFF-DEA),COLORSTICK;
- P1:=P;S1:=S;
- DIFF1:EMA(C,S1)-EMA(C,P1);
- DEA1:EMA(DIFF,M),COLORRED;
- MACD1:=2*(DIFF1-DEA1),COLORSTICK;
- MACD2:=DEA;
- STICKLINE(MACD2<=REF(MACD2,1)AND MACD2>0,0,MACD2,3,0 ),COLOR00AAFF;
- STICKLINE(MACD2<=REF(MACD2,1)AND MACD2>0,0,MACD2,1.8,0 ),COLOR00BBFF;
- STICKLINE(MACD2<=REF(MACD2,1)AND MACD2>0,0,MACD2,1.3,0 ),COLOR00CCFF;
- STICKLINE(MACD2<=REF(MACD2,1)AND MACD2>0,0,MACD2,1.2,0 ),COLOR00DDFF;
- STICKLINE(MACD2<=REF(MACD2,1)AND MACD2>0,0,MACD2,1,0 ),COLOR00EEFF;
- STICKLINE(MACD2<=REF(MACD2,1)AND MACD2>0,0,MACD2,0.5,0 ),COLOR00FFFF;
- STICKLINE(MACD2>REF(MACD2,1)AND MACD2>0,0,MACD2,3.4,0 ),COLOR0000AA;
- STICKLINE(MACD2>REF(MACD2,1)AND MACD2>0,0,MACD2,3.2,0),COLOR0011BB;
- STICKLINE(MACD2>REF(MACD2,1)AND MACD2>0,0,MACD2,3,0),COLOR0022CC;
- STICKLINE(MACD2>REF(MACD2,1)AND MACD2>0,0,MACD2,2,0),COLOR0033DD;
- STICKLINE(MACD2>REF(MACD2,1)AND MACD2>0,0,MACD2,1,0),COLOR0044EE;
- STICKLINE(MACD2>REF(MACD2,1)AND MACD2>0,0,MACD2,0.5,0),COLOR0055FF;
- STICKLINE(MACD2>REF(MACD2,1)AND MACD2<=0,0,MACD2,3.4,0),COLORAA00BB;
- STICKLINE(MACD2>REF(MACD2,1)AND MACD2<=0,0,MACD2,3.2,0),COLORBB11BB;
- STICKLINE(MACD2>REF(MACD2,1)AND MACD2<=0,0,MACD2,3,0),COLORCC22BB;
- STICKLINE(MACD2>REF(MACD2,1)AND MACD2<=0,0,MACD2,2,0 ),COLORDD33BB;
- STICKLINE(MACD2>REF(MACD2,1)AND MACD2<=0,0,MACD2,1,0),COLOREE44BB;
- STICKLINE(MACD2>REF(MACD2,1)AND MACD2<=0,0,MACD2,0.5,0 ),COLORFF55BB;
- STICKLINE(MACD2<=REF(MACD2,1)AND MACD2<=0,0,MACD2,3,0 ),COLORFF7700;
- STICKLINE(MACD2<=REF(MACD2,1)AND MACD2<=0,0,MACD2,1.5 ,0 ),COLORFF8811;
- STICKLINE(MACD2<=REF(MACD2,1)AND MACD2<=0,0,MACD2,1.2,0 ),COLORFFAA22;
- STICKLINE(MACD2<=REF(MACD2,1)AND MACD2<=0,0,MACD2,1.0 ,0 ),COLORFFBB33;
- STICKLINE(MACD2<=REF(MACD2,1)AND MACD2<=0,0,MACD2,0.8 ,0 ),COLORFFDD44;
- STICKLINE(MACD2<=REF(MACD2,1)AND MACD2<=0,0,MACD2,0.5 ,0 ),COLORFFFF55;
- R:=(HHV(DEA,100)+ABS(LLV(DEA ,100)))/2;
- R/4,POINTDOT,COLORFFFF00;
- R/2,POINTDOT,COLORFFFF00;
- R/4*3,POINTDOT,COLORFFFF00;
- -R/4,POINTDOT,COLORFFFF00;
- -R/2,POINTDOT,COLORFFFF00;
- -R/4*3,POINTDOT,COLORFFFF00;
{这个指标,可是越看越有看头}
感谢朋友的关注,其实不在于柱状线,妙处在于DEA DEA1与横线的交叉上,柱状线只是面纱而已,揭秘图:加上0轴共7条横线,任何一个DEA或DEA1反向交叉其中一根横线的都是卖点或买点,买点交叉与卖点交叉越远,即相隔横线越多获利越大,反之持币空间越大
上一篇:神龙波浪 (理念、源码、图片及研究成果) 下一篇:套牢盘 (副图 源码)