体育资讯网

您现在的位置是:首页 > 分类14 > 正文

分类14

macd买卖公式源码(macd公式详解)

hacker2022-07-05 14:43:21分类1452
本文目录一览:1、价值千万macd指标公式2、

本文目录一览:

价值千万macd指标公式

公式源代码如下macd买卖公式源码

DIFF:EMA(CLOSE,6)-EMA(CLOSE,16),ColorFFFF26;

DEA:EMA(DIFF,5),Color8A15FF;

MACD:=2*(DIFF-DEA);

对DIFF :0-(EMA(CLOSE,6) - EMA(CLOSE,16));

对DEA :0-(EMA(DIFF,5));

对称 : 0-(2*(DIFF-DEA)),STICK,ColorFF6060,LINETHICK1;

{D1:EMA(C,16)-EMA(C,6),Color26FF26;

E2:EMA(D1,5),ColorFF1EFF;};

STICKLINE(MACD=0,MACD,0,4,1),COLORF00FF0;

STICKLINE(MACD0,MACD,0,4,1),colorwhite;

STICKLINE(MACD0,0,MACD,10,0 ),Color00C4C4;

STICKLINE(MACD0,0,MACD,6.3,0 ),Color00EAEA;

STICKLINE(MACD0,0,MACD,2.2,0 ),Color0BFFFF;

STICKLINE(MACD0,0,MACD,1.65,0 ),Color46FFFF;

STICKLINE(MACD=REF(MACD,1)AND MACD0,0,MACD,8 ,0 ),Color0000BB;

STICKLINE(MACD=REF(MACD,1)AND MACD0,0,MACD,6.3 ,0 ),Color0000F0;

STICKLINE(MACD=REF(MACD,1)AND MACD0,0,MACD,2.2,0 ),Color1111FF;

STICKLINE(MACD=REF(MACD,1)AND MACD0,0,MACD,1.65 ,0 ),Color3535FF;

STICKLINE(MACDREF(MACD,1)AND MACD0,0,MACD,10,0 ),Color9B009B;

STICKLINE(MACDREF(MACD,1)AND MACD0,0,MACD,6.3 ,0 ),ColorCA00CA;

STICKLINE(MACDREF(MACD,1)AND MACD0,0,MACD,2.2,0 ),ColorF000F0;

STICKLINE(MACDREF(MACD,1)AND MACD0,0,MACD,1.65,0 ),ColorFF28FF;

STICKLINE(MACD=REF(MACD,1)AND MACD0,0,MACD,8,0 ),Color00AA00;

STICKLINE(MACD=REF(MACD,1)AND MACD0,0,MACD,6.3 ,0 ),Color00CE00;

STICKLINE(MACD=REF(MACD,1)AND MACD0,0,MACD,2.2,0 ),Color00F700;

STICKLINE(MACD=REF(MACD,1)AND MACD0,0,MACD,1.65 ,0 ),Color2DFF2D;

低位金叉:=CROSS(DIFF,DEA) AND DIFF-0.1;

STICKLINE(低位金叉,0,-0.18,10,0),ColorE8E8E8;

STICKLINE(低位金叉,0,-0.18,4,0),ColorF2F2F2;

STICKLINE(低位金叉,0,-0.18,2,0),ColorFFFFFF;

DRAWTEXT(低位金叉,-0.2,' 金叉'),ColorFFFFFF;

JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA=0));

二次金叉:=CROSS(DIFF,DEA) AND DEA0 AND COUNT(JCCOUNT=2,21)=1;

STICKLINE(二次金叉,0,-0.18,10,0),Color0042CC;

STICKLINE(二次金叉,0,-0.18,8,0),Color004FF2;

STICKLINE(二次金叉,0,-0.18,8,0),Color3375FF;

DRAWTEXT(二次金叉,-0.2,' 金叉二'),Color3375FF;

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

底背离:=REF(CLOSE,A1 1)CLOSE AND DIFFREF(DIFF,A1 1) AND CROSS(DIFF,DEA);

STICKLINE(底背离,0,0.13,10,0),ColorCECE00;

STICKLINE(底背离,0,0.13,4,0),ColorFFFF00;

STICKLINE(底背离,0,0.13,2,0),ColorFFFF44;

DRAWLINE(A1=0,DEA,底背离,DEA,0),ColorFFFFFF,linethick1;

DRAWTEXT(底背离,0.3,' 底背离'),ColorFFFF26;

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

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

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

编写一个通达信选股公式,MACD周线金叉

选股公式如下,选股周期选择周线,

DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);

DEA:=EMA(DIF,9);

XG:BARSLAST(CROSS(DIF,DEA))0 AND DIFDEA;

在期货交易中怎么运用MACD技术?

理论上的MACD使用方式这里就不说了,网上可以查到。我们通过MACD指标的编写源码可以分析出它是基于均线系统的指标,那么均线的构成是由大致的交易成本构成的,也就是MACD是衡量交易行为的指标,而交易行为是交易者对市场环境判断的反应,也就是指标会滞后于市场信息出现反应,这里不是说指标不准确,而是说指标是对市场环境的量化结果。交易行为中对市场环境的判断不能完全依赖于指标,但是完全离开指标也是不理性的。指标就想一把尺一样,它是测量工具,是辅助的 工具,但不能唯指标论。你要综合的分析标的商品的信息,通过指标进行量化辅助分析,最后得出判断结果。千万不能拘泥于简单的金叉死叉背离这些要素去简单的做出买卖判断,你要清楚出现这些信号的背后逻辑是什么。

发表评论

评论列表

  • 孤央时窥(2022-07-05 18:51:27)回复取消回复

    CD=REF(MACD,1)AND MACD0,0,MACD,6.3 ,0 ),Color00CE00;STICKLINE(MACD=REF(MACD,1)AND MACD0,0,MACD,2.2,0

  • 温人夙世(2022-07-06 00:41:57)回复取消回复

    TICKLINE(低位金叉,0,-0.18,4,0),ColorF2F2F2;STICKLINE(低位金叉,0,-0.18,2,0),ColorFFFFFF;DRAWTEXT(低位金叉,-0.2,' 金叉'),ColorFFF

  • 孤鱼邶谌(2022-07-05 23:14:13)回复取消回复

    EF(CLOSE,A2 1)DIFF AND CROSS(DEA,DIFF);DRAWLINE(A2=0,DEA,顶背离,DEA,0),colorgreen,linethick1;编写一个通达信选股公式,MACD周线金叉选股公式如下

  • 竹祭木白(2022-07-05 17:28:33)回复取消回复

    单的做出买卖判断,你要清楚出现这些信号的背后逻辑是什么。