通达信K线+MACD指标公式

 

DIFF : EMA(CLOSE,12) - EMA(CLOSE,26);
DEA : EMA(DIFF,9);
macd : 2*(DIFF-DEA);
STICKLINE(MacD>0,MACD,0,0.5,1),COLORRED;
STICKLINE(MACD<0,MACD,0,0.5,1),COLORGREEN;
STICKLINE(MACD>0 AND MACD<REF(MACD,1),MACD,0,0.5,1),COLORWHITE;
STICKLINE(MACD<0 AND MACD>REF(MACD,1),MACD,0,0.5,1),COLORFF00FF;
绿柱面积:IF (MACD<0,SUM(MACD,BArslAST(MACD>0)),0),nodraw,colorgreen;
红柱面积:IF (MACD>0,SUM(MACD,BARSLAST(MACD<0)),0),nodraw,Colorred;
{ _最新股票指标公式}
DRAWTEXT(crOSS(diff,80),diff,'强'),COLORRED;
DRAWTEXT(CROSS(-80,diff),diff,'弱'),COLORGREEN;
DRAWTEXT(CROSS(diff,-80),diff,'强'),COLORRED;
DRAWTEXT(CROSS(80,diff),diff,'弱'),COLORGREEN;
DRAWTEXT(CROSS(diff,30),diff,'强'),COLORRED;
DRAWTEXT(CROSS(-30,diff),diff,'弱'),COLORGREEN;
DRAWTEXT(CROSS(diff,-30),diff,'强'),COLORRED;
DRAWTEXT(CROSS(30,diff),diff,'弱'),COLORGREEN;
DRAWTEXT(CROSS(diff,50),diff,'强'),COLORRED;
DRAWTEXT(CROSS(-50,diff),diff,'弱'),COLORGREEN;
DRAWTEXT(CROSS(diff,-50),diff,'强'),COLORRED;
DRAWTEXT(CROSS(50,diff),diff,'弱'),COLORGREEN;
DRAWTEXT(CROSS(diff,80),diff,'强'),COLORRED;
DRAWTEXT(CROSS(-8,diff),diff,'弱'),COLORGREEN;
DRAWTEXT(CROSS(diff,-8),diff,'强'),COLORRED;
DRAWTEXT(CROSS(8,diff),diff,'弱'),COLORGREEN;
DRAWTEXT(CROSS(diff,5),diff,'强'),COLORRED;
DRAWTEXT(CROSS(-50,diff),diff,'弱'),COLORGREEN;
DRAWTEXT(CROSS(diff,-5),diff,'强'),COLORRED;
DRAWTEXT(CROSS(5,diff),diff,'弱'),COLORGREEN;
DRAWTEXT(CROSS(diff,3),diff,'强'),COLORRED;
DRAWTEXT(CROSS(-3,diff),diff,'弱'),COLORGREEN;
DRAWTEXT(CROSS(diff,-3),diff,'强'),COLORRED;
DRAWTEXT(CROSS(3,diff),diff,'弱'),COLORGREEN;
DRAWTEXT(CROSS(diff,10),diff,'强'),COLORRED;
DRAWTEXT(CROSS(-10,diff),diff,'弱'),COLORGREEN;
DRAWTEXT(CROSS(diff,-10),diff,'强'),COLORRED;
DRAWTEXT(CROSS(10,diff),diff,'弱'),COLORGREEN;
DRAWTEXT(CROSS(diff,1),diff,'强'),COLORRED;
DRAWTEXT(CROSS(-1,diff),diff,'弱'),COLORGREEN;
DRAWTEXT(CROSS(diff,-1),diff,'强'),COLORRED;
DRAWTEXT(CROSS(1,diff),diff,'弱'),COLORGREEN;
DRAWTEXT(CROSS(diff,2),diff,'强'),COLORRED;
DRAWTEXT(CROSS(-2,diff),diff,'弱'),COLORGREEN;
DRAWTEXT(CROSS(diff,-2),diff,'强'),COLORRED;
DRAWTEXT(CROSS(2,diff),diff,'弱'),COLORGREEN;
DRAWTEXT(CROSS(diff,20),diff,'强'),COLORRED;
DRAWTEXT(CROSS(-20,diff),diff,'弱'),COLORGREEN;
DRAWTEXT(CROSS(diff,-20),diff,'强'),COLORRED;
DRAWTEXT(CROSS(20,diff),diff,'弱'),COLORGREEN;




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


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

相关指标公式

