MACD杀手源码 副图 通达信 贴图

DIF:(EMA(CLOSE,3) - EMA(CLOSE,7)),COLORRED,NODRAW; DEA:EMA(DIF,3),COLOR00FFFF,NODRAW; MACD:2*(DIF-DEA),NODRAW; DIFK:=EMA(DIF,3); DIFD:=EMA(DIFK,3); DKK:4*DIF-3*DEA,COLORFF00FF,NODRAW; DDD:EMA(DKK,5),COLOR2588FF,NODRAW; TRLSX1:= MAX(MAX((HHV(DIF,13)-LLV(DIF,13)),ABS(REF(DIF,1)-HHV(DIF,13))),ABS(REF(DIF,1)-LLV(DIF,13))); TRLSX2:=EMA(TRLSX1,13); TRLSX3:=REF(DIF,1)-REF(TRLSX2,1); 支撑:HHV(TRLSX3,13),COLORFFFFFF,NODRAW; RSV14:=(CLOSE - LLV(LOW,5))/(HHV(HIGH,5) - LLV(LOW,5))-0.5; K14:=EMA(RSV14,3),COLORFF00FF,NODRAW; D14:=EMA(K14,3),COLORGREEN,NODRAW; J14:=3*K14-2*D14; DRAWBAND(DIF,RGB(200,50,55),DEA,RGB(50,100,10)); MACDXG2:=REF(COUNT(DIF>0 AND MACD<0 AND MACD<REF(MACD,1),4)=4,1) AND MACD>REF(MACD,1); STICKLINE(MACDXG2,MACD*1.2,0,2.8,0),COLORRED; STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,1.8,0),COLOR000055; STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,1.1,0),COLOR000099; STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,0.6,0),COLOR0000BB; STICKLINE(MACD<=REF(MACD,1) AND MACD>0,0,MACD,1.8,0),COLOR888888; STICKLINE(MACD<=REF(MACD,1) AND MACD>0,0,MACD,1.1,0),COLORBBBBBB; STICKLINE(MACD<=REF(MACD,1) AND MACD>0,0,MACD,0.6,0),COLORDDDDDD; STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD,1.8,0),COLOR3377AA; STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD,1.1,0),COLOR3388BB; STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD,0.6,0),COLOR4499CC; STICKLINE(MACD<=REF(MACD,1) AND MACD<0,0,MACD,1.8,0),COLORFF3300; STICKLINE(MACD<=REF(MACD,1) AND MACD<0,0,MACD,1.1,0),COLORFF5500; STICKLINE(MACD<=REF(MACD,1) AND MACD<0,0,MACD,0.6,0),COLORFF7700; STICKLINE(J14<-0.5,0,0.15,1.8,0),COLORFF00FF; 支撑,COLORFFFFFF; IF(C>0,DIF,DRAWNULL),COLORRED,LINETHICK1; IF(C>0,DEA,DRAWNULL),COLOR00FFFF,LINETHICK1; IF(DEA<REF(DEA,1),DEA,DRAWNULL),COLORBE7F6F,LINETHICK1; IF(DIF<=REF(DIF,1),DIF,DRAWNULL),COLORBLUE,LINETHICK1; IF(C,DKK,DRAWNULL),COLORFF00FF,LINETHICK1; IF(DKK<=REF(DKK,1),DKK,DRAWNULL),COLORCYAN,LINETHICK1; IF(C,DDD,DRAWNULL),COLOR2255FF,LINETHICK1; IF(DDD<=REF(DDD,1),DDD,DRAWNULL),COLOR33FF33,LINETHICK1; KDJXG:=REF(COUNT(J14<REF(J14,1),5)>=3,1) AND REF(J14,1)<-0.4 AND J14>REF(J14,1); DRAWICON(FILTER(KDJXG,3),MACD*1.2,11),COLORFF00EE; 准备介入点:=REF(CROSS(0,MACD),3) AND COUNT(DIF>0 AND MACD<REF(MACD,1),4)=4 ; DRAWICON(准备介入点,0.05,9);



来函数检测结果如下:
该公式没有未来函数


解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式

