同花顺MACD彩色面积副图源码

 

1,粉红是多头上涨,不做卖出
2,大红是空头反弹
3,绿色是多头回调
4,蓝色是空头下跌,不做买入
5,白色为原速率开始减缓,后续有可能会出现变盘点,以金叉或死叉为变盘点
6,配合KDJ或DMI指标

DIFF :EMA(CLOSE,12) - EMA(CLOSE,26),colorwhite;
 DEA :EMA(DIFF,9),coloryellow;
 MACD : 2*(DIFF-DEA);
 ZERO:0;
 DRAWICON(CROSS(DIFF,DEA),DEA*1.02,1);
 DRAWICON(CROSS(DEA,DIFF),DEA*0.98,2);
 FILLRGN(DIFF,DEA,DIFF>DEA AND DIFF>0 AND DIFF>REF(DIFF,1) AND DEA>REF(DEA,1),colorlired);
 FILLRGN(DIFF,DEA,DIFF>DEA AND DIFF>0 AND DIFF>REF(DIFF,1) AND DEA<REF(DEA,1),colorwhite);
 FILLRGN(DIFF,DEA,DIFF>DEA AND DIFF>0 AND DIFF<=REF(DIFF,1) AND DEA>REF(DEA,1),colorwhite);
 FILLRGN(DIFF,DEA,DIFF>DEA AND DIFF>0 AND DIFF<=REF(DIFF,1) AND DEA<REF(DEA,1),colorwhite);
 FILLRGN(DIFF,DEA,DIFF>DEA AND DIFF<0 AND DIFF>REF(DIFF,1) AND DEA>REF(DEA,1),colorred);
 FILLRGN(DIFF,DEA,DIFF>DEA AND DIFF<0 AND DIFF>REF(DIFF,1) AND DEA<REF(DEA,1),colorwhite);
 FILLRGN(DIFF,DEA,DIFF>DEA AND DIFF<0 AND DIFF<=REF(DIFF,1) AND DEA>REF(DEA,1),colorwhite);
 FILLRGN(DIFF,DEA,DIFF>DEA AND DIFF<0 AND DIFF<=REF(DIFF,1) AND DEA<REF(DEA,1),colorwhite);
 FILLRGN(DIFF,DEA,DIFF<DEA AND DIFF>0 AND DIFF<REF(DIFF,1) AND DEA>REF(DEA,1),colorwhite);
 FILLRGN(DIFF,DEA,DIFF<DEA AND DIFF>0 AND DIFF<REF(DIFF,1) AND DEA<REF(DEA,1),colorgreen);
 FILLRGN(DIFF,DEA,DIFF<DEA AND DIFF>0 AND DIFF>=REF(DIFF,1) AND DEA>REF(DEA,1),colorwhite);
 FILLRGN(DIFF,DEA,DIFF<DEA AND DIFF>0 AND DIFF>=REF(DIFF,1) AND DEA<REF(DEA,1),colorwhite);
 FILLRGN(DIFF,DEA,DIFF<DEA AND DIFF<0 AND DIFF<REF(DIFF,1) AND DEA>REF(DEA,1),colorwhite);
 FILLRGN(DIFF,DEA,DIFF<DEA AND DIFF<0 AND DIFF<REF(DIFF,1) AND DEA<REF(DEA,1),colorblue);
 FILLRGN(DIFF,DEA,DIFF<DEA AND DIFF<0 AND DIFF>=REF(DIFF,1) AND DEA>REF(DEA,1),colorwhite);
 FILLRGN(DIFF,DEA,DIFF<DEA AND DIFF<0 AND DIFF>=REF(DIFF,1) AND DEA<REF(DEA,1),colorwhite);





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


解密、定制、编写公式指标请联系QQ或微信同号:88652583
置顶指标

相关指标公式

1,粉红是多头上涨,不做卖出2,大红是空头反弹3,绿色是多头回调4,蓝色是空头下跌,不做买入5,白色为原速率开始减缓,后续有可能会出现变盘点,以金叉或死叉为变盘点6,配合KDJ或DMI指标DIFF :收盘价的12日指数移动平均 - 收盘价的26日指数移动平均,画白色
输出 DEA :DIFF的9日指数移动平均,画黄色
输出 平滑异同平均线 : 2*(DIFF-DEA)
输出 ZERO:0
当满足条件DIFF上穿DEA时,在DEA*1.02位置画1号图标
当满足条件DEA上穿DIFF时,在DEA*0.98位置画2号图标
FILLRGN(DIFF,DEA,DIFF>DEA AND DIFF>0 AND DIFF>1日前的DIFF AND DEA>1日前的DEA,画淡红色)
FILLRGN(DIFF,DEA,DIFF>DEA AND DIFF>0 AND DIFF>1日前的DIFF AND DEA<1日前的DEA,画白色)
FILLRGN(DIFF,DEA,DIFF>DEA AND DIFF>0 AND DIFF<=1日前的DIFF AND DEA>1日前的DEA,画白色)
FILLRGN(DIFF,DEA,DIFF>DEA AND DIFF>0 AND DIFF<=1日前的DIFF AND DEA<1日前的DEA,画白色)
FILLRGN(DIFF,DEA,DIFF>DEA AND DIFF<0 AND DIFF>1日前的DIFF AND DEA>1日前的DEA,画红色)
FILLRGN(DIFF,DEA,DIFF>DEA AND DIFF<0 AND DIFF>1日前的DIFF AND DEA<1日前的DEA,画白色)
FILLRGN(DIFF,DEA,DIFF>DEA AND DIFF<0 AND DIFF<=1日前的DIFF AND DEA>1日前的DEA,画白色)
FILLRGN(DIFF,DEA,DIFF>DEA AND DIFF<0 AND DIFF<=1日前的DIFF AND DEA<1日前的DEA,画白色)
FILLRGN(DIFF,DEA,DIFF0 AND DIFF<1日前的DIFF AND DEA>1日前的DEA,画白色)
FILLRGN(DIFF,DEA,DIFF0 AND DIFF<1日前的DIFF AND DEA<1日前的DEA,画绿色)
FILLRGN(DIFF,DEA,DIFF0 AND DIFF>=1日前的DIFF AND DEA>1日前的DEA,画白色)
FILLRGN(DIFF,DEA,DIFF0 AND DIFF>=1日前的DIFF AND DEA<1日前的DEA,画白色)
FILLRGN(DIFF,DEA,DIFF1日前的DEA,画白色)
FILLRGN(DIFF,DEA,DIFF FILLRGN(DIFF,DEA,DIFF=1日前的DIFF AND DEA>1日前的DEA,画白色)
FILLRGN(DIFF,DEA,DIFF=1日前的DIFF AND DEA<1日前的DEA,画白色)

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

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