同花顺五彩买卖指标公式

 

DIFF :EMA(CLOSE,3) - 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
置顶指标

相关指标公式

输出DIFF :收盘价的3日指数移动平均 - 收盘价的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,DIFFFILLRGN(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站点地图