输出DIFF : 收盘价的12日指数移动平均 - 收盘价的26日指数移动平均
输出DEA : DIFF的9日指数移动平均
输出平滑异同平均线 : 2*(DIFF-DEA)
当满足条件平滑异同平均线>0时,在平滑异同平均线和0位置之间画柱状线,宽度为0.5,1不为0则画空心柱.,画红色
当满足条件平滑异同平均线<0时,在平滑异同平均线和0位置之间画柱状线,宽度为0.5,1不为0则画空心柱.,画绿色
当满足条件平滑异同平均线>0ANDMACD<1日前的平滑异同平均线时,在平滑异同平均线和0位置之间画柱状线,宽度为0.5,1不为0则画空心柱.,画白色
当满足条件平滑异同平均线<0ANDMACD>1日前的平滑异同平均线时,在平滑异同平均线和0位置之间画柱状线,宽度为0.5,1不为0则画空心柱.,COLORFF00FF
输出绿柱面积:如果平滑异同平均线<0,返回平滑异同平均线的上次平滑异同平均线>0距今天数日累和,否则返回0,NODRAW,画绿色
输出红柱面积:如果平滑异同平均线>0,返回平滑异同平均线的上次平滑异同平均线<0距今天数日累和,否则返回0,NODRAW,画红色
当满足条件DIFF上穿80时,在DIFF位置书写文字,画红色
当满足条件-80上穿DIFF时,在DIFF位置书写文字,画绿色
当满足条件DIFF上穿-80时,在DIFF位置书写文字,画红色
当满足条件80上穿DIFF时,在DIFF位置书写文字,画绿色
当满足条件DIFF上穿30时,在DIFF位置书写文字,画红色
当满足条件-30上穿DIFF时,在DIFF位置书写文字,画绿色
当满足条件DIFF上穿-30时,在DIFF位置书写文字,画红色
当满足条件30上穿DIFF时,在DIFF位置书写文字,画绿色
当满足条件DIFF上穿50时,在DIFF位置书写文字,画红色
当满足条件-50上穿DIFF时,在DIFF位置书写文字,画绿色
当满足条件DIFF上穿-50时,在DIFF位置书写文字,画红色
当满足条件50上穿DIFF时,在DIFF位置书写文字,画绿色
当满足条件DIFF上穿80时,在DIFF位置书写文字,画红色
当满足条件-8上穿DIFF时,在DIFF位置书写文字,画绿色
当满足条件DIFF上穿-8时,在DIFF位置书写文字,画红色
当满足条件8上穿DIFF时,在DIFF位置书写文字,画绿色
当满足条件DIFF上穿5时,在DIFF位置书写文字,画红色
当满足条件-50上穿DIFF时,在DIFF位置书写文字,画绿色
当满足条件DIFF上穿-5时,在DIFF位置书写文字,画红色
当满足条件5上穿DIFF时,在DIFF位置书写文字,画绿色
当满足条件DIFF上穿3时,在DIFF位置书写文字,画红色
当满足条件-3上穿DIFF时,在DIFF位置书写文字,画绿色
当满足条件DIFF上穿-3时,在DIFF位置书写文字,画红色
当满足条件3上穿DIFF时,在DIFF位置书写文字,画绿色
当满足条件DIFF上穿10时,在DIFF位置书写文字,画红色
当满足条件-10上穿DIFF时,在DIFF位置书写文字,画绿色
当满足条件DIFF上穿-10时,在DIFF位置书写文字,画红色
当满足条件10上穿DIFF时,在DIFF位置书写文字,画绿色
当满足条件DIFF上穿1时,在DIFF位置书写文字,画红色
当满足条件-1上穿DIFF时,在DIFF位置书写文字,画绿色
当满足条件DIFF上穿-1时,在DIFF位置书写文字,画红色
当满足条件1上穿DIFF时,在DIFF位置书写文字,画绿色
当满足条件DIFF上穿2时,在DIFF位置书写文字,画红色
当满足条件-2上穿DIFF时,在DIFF位置书写文字,画绿色
当满足条件DIFF上穿-2时,在DIFF位置书写文字,画红色
当满足条件2上穿DIFF时,在DIFF位置书写文字,画绿色
当满足条件DIFF上穿20时,在DIFF位置书写文字,画红色
当满足条件-20上穿DIFF时,在DIFF位置书写文字,画绿色
当满足条件DIFF上穿-20时,在DIFF位置书写文字,画红色
当满足条件20上穿DIFF时,在DIFF位置书写文字,画绿色

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

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