红绿柱抄底(通达信公式 副图 源码 测试图)

[复制链接]
查看63 | 回复0 | 2022-6-27 15:44:51 | 显示全部楼层 |阅读模式

 绿柱消失买入、红柱消失卖出

DIFF :=( EMA(CLOSE,12) - EMA(CLOSE,26))*100;
DEA  :=EMA(DIFF,9);
MACD :=2*(DIFF-DEA);
绿柱消失买入:STICKLINE(DIFF<0,0,DIFF,2,0),COLOR00FF00;
红柱消失卖出:STICKLINE(DIFF>=0,0,DIFF,2,0),COLORRED;
STICKLINE(DEA>=0,0,DEA,2,0),COLORBLUE;
STICKLINE(DEA<0,0,DEA,2,0),COLORYELLOW;
DRAWICON(CROSS(DIFF,DEA),DEA*1.1,1);
DRAWICON(CROSS(DEA,DIFF),DEA*1.1,2);
强1:IF(DIFF>DEA,DIFF,DRAWNULL),COLORRED;
强2:IF(DEA<DIFF,DEA,DRAWNULL),COLORMAGENTA;
抄底:=ABS((CROSS("MACD.DIF","MACD.DEA")
&&"MACD.DEA"<=-0.07)*"MACD.DIF")*1.09,COLORLIMAGENTA,LINETHICK2;
DRAWTEXT(ABS(抄底)>0,抄底,205),COLORFFFF00;
DRAWICON(ABS(抄底)>0,抄底,9);
 

202213112391943373.png

202213112391943373.png

202213112384680472.rar

1.78 KB, 下载次数: 0

售价: 2 金钱  [记录]  [购买]

202213112384680472.rar

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则