股票论坛
标题:
通达信副图公式:MACD背离
[打印本页]
作者:
晴天小雨
时间:
2015-5-3 10:09
标题:
通达信副图公式:MACD背离
DIFF:EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);
DEA:=EMA(DIFF,M);
MACD: 2*(DIFF-DEA), COLORSTICK,COLOR5454FF;
DD:=C=HHV(C,180);
EE:=DEA< REF(DEA,1) AND REF(DEA< REF(DEA,1),1)=1;
CC:=C> REF(C,1) AND REF(C> REF(C,1),1)=1;
上升背离:=(CC AND EE)*DEA;
顶背离:=DD AND EE AND DEA < HHV(DEA,180)*DEA;
FF:=C=LLV(C,180);
GG:= DEA> REF(DEA,1) AND REF(DEA> REF(DEA,1),1)=1;
LL:=C< REF(C,1) AND REF(C< REF(C,1),1)=1;
下降背离: (LL AND GG)*DEA,COLORMAGENTA;
底背离:FF AND GG AND DEA> LLV(DEA,180)*DEA,STICK,LINETHICK3,COLORRED;
MM:=IF(MACD< 0,MACD,0);
JJ:=MM> REF(MM,1);
ZZ:=REF(JJ,1)=1;
介入区: (JJ AND ZZ)*DEA,POINTDOT,COLORRED;{MACD蓝柱缩短---指今日比昨天短}
STICKLINE(介入区=DEA,DEA,DIFF,3,0),COLORRED;
DRAWTEXT(CROSS(DIFF,DEA ),0,'金\N叉'),COLORCYAN;
DRAWTEXT(CROSS(DEA,DIFF ),0,'死叉'),COLORGREEN;
注明:参数设置用MACD的默认参数:SHORT(9)LONG(26)M(12)
作者:
纪言
时间:
2015-5-6 14:37
不能通过
作者:
小玉
时间:
2015-5-7 08:46
纪言 发表于 2015-5-6 14:37
不能通过
安装MACD的指标,需要设置参数,才能安装。
作者:
锋华
时间:
2015-5-8 00:38
说的不错!
作者:
宋小宝
时间:
2015-5-8 15:55
谢谢分享
作者:
转折在一五
时间:
2015-5-26 17:24
说的不错!
作者:
转折在一五
时间:
2015-5-26 17:38
谢谢分享
作者:
大华学习
时间:
2015-5-28 07:41
不错,谢谢分享!
作者:
大盘密钥
时间:
2015-6-5 15:45
ST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ICKLINE(ZZLKP<=10,ZZLKP,0,5,0),COLORDD00DD;
100,COLORGREEN;
80,COLORGREEN;
{0,COLORGREEN;}
{主线快线}
价量,COLOR0CC0FF,LINETHICK2;
主线,COLOR00FFAA,LINETHICK2;
快线,LINESTICK,COLORFF68DD;
作者:
鱼中水
时间:
2015-6-6 09:16
通达信副图公式:MACD背离,测试不通过
作者:
三月风情
时间:
2015-6-9 00:13
谢谢分享
作者:
吉林景屹
时间:
2015-7-14 07:08
谢谢老师的分享
欢迎光临 股票论坛 (http://100000w.com/)
Powered by Discuz! X3.2