同花顺变色带MACD指标公式

 

long:=26;short:=12;m:=9;
DIFF :=EMA(CLOSE,12) - EMA(CLOSE,26),LAYER0;
DEA :=EMA(DIFF,9),LAYER0;
macd : 2*(DIFF-DEA),COLORSTICK,LAYER0;
主升 := DIFF>0 AND DIFF>DEA,COLORffffff,POINTDOT,LINETHICK0;
FILLRGN(DIFF,DEA,DIFF>DEA AND DIFF>REF(DIFF,1),color0999ff,DIFF>DEA AND DIFF<REF(DIFF,1),colorff3303);
FILLRGN(DIFF,DEA,主升 AND DIFF>DEA AND DIFF>REF(DIFF,1),color0333ff,主升 AND DIFF>DEA AND DIFF<REF(DIFF,1),colorff3303);
//{ _最新股票指标公式}
FILLRGN(DIFF,DEA,DIFF<DEA AND DIFF>REF(DIFF,1),colorFFFFFF,DIFF<DEA AND DIFF<REF(DIFF,1),color111111);
PARTLINE(DIFF,DIFF>REF(DIFF,1),color333333,DIFF<REF(DIFF,1),color444444),LINETHICK1;
PARTLINE(DEA,DEA>REF(DEA,1),color333333,DEA<REF(DEA,1),color444444),LINETHICK1;




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


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

相关指标公式

LONG赋值:26
SHORT赋值:12
M赋值:9
赋值:收盘价的12日指数移动平均 - 收盘价的26日指数移动平均,LAYER0
赋值:DIFF的9日指数移动平均,LAYER0
输出平滑异同平均线 : 2*(DIFF-DEA),COLORSTICK,LAYER0
赋值: DIFF>0 AND DIFF>DEA,COLORFFFFFF,POINTDOT,线宽为0
FILLRGN(DIFF,DEA,DIFF>DEA AND DIFF>1日前的DIFF,COLOR0999FF,DIFF>DEA AND DIFF<1日前的DIFF,COLORFF3303)
FILLRGN(DIFF,DEA,主升 AND DIFF>DEA AND DIFF>1日前的DIFF,COLOR0333FF,主升 AND DIFF>DEA AND DIFF<1日前的DIFF,COLORFF3303)
//FILLRGN(DIFF,DEA,DIFF1日前的DIFF,COLORFFFFFF,DIFF[新]条件颜色线,线宽为1
[新]条件颜色线,线宽为1

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

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