[通达信] 优化版MACD红绿灯 通达信主图指标 源码 贴图

[复制链接]
查看92 | 回复0 | 2024-11-5 04:39:45 | 显示全部楼层 |阅读模式
优化版MACD红绿灯 通达信主图指标 源码 贴图
三只红灯,先亮一只买入,三只都灭,坚决卖出。其他要综合判断!
wp1.jpg

DIF:(EMA(CLOSE,12)-EMA(CLOSE,26))*100,COLORGREEN,LINETHICK1;
IF(DIF>=REF(DIF,1),DIF,DRAWNULL),COLORRED,LINETHICK2;
IF(DIF,5,DRAWNULL),COLORYELLOW,LINETHICK9;
IF(DIF>=REF(DIF,1),5,DRAWNULL),COLORRED,LINETHICK9;
IF(DIF<=REF(DIF,1),5,DRAWNULL),COLORGREEN,LINETHICK9;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,9,1);{WWW.GSZB.TOP}
D:=SMA(K,9,1);
J:3*K-2*D,COLORLIBLUE,LINETHICK1;
IF(J>=REF(J,1),J,DRAWNULL),COLORMAGENTA,LINETHICK2;
IF(J,10,DRAWNULL),COLORYELLOW,LINETHICK9;
IF(J>=REF(J,1),10,DRAWNULL),COLORRED,LINETHICK9;
IF(J<=REF(J,1),10,DRAWNULL),COLORGREEN,LINETHICK9;
MA5:=MA(C,5),COLORLIBLUE,LINETHICK1;
IF(MA5,15,DRAWNULL),COLORYELLOW,LINETHICK9;
IF(MA(C,5)>=REF(MA(C,5),1),15,DRAWNULL),COLORRED,LINETHICK9;
IF(MA(C,5)<REF(MA(C,5),1),15,DRAWNULL),COLORGREEN,LINETHICK9;

 

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

本版积分规则

89

主题

0

回帖

656

积分

职业

积分
656