同花顺MACD能量操盘指标公式

 

DIFF : EMA(CLOSE,12) - EMA(CLOSE,26),colorwhite;
DEA : EMA(DIFF,9),coloryellow;
macd:2*(DIFF-DEA);
Zero : 0;
gj:=MAX(C,O);
STICKLINE(MacD>0 AND MACD>=REF(MACD,1),0,MACD,1,0),color0000ff;
STICKLINE(MACD>0 AND MACD<REF(MACD,1),0,MACD,1,0),colorffff00;
STICKLINE(MACD<0 AND MACD>=REF(MACD,1),0,MACD,1,0),colorff00ff;
STICKLINE(MACD<0 AND MACD<REF(MACD,1),0,MACD,1,0),color00ff00;
L4:=LLV(gj,4);
H4:=HHV(gj,4);
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
置顶指标

相关指标公式

输出DIFF : 收盘价的12日指数移动平均 - 收盘价的26日指数移动平均,画白色
输出DEA : DIFF的9日指数移动平均,画黄色
输出平滑异同平均线:2*(DIFF-DEA)
输出ZERO : 0
GJ赋值:收盘价和开盘价的较大值
当满足条件MACD>0ANDMACD>=1日前的MACD时,在0和MACD位置之间画柱状线,宽度为1,0不为0则画空心柱.,COLOR0000FF
当满足条件MACD>0ANDMACD<1日前的MACD时,在0和MACD位置之间画柱状线,宽度为1,0不为0则画空心柱.,COLORFFFF00
当满足条件MACD<0ANDMACD>=1日前的MACD时,在0和MACD位置之间画柱状线,宽度为1,0不为0则画空心柱.,COLORFF00FF
当满足条件MACD<0ANDMACD<1日前的MACD时,在0和MACD位置之间画柱状线,宽度为1,0不为0则画空心柱.,COLOR00FF00
L4赋值:4日内GJ的最低值
H4赋值:4日内GJ的最高值
LONG赋值:26
SHORT赋值:12
M赋值:9
赋值:收盘价的12日指数移动平均 - 收盘价的26日指数移动平均,LAYER0
赋值:DIFF的9日指数移动平均,LAYER0
输出MACD : 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站点地图