通达信MACD变色公式(通达信区间涨幅公式)
内容导航:
Q1:求变色MACD指标代码?通达信变色MACD指标和博易大师变色MACD指标,谢谢朋友们!
1、通达信变色MACD指标
DIFIF1:=EMA(C,12) - EMA(C,26);
DEAEA1:=EMA(DIFIF1,9);
MACD1:=2*(DIFIF1-DEAEA1),STICK;
MACD2:=EMA(MACD1,3);
STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,1,0),COLORRED;
STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,1,0),COLORGREEN;
STICKLINE(MACD1<MACD2,0,MACD1,1,0),COLORCBCBC0;
STICKLINE(MACD1>=0 OR MACD1<=0,0,0,50,1),COLORWHITE;
DIFIF1,COLORFFFFFF,LINETHICK2;
DEAEA1,COLORYELLOW,LINETHICK2;
MACD:MACD1,NODRAW,COLORMAGENTA;
上升:IF(DEAEA1>REF(DEAEA1,1),DEAEA1,DRAWNULL),COLORYELLOW,LINETHICK2;
下降:IF(DEAEA1<REF(DEAEA1,1),DEAEA1,DRAWNULL),COLOR227700,LINETHICK2;
上翘:IF(DIFIF1>REF(DIFIF1,1),DIFIF1,DRAWNULL),COLORFFFFFF,LINETHICK2;
下拐:IF(DIFIF1<REF(DIFIF1,1),DIFIF1,DRAWNULL),COLOR227700,LINETHICK2;
DRAWICON(CROSS(DIFIF1,DEAEA1),DEAEA1*1.00,5);
DRAWICON(CROSS(DEAEA1,DIFIF1),DEAEA1*1.00,6);
2、博易大师变色MACD指标
DIFIF1:=EMA(C,12)-EMA(C,26);
DEAEA1:=EMA(DIFIF1,9);
MACD1:=2*(DIFIF1-DEAEA1),STICK;
MACD:2*(DIFIF1-DEAEA1),COLORSTICK;
PARTLINE(DEAEA1>REF(DEAEA1,1),DEAEA1),COLORYELLOW,LINETHICK2;
PARTLINE(DEAEA1<REF(DEAEA1,1),DEAEA1),COLOR008800,LINETHICK2;
PARTLINE(DIFIF1>REF(DIFIF1,1),DIFIF1),COLORFFFFFF,LINETHICK2;
PARTLINE(DIFIF1<REF(DIFIF1,1),DIFIF1),COLOR008800,LINETHICK2;
DRAWICON(CROSS(DIFIF1,DEAEA1),DEAEA1*1.00,1);
DRAWICON(CROSS(DEAEA1,DIFIF1),DEAEA1*1.00,2);
Q2:求助:通达信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:"MACD.DIF",COLORWHITE;
_DEA:"MACD.DEA",COLORYELLOW;
__强度:IF(_DIF>_DEA,_DIF,DRAWNULL),COLORRED,LINETHICK2;
_强度:IF(_DEA<_DIF,_DEA,DRAWNULL),COLORMAGENTA,LINETHICK2;
DRAWTEXT(ABS(_抄底)>0,_抄底*1.20,' 抄底'),COLORYELLOW;
DRAWICON(ABS(_抄底)>0,_抄底*1.10,4);
DRAWICON(CROSS(_DIF,_DEA),_DEA,1);
DRAWICON(CROSS(_DEA,_DIF),_DEA,2);
Q3:有哪个高手帮我把通达信macd改个公式颜色
没发源码的话,就不叫改颜色了,得重新编。
Q4:求通达信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;
Q5:通达信区间涨幅统计榜公式?
这个不需要什么公式吧,通达信自带涨跌幅统计,快捷键.403。如果单个新股,直接按空格键,在开头和结尾各按一次,就可以统计了。公式估计满足不了你那两个条件吧。。。
Q6:如何把通达信软件中的涨停个股K线设置成黄色?谢谢!
TT:=C/REF(C,1)>=1.095 AND C=H;
STICKLINE(TT,0,C,3,0),COLORYELLOW;
没测试,不会整扣我!
Q7:请教在通达信主图上用黄色、深黄色和绿色、深绿色分别标注涨停、曾涨停和跌停、曾跌停的K线公式,多谢!
可以通过编写主图公式指标实现k线改变颜色。
效果如下图
因颜色可能不明显所以再meigenuk线下做了文字标注,这文字标注可以是删除。
本文由锦鲤发布,不代表本站立场,转载联系作者并注明出处:/showinfo-4-146848-0.html