输出DIF:(收盘价的3日指数移动平均 - 收盘价的7日指数移动平均),画红色,NODRAW
输出DEA:DIF的3日指数移动平均,COLOR00FFFF,NODRAW
输出MACD:2*(DIF-DEA),NODRAW
DIFK:=DIF的3日指数移动平均
DIFD:=DIFK的3日指数移动平均
输出DKK:4*DIF-3*DEA,COLORFF00FF,NODRAW
输出DDD:DKK的5日指数移动平均,COLOR2588FF,NODRAW
TRLSX1赋值: MAX(MAX((13日内DIF最高值-13日内DIF最低值),1日前的DIF-13日内DIF最高值的绝对值),ABS(1日前的DIF-13日内DIF最低值))
TRLSX2赋值:TRLSX1的13日指数移动平均
TRLSX3赋值:1日前的DIF-1日前的TRLSX2
输出支撑:13日内TRLSX3最高值,COLORFFFFFF,NODRAW
RSV14赋值:(收盘价 - 5日内最低价最低值)/(5日内最高价最高值 - 5日内最低价最低值)-0.5
K14赋值:RSV14的3日指数移动平均,COLORFF00FF,NODRAW
D14赋值:K14的3日指数移动平均,画绿色,NODRAW
J14赋值:3*K14-2*D14
DRAWBAND(DIF,RGB(200,50,55),DEA,RGB(50,100,10))
MACDXG2:=REF(COUNT(DIF>0 AND MACD<0 AND MACDREF(MACD,1)
当满足条件MACDXG2时,在MACD*1.2和0之间画柱状线
STICKLINE(MACD>1日前的MACD AND MACD>0,0,MACD,1.8,0),COLOR000055
STICKLINE(MACD>1日前的MACD AND MACD>0,0,MACD,1.1,0),COLOR000099
STICKLINE(MACD>1日前的MACD AND MACD>0,0,MACD,0.6,0),COLOR0000BB
STICKLINE(MACD<=1日前的MACD AND MACD>0,0,MACD,1.8,0),COLOR888888
STICKLINE(MACD<=1日前的MACD AND MACD>0,0,MACD,1.1,0),COLORBBBBBB
STICKLINE(MACD<=1日前的MACD AND MACD>0,0,MACD,0.6,0),COLORDDDDDD
STICKLINE(MACD>1日前的MACD AND MACD<0,0,MACD,1.8,0),COLOR3377AA
STICKLINE(MACD>1日前的MACD AND MACD<0,0,MACD,1.1,0),COLOR3388BB
STICKLINE(MACD>1日前的MACD AND MACD<0,0,MACD,0.6,0),COLOR4499CC
STICKLINE(MACD<=1日前的MACD AND MACD<0,0,MACD,1.8,0),COLORFF3300
STICKLINE(MACD<=1日前的MACD AND MACD<0,0,MACD,1.1,0),COLORFF5500
STICKLINE(MACD<=1日前的MACD AND MACD<0,0,MACD,0.6,0),COLORFF7700
当满足条件J14<-0.5时,在0和0.15之间画柱状线
支撑,COLORFFFFFF
如果C>0返回DIF否则返回DRAWNULL
如果C>0返回DEA否则返回DRAWNULL
IF(DEA<1日前的DEA,DEA,DRAWNULL),COLORBE7F6F, 线宽为1
IF(DIF<=1日前的DIF,DIF,DRAWNULL), 画蓝色, 线宽为1
如果C返回DKK否则返回DRAWNULL
IF(DKK<=1日前的DKK,DKK,DRAWNULL),画青色, 线宽为1
如果C返回DDD否则返回DRAWNULL
IF(DDD<=1日前的DDD,DDD,DRAWNULL),COLOR33FF33, 线宽为1
KDJXG赋值:REF(COUNT(J14=3,1) AND REF(J14,1)<-0.4 AND J14>REF(J14,1)
DRAWICON(KDJXG的3过滤,MACD*1.2,11),COLORFF00EE
准备介入点赋值:3日前的0上穿MACD AND COUNT(DIF>0 AND MACD<1日前的MACD,4)=4
当满足条件准备介入点时,在0.05和9之间画图标

指标安装下载帮助  |   联系我们  |  指标公式网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 浙ICP备2024071487号-2 指标公式网别名指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
免责声明:指标公式网所有指标公式及文章由网络收集,不保障实时性和真实性, 仅供学习研究并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。
QQ:88652583 微信 88652583
sitemap站点地图