当前位置:→ 股海网飞狐公式 → 正文
  • 飞狐MACD加有KDJ RSI金死叉提示源码副图

  • 相关简介:MACD是经典指标,MACD属于趋势类指标,一般来说比较稳定,能过滤一般无用的信号。MACD的参数可以改,因为以前是每周6个交易日,现在是5个交易日,12是两周,26是每30天减4个周日,9是1周半。按现在的5个交易日改:10 22 7.5。大小周期与K线结合着看。 {草根 MACD} DIFF:EMA(CLOSE,10) - EMA(CLOSE,22),LINETHICK0; DEA :EMA(DIFF,7.5),LINETHICK0; MACD :2*(DIFF-DEA),LINETHICK

  • 文章来源:股海网作者:股海网发布时间:2015-08-05浏览次数:下载次数:0

MACD是经典指标,MACD属于趋势类指标,一般来说比较稳定,能过滤一般无用的信号。MACD的参数可以改,因为以前是每周6个交易日,现在是5个交易日,12是两周,26是每30天减4个周日,9是1周半。按现在的5个交易日改:10 22 7.5。大小周期与K线结合着看。
{草根 MACD}
DIFF:EMA(CLOSE,10) - EMA(CLOSE,22),LINETHICK0;
DEA :EMA(DIFF,7.5),LINETHICK0;
MACD :2*(DIFF-DEA),LINETHICK0;
FILLRGN(DIFF>DEA,DIFF,DEA),ColorFF9DFF;
FILLRGN(DIFF<DEA,DIFF,DEA),ColorFF8A15;
PARTLINE(CROSS(DIFF,DEA) AND DIFF>0,DIFF),CIRCLEDOT,LINETHICK3,COLOR00ffff,pxup6;
PARTLINE(CROSS(DIFF,DEA) AND DIFF<0,DIFF),CROSSDOT,LINETHICK3,COLORff00FF,pxup6;
STICKLINE(MACD>0,0,MACD,3,0) ,COLOR0000FF;
STICKLINE(MACD<0,0,MACD,3,0) ,COLORFFF000;
趋势:=(5)*(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100),5,1))-(3)*(SMA(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100),5,1),3,1))-SMA(SMA(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100),5,1),3,1),2,1);
STICKLINE(趋势<=5,0,MACD,3,0) ,COLOR208FFF;
0,COLORFFFF00,LINETHICK1;
A1:=BARSLAST(ref(cross("macd.diff","macd.dea"),1));
B1:=ref(c,A1+1)>c and ref("macd.diff",A1+1)<"macd.diff" and cross("macd.diff","macd.dea");
DRAWTEXT(FILTER(B1>0,5),0,'MACD'),COLORGREEN,ALIGN0,pxDN15;
A2:=BARSLAST(ref(cross("kdj.k","kdj.d"),1));
B2:=ref(c,A2+1)>c and ref("kdj.k",A2+1)<"kdj.k" and cross("kdj.k","kdj.d");
DRAWTEXT(FILTER(B2>0,5),0,'KDJ'),COLORYELLOW,ALIGN0,pxDN35;
A3:=BARSLAST(ref(cross("RSI.RSI1","RSI.RSI2"),1));
B3:=ref(c,A3+1)>c and ref("RSI.RSI1",A3+1)<"RSI.RSI1" and cross("RSI.RSI1","RSI.RSI2");
DRAWTEXT(FILTER(B3>0,5),0,'RSI'),COLORCYAN,ALIGN0,pxDN55;
DRAWICON(FILTER(B1>0,5) or FILTER(B2>0,5) or FILTER(B3>0,5),0,12),ALIGN0,pxDN95;
C1:=BARSLAST(ref(cross("macd.dea","macd.diff"),1));
D1:=ref(c,C1+1)<c and ref("macd.diff",C1+1)>"macd.diff" and cross("macd.dea","macd.diff");
DRAWTEXT(FILTER(D1>0,5),0,'MACD'),COLORwhite,ALIGN0,pxUP25;
C2:=BARSLAST(ref(cross("kdj.d","kdj.k"),1));
D2:=ref(c,C2+1)<c and ref("kdj.k",C2+1)>"kdj.k" and cross("kdj.d","kdj.k");
DRAWTEXT(FILTER(D2>0,5),0,'KDJ'),COLORwhite,ALIGN0,pxUP45;
C3:=BARSLAST(ref(cross("RSI.RSI2","RSI.RSI1"),1));
D3:=ref(c,C3+1)<c and ref("RSI.RSI1",C3+1)>"RSI.RSI1" and cross("RSI.RSI2","RSI.RSI1");
DRAWTEXT(FILTER(D3>0,5),0,'RSI'),COLORMAGENTA,ALIGN0,pxUP65;
DRAWICON(FILTER(D1>0,5) or FILTER(D2>0,5) or FILTER(D3>0,5),0,10),ALIGN0,pxUP85;
G:=IF((SYSPARAM(1) = (BARSSINCE((C > 0)) + 1)),1,0);
DRAWTEXT(((G > 0) AND FILTER(B1>0,5)),0,'金叉'),color00fFEE,pxDN65,ALIGN2;
DRAWTEXT(((G > 0) AND FILTER(B2>0,5)),0,'金叉'),color00fFEE,pxDN65,ALIGN2;
DRAWTEXT(((G > 0) AND FILTER(B3>0,5)),0,'金叉'),color00fFEE,pxDN65,ALIGN2;
DRAWTEXT(((G > 0) AND FILTER(D1>0,5)),0,'死叉'),colorfFAAEE,pxUP75,ALIGN1;
DRAWTEXT(((G > 0) AND FILTER(D2>0,5)),0,'死叉'),colorfFAAEE,pxUP75,ALIGN1;
DRAWTEXT(((G > 0) AND FILTER(D3>0,5)),0,'死叉'),colorfFAAEE,pxUP75,ALIGN1;

飞狐MACD加有KDJ RSI金死叉提示源码副图

 ☟问题反馈 ☞┄┄┄┄┄┄┄┄┄┄→收藏资源:

飞狐MACD加有KDJ RSI金死叉提示源码副图

  • 下载资源所需积分

    0

  • 当前拥有积分

    0

上传会员: 
股海网
文件大小: 
Bytes
上传时间: 
2015-08-05
下载积分: 
-
免责声明: 
请仔细阅读并同意后才能下载
本附件为用户分享上传,股海网没有对文件进行验证,不能保证下载资源的准确性、安全性和完整性,也不保证下载资源能正常安装和使用,且下载后扣除的积分无法退还,除非您充分理解并完全接受本声明,否则您无权下载。
本站对提供下载的软件、指标、资料等不拥有任何权利,其版权归该下载资源的合法拥有者所有。本附件仅供学习和研究使用,不得用于商业或者非法用途,如有侵犯您的版权, 请参看 《股海网侵权处理流程》《股海网免责声明条款》
点击下载无反应时,更换主流浏览器重新登录操作,如360浏览器、Edge浏览器、谷歌浏览器,个别浏览器有不兼容现象。
勾选以下表示您已经阅读并同意以上声明才能下载本文件,扣除积分无法退还!
我已阅读所有条款规定, 请点我同意 所有条款内容!我自愿下载!
提示:如下载失败,请点关闭刷新此页面或提交问题反馈给管理员→
关闭

关于我们 - 联系我们 - 隐私政策 - 免责声明 - 下载帮助 - 广告合作 - SiteMap - TOP
增值电信业务经营ICP许可证:湘B2-20210269 湘ICP备09016573号-10 湘公网安备43108102000040号
Copyright © 2021 铭网科技,All Rights Reserved.