公式网 股票指标公式源码分享 登录 注册
公式指标平网
未来函数检测
首页 金钻指标 通达信公式 大智慧公式 同花顺公式 文华财经公式 东财通公式 飞狐公式 操盘手公式 其他公式 公式解答 股票软件 股票池
当前位置:→ 公式网 > 飞狐公式 > 正文 → 正文

飞狐变色MACD叠加K线副图指标

发布时间:2016/3/24 5:46:14  浏览次数:

飞狐变色MACD叠加K线副图指标

源码

short:=12;long:=26;M:=9;

DIFF : (EMA(CLOSE,SHORT) - EMA(CLOSE,LONG)),linethick2,colorgreen;
DEA  : EMA(DIFF,M),colorcyan;
MACD:2*(DIFF-DEA), COLORSTICK;
tj:=(diff>dea);
tj1:=(diff>0);
PARTLINE(tj,diff),colormagenta,linethick2;

partline(tj1 and tj,diff),colorred,linethick2;
tj2:=diff<-1 and diff<-1;
partline(tj2,diff),colorblue,linethick2;
B1:=LLV(MACD,999999);
B2:=HHV(MACD,999999);
B3:=(B2-B1);
C1:=LLV(low,999999);
C2:=HHV(high,999999);
C3:=(C2-C1);
D:=B3/C3;

STICKLINE(open>=close ,(close-C1)*D+B1 ,(open-C1)*D+B1,9,0 ),COLORaaaaaa;
STICKLINE(open>=close ,(close-C1)*D+B1 ,(open-C1)*D+B1,6,0 ),COLORbbbbbb;
STICKLINE(open>=close ,(close-C1)*D+B1 ,(open-C1)*D+B1,2.4,0 ),COLORcccccc;
STICKLINE(open>=close ,(close-C1)*D+B1 ,(open-C1)*D+B1,1.1,0 ),COLORdddddd;

STICKLINE(close>open,(close-C1)*D+B1,(open-C1)*D+B1,9,0 ),COLOr6666cc;
STICKLINE(close>open,(close-C1)*D+B1,(open-C1)*D+B1,6 ,0 ),COLOR7777dd;
STICKLINE(close>open,(close-C1)*D+B1,(open-C1)*D+B1,2.4 ,0 ),COLOR8888ee;
STICKLINE(close>open,(close-C1)*D+B1,(open-C1)*D+B1,1.1 ,0 ),COLOR9999ff;

STICKLINE(close>open,(open-C1)*D+B1,(low-C1)*D+B1,0.5,0 ),COLOR1199ff;
STICKLINE(close>open,(close-C1)*D+B1,(HIGH-C1)*D+B1,0.5 ,0 ),COLOR1199ff;
STICKLINE(open>=close,(close-C1)*D+B1,(low-C1)*D+B1,0.5 ,0 ),COLORcccccc;
STICKLINE(open>=close,(open-C1)*D+B1,(HIGH-C1)*D+B1,0.5 ,0 ),COLORccccc;

 飞狐变色MACD叠加K线副图指标

资源下载链接   资源大小:unknow

手机移动版 - 关于我们 - 联系我们 - 广告合作 - 下载声明 - 网站帮助 - 友情链接 - 网站地图 - TOP
湘ICP备09016573号-3 增值电信业务经营ICP许可证:湘B2-20210269 湘公网安备43108102000039号
Copyright © GSZX.COM.CN ,All Rights Reserved.
股票公式,股票指标,股票软件,股票知识