暴涨启动点源码 副图 通达信 贴图
DIF:EMA(CLOSE,9)-EMA(CLOSE,150),NODRAW;
DEA:EMA(DIF,12),NODRAW;
MACD:2*(DIF-DEA),COLORSTICK;
DIK:4*DIF-3*DEA,COLORYELLOW;
DED:=EMA(DIK,1),COLORGREEN;
IF(C>DED,DED,DRAWNULL),COLORRED,LINETHICK3;
IF(DED<=REF(DED,1),DED,DRAWNULL),COLORGREEN,LINETHICK3;
启动点:=MACD<0 AND MACD>REF(MACD ,1) AND REF(MACD ,1)<REF(MACD ,2)
AND REF(MACD ,2)<REF(MACD ,3)
AND REF(MACD ,3)<REF(MACD ,4);
STICKLINE(启动点,8,MACD,2,0),COLORMAGENTA;
分界线:0,COLORFF00FF;
DRAWICON(启动点,20,11);
{股票指标网}
STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,1.8,0),COLOR000055;
STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,1.1,0),COLOR000099;
STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,0.6,0),COLOR0000BB;
STICKLINE(MACD<=REF(MACD,1) AND MACD>0,0,MACD,1.8,0),COLOR40FF00;
STICKLINE(MACD<=REF(MACD,1) AND MACD>0,0,MACD,1.1,0),COLOR40FF00;
STICKLINE(MACD<=REF(MACD,1) AND MACD>0,0,MACD,0.6,0),COLOR40FF00;
STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD,1.8,0),COLOR000055;
STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD,1.1,0),COLOR000099;
STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD,0.6,0),COLOR0000BB;
STICKLINE(MACD<=REF(MACD,1) AND MACD<0,0,MACD,1.8,0),COLOR40FF00;
STICKLINE(MACD<=REF(MACD,1) AND MACD<0,0,MACD,1.1,0),COLOR40FF00;
STICKLINE(MACD<=REF(MACD,1) AND MACD<0,0,MACD,0.6,0),COLOR40FF00;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
输出DIF:收盘价的9日指数移动平均-收盘价的150日指数移动平均,NODRAW
输出DEA:DIF的12日指数移动平均,NODRAW
输出MACD:2*(DIF-DEA),COLORSTICK
输出DIK:4*DIF-3*DEA,画黄色
DED赋值:DIK的1日指数移动平均,画绿色
如果C>DED返回DED否则返回DRAWNULL
IF(DED<=1日前的DED,DED,DRAWNULL),画绿色, 线宽为3
启动点赋值:MACD<0 AND MACD>1日前的MACD AND 1日前的MACD <2日前的MACD
AND 2日前的MACD <3日前的MACD
AND 3日前的MACD <4日前的MACD
当满足条件启动点时,在8和MACD之间画柱状线
输出分界线:0,COLORFF00FF
当满足条件启动点时,在20和11之间画图标
{股票指标网}
STICKLINE(MACD>1日前的MACD AND MACD>0,0,MACD,1.8,0),COLOR000055
STICKLINE(MACD>1日前的MACD AND MACD>0,0,MACD,1.1,0),COLOR000099
STICKLINE(MACD>1日前的MACD AND MACD>0,0,MACD,0.6,0),COLOR0000BB
STICKLINE(MACD<=1日前的MACD AND MACD>0,0,MACD,1.8,0),COLOR40FF00
STICKLINE(MACD<=1日前的MACD AND MACD>0,0,MACD,1.1,0),COLOR40FF00
STICKLINE(MACD<=1日前的MACD AND MACD>0,0,MACD,0.6,0),COLOR40FF00
STICKLINE(MACD>1日前的MACD AND MACD<0,0,MACD,1.8,0),COLOR000055
STICKLINE(MACD>1日前的MACD AND MACD<0,0,MACD,1.1,0),COLOR000099
STICKLINE(MACD>1日前的MACD AND MACD<0,0,MACD,0.6,0),COLOR0000BB
STICKLINE(MACD<=1日前的MACD AND MACD<0,0,MACD,1.8,0),COLOR40FF00
STICKLINE(MACD<=1日前的MACD AND MACD<0,0,MACD,1.1,0),COLOR40FF00
STICKLINE(MACD<=1日前的MACD AND MACD<0,0,MACD,0.6,0),COLOR40FF00