当前位置:首页 > 公式 > 同花顺公式 >
同花顺MACD底背离买点指标公式
来源:互联网浏览次数: 整理:股票入门学习大学网

SHORT:=12;

LONG:=26;

M:=9;

DIFF : EMA(CLOSE,SHORT) - EMA(CLOSE,LONG),colorwhite;

DEA : EMA(DIFF,M),coloryellow;

MACD :=2*(DIFF-DEA);

Zero : 0;

STICKLINE(MACD>0,0,MACD,1,0),colorred;

STICKLINE(MACD<0,0,MACD,1,0),colorgreen;

//VARGu:=(REF(diff,2)>=REF(diff,1) AND diff>REF(diff,1))OR (REF(diff,2)<=REF(diff,1) AND ( (REF(diff,1)-REF(diff,2)) /REF(diff,2) < (diff-REF(diff,1)) /REF(diff,1)*1.1 ) );

//VARGu:=(REF(diff,2)>=REF(diff,1) AND diff>REF(diff,1));

VARGu:=CROSS(diff,dea);

AA:=COUNT(VARGu,BARSLAST(DEA>=0));

A1:=BARSLAST(REF(VARGu,1));

二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND AA>=2 AND dea<0 AND A1>=5;

DRAWTEXT(二次金叉,0.2,''+AA+'次金叉'),coloryellow;

背离:=MIN(REF(CLOSE,A1+1),REF(CLOSE,A1+2),REF(CLOSE,A1+3),REF(CLOSE,A1+4))>LLV(CLOSE,3) AND LLV(DIFF,3)> MIN(REF(DIFF,A1+1), REF(DIFF,A1+2),REF(DIFF,A1+3),REF(DIFF,A1+4)) AND VARGu AND diff<0;

A3:=COUNT(底背离,BARSLAST(DEA>=0));

STICKLINE(底背离,0,HHV(MACD,500),6,0),colorred;

DRAWLINE(A1=0, MIN(REF(DIFF,A1+1), REF(DIFF,A1+2),REF(DIFF,A1+3),REF(DIFF,A1+4)),底背离,LLV(DIFF,3),0),colorred;

//DRAWTEXT(底背离,0.12,' '+a3+'次背离'),COLORFF00FF;

A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));

顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF);

DRAWLINE(A2=0,DEA,顶背离,DEA,0),colorgreen;

建仓:IF(底背离,A3*HHV(MACD,500),0),colorred;

同花顺MACD底背离买点指标公式

股票公式结合软件的应用属于进阶阶段的股票学了,我们整理网上提出的同花顺MACD底背离买点指标公式的问题一些解决方案仅供辅助你学习同花顺公式参考,具体内容可能需要具体解决或者找网上其他高手帮忙,也感谢文字和图片来源于股旁网的一些资源分享,帮助新手快速学习提高炒股技能。

声明:同花顺MACD底背离买点指标公式的文字和图片来源于网络,版权归原作者所有,仅代表个人观点,于本站无关。

随便说说

评论精选

    还没有相关评论,快来抢沙发吧!