求通达信K线和MACD背离时,MACD指标就变色或出现记号的码原。。。。

如题所述

{这都是答过的问题,网上搜搜};
DIFF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIFF,9);
MACD:2*(DIFF-DEA),COLORSTICK,LINETHICK2;
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);
底背:DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORRED,LINETHICK2;
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,LINETHICK2;
温馨提示:内容为网友见解,仅供参考
第1个回答  2012-05-11
在界面点击右键,再点专家指示,最后点MACD.

MACD背离指标通达信指标公式源码
{MACD背离指标}DIFF:EMA(CLOSE,12)-EMA(CLOSE,26),COLORWHITE; DEA:EMA(DIFF,9),COLORYELLOW; MACD:2*(DIFF-DEA),COLORSTICK; STICKLINE(MACD0,0,MACD,0,0),COLORYELLOW;STICKLINE(MACD>REF(MACD,1)ANDMACD<0,0,MACD,0,0),COLORGREEN; 低位金叉:=CROSS(DIFF,DEA)A...

求助:通达信MACD变色公式
_红柱:IF("MACD.MACD">REF("MACD.MACD",1),"MACD.MACD",DRAWNULL),STICK,COLORRED;绿柱:IF("MACD.MACD"<REF("MACD.MACD",1),"MACD.MACD",DRAWNULL),STICK,COLORYELLOW;_抄底:ABS((CROSS("MACD.DIF","MACD.DEA")&&"MACD.DEA"<=-0.07)*"MACD.DIF")*1.50,COLORLIMAGENTA;_DIF:"M...

求个macd只显示红绿柱的副图公式。通达信的!
MACD:(DIF-DEA)*2,COLORSTICK;参数结合系统指标添加即可.或直接使用下面的公式也可以。DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);MACD:(DIF-DEA)*2,COLORSTICK;

求MACD底背离选股公式源码
MACD底背离:通达信版、同花顺版 DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);QZQ:=BARSLAST(REF(MACD,1)<0 AND MACD>0);QM:=LLVBARS(MACD,QZQ+20);MQDZ:=IF(QM>QZQ,REF(MACD,QM),0);XG1:=MACD<0 AND MACD>MQDZ AND CLOSE=LLV(CLOSE,QZQ+20...

求变色MACD指标代码?通达信变色MACD指标和博易大师变色MACD指标,谢谢...
通达信的变色MACD指标代码是:上升的代码是:IF(DEAEA1>REF(DEAEA1,1),DEAEA1,DRAWNULL),COLORYELLOW,LINETHICK2;下降的代码是:IF(DEAEA1REF(DIFIF1,1),DIFIF1,DRAWNULL),COLORFFFFFF,LINETHICK2;下拐的代码是:IF(DIFIF1REF(DEAEA1,1),DEAEA1),COLORYELLOW,LINETHICK2;下降的代码是:...

求通达信中把MACD顶底背离信号叠加到分时主图上的公式源码
顶背离,你要确定一下是,dif的背离,还是,dea线的背离,还是macd柱子高低的背离.提示方式是画线提示还是文字提示还是图标提示例如下图中的是划线提示的

求通达信日线MACD底背离选股公式
A1:=BARSLAST(REF(CROSS(MACD.DIF,MACD.DEA),1));MACD底背:REF(C,A1+1)>C AND REF(MACD.DIF,A1+1)<MACD.DIF AND CROSS(MACD.DIF,MACD.DEA);(以前次金叉股价与现在金叉股价相比)

通达信kdj,macd,rsi的底背离副图指标源码黄色显示低吸,柱条变红显示...
例如macd背离可以是dif背离,可以是dea背离,还可以是macd柱高低背离面积背离。还可以是金叉位置背离,判断的位置条件,判断的内容条件,这些所有条件都说明清楚才能编写公式,而不是说个名字就可以编写公式了。例如下图有kdj背离,macd背离,rsi背离的主图指标,幅图指标,选股位置提示指标截图。

通达信macd指标源码
通达信macd指标源码是:DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);MACD:=(DIF-DEA)*2;T1:=COUNT(DEA0,20)=20;T2:=T1=1MACD0;XG:T2=1REF(T2,1)=0。要说macd指标怎么看?MACD指标中白线(DIFF)从下方往上穿过黄线(DEA)时,是一种买入的信号,即...

怎么把通达信软件MACD指标蓝色的柱状线变为绿色
EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);\\x0d\\x0aDEA:EMA(DIF,MID);\\x0d\\x0aMACD:(DIF-DEA)*2,NODRAW;\\x0d\\x0aSTICKLINE(MACD>=0,MACD,0,0,0),COLORRED;\\x0d\\x0aSTICKLINE(MACD<0,MACD,0,0,0),COLORGREEN;\\x0d\\x0a\\x0d\\x0a用上面的换掉系统自带的macd公式内容另存下就...

相似回答