通达信超经典的智能MACD公式

[复制链接]
查看33 | 回复0 | 2022-7-24 08:02:44 | 显示全部楼层 |阅读模式

通达信超经典的智能MACD公式

大盘暴跌,发个自用公式给大家提提神。希望大家多多发财。喜欢用的怎么用都好,不喜欢用坚决别用。能看背离的指标我认为是咱们都应该用的,牛市里主力就用N个顶背离拿走了咱们的筹码,看量分析顶,熊市里主力会用N个底背离引诱大家进场,喜欢运用指标的朋友注意指标的周期共振买卖。

源码---
DIF:=(EMA(CLOSE,8/2)-0.7*EMA(CLOSE,8)-0.3*EMA(CLOSE,8))*100;
DEA:=EMA(DIF,8);
MACD:=(DIF-DEA)*2;
A:=MACD;
STICKLINE(A>REF(A,1) AND A>=0,0,A,1.4,0),COLOR000088;
STICKLINE(A>REF(A,1) AND A>=0,0,A,1,0),COLOR0000AA;
STICKLINE(A>REF(A,1) AND A>=0,0,A,0.6,0),COLOR0000CC;
STICKLINE(A>REF(A,1) AND A>=0,0,A,0.15,0),COLOR0000EE;
STICKLINE(A>REF(A,1) AND A<0,0,A,1.4,0),COLOR0099FF;
STICKLINE(A>REF(A,1) AND A<0,0,A,1,0),COLOR00BBFF;
STICKLINE(A>REF(A,1) AND A<0,0,A,0.6,0),COLOR00DDFF;
STICKLINE(A>REF(A,1) AND A<0,0,A,0.15,0),COLOR00FFFF;
STICKLINE(A<REF(A,1)AND A<0,0,A,1.4,0),COLOR008800;
STICKLINE(A<REF(A,1)AND A<0,0,A,1,0),COLOR00AA00;
STICKLINE(A<REF(A,1)AND A<0,0,A,0.6,0),COLOR00CC00;
STICKLINE(A<REF(A,1)AND A<0,0,A,0.15,0),COLOR00EE00;
STICKLINE(A<=REF(A,1) AND A>=0,0,A,1.4,0),COLORFF0099;
STICKLINE(A<=REF(A,1) AND A>=0,0,A,1,0),COLORFF00BB;
STICKLINE(A<=REF(A,1) AND A>=0,0,A,0.6,0),COLORFF00DD;
STICKLINE(A<=REF(A,1) AND A>=0,0,A,0.15,0),COLORFF00FF;
K:SMA(DEA,2,1),COLORWHITE;
D:SMA(K,2,1),COLORBLUE;
J:3*K-2*D,COLORYELLOW;
 

1933522073.jpg

1933522073.jpg

 

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则