通达信MACD背离买卖提示
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,COLOR00FFFF;
顶背离:(DD AND EE AND DEA< HHV(DEA,180))*DEA,STICK,LINETHICK3,COLORGREEN;
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,'金叉'),COLORYELLOW;
DRAWTEXT(CROSS(DEA,DIFF ),0,'死叉'),COLORGREEN;
金\N叉:CROSS(DIFF,DEA);
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
MACD : 2*(DIFF-DEA), COLORSTICK,COLOR5454FF
DD赋值:C=180日内C最高值
EE赋值:DEA< 1日前的DEA AND 1日前的DEA< 1日前的DEA=1
CC赋值:C> 1日前的C AND 1日前的C> 1日前的C=1
上升背离赋值:(CC AND EE)*DEA,COLOR00FFFF
输出顶背离:(DD AND EE AND DEA< 180日内DEA最高值)*DEA,STICK, 线宽为3,COLORGREEN
FF赋值:C=180日内C最低值
GG赋值: DEA> 1日前的DEA AND 1日前的DEA> 1日前的DEA=1
LL赋值:C< 1日前的C AND 1日前的C< 1日前的C=1
下降背离赋值:(LL AND GG)*DEA,画洋红色
底背离赋值:(FF AND GG AND DEA> 180日内DEA最低值)*DEA,STICK, 线宽为3,画红色
如果MACD< 0返回MACD否则返回0
JJ赋值:MM> 1日前的MM
ZZ赋值:1日前的JJ=1
输出介入区:(JJ AND ZZ)*DEA,POINTDOT,画红色
当满足条件介入区=DEA时,在DEA和DIFF之间画柱状线
DRAWTEXT(DIFF上穿DEA ,0,'金叉'),COLORYELLOW
DRAWTEXT(DEA上穿DIFF ,0,'死叉'),COLORGREEN
输出金\N叉:DIFF上穿DEA
- QQ:88652583
- 邮箱:88652583@qq.com
- 工作时间:8:30-23:00
- 微信:88652583或扫描如下二维码
sitemap站点地图