程序化指标公式
问答中心

猫吃鱼一样买股指标

通达信指标 2019-05-16阅读量:4488

周DIF:=("MACD.DIF#WEEK");

周DEA:=("MACD.DEA#WEEK");

周MACD:=2*(周DIF-周DEA);

DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);

DEA:=EMA(DIFF,9),COLORFFFF00;

MACD:=(DIFF-DEA)*2;

A1:=BARSLAST(DIFF

A11:=A1*-1,COLOR00FFFF,LINETHICK1;

A2:=BARSLAST(DEA

A22:=A2*-1,COLORRED,LINETHICK1;

DRAWBAND(A2,RGB(150,50,20),A1,RGB(150,100,150));

DRAWBAND(A22,RGB(150,100,150),A11,RGB(150,50,20));

STICKLINE(周MACD>REF(周MACD,1) AND 周MACD>0,-5,5,18,0),COLORRED;

STICKLINE(周MACD0,-5,5,18,0),COLORYELLOW;

STICKLINE(周MACD>REF(周MACD,1) AND 周MACD<0,-5,5,18,0),COLORLIRED;

STICKLINE(周MACD

STICKLINE(MACD>REF(MACD,1) AND MACD>0,-3,3,3.5,1),COLORRED;

STICKLINE(MACD>REF(MACD,1) AND MACD<0,-3,3,3.5,1),COLORLIRED;

STICKLINE(MACD0,-3,3,3.5,1),COLORYELLOW;

STICKLINE(MACD

DIIFF:=(EMA(A1,5) - EMA(A1,10));

DEAA:=EMA(DIIFF,3);

K线:=(DIIFF-DEAA),COLORYELLOW;

STICKLINE((K线 > 0),-1,1,1.5,0),COLOR0000FF;

STICKLINE((K线 < 0),-1,1,1.5,0),COLOR00FF00;

STICKLINE(CROSS(DIFF,DEA),0,0.04,5,1),COLORYELLOW;

STICKLINE(CROSS(DIFF,DEA),0.04,0.08,5,0),COLORRED;

STICKLINE(CROSS(DIFF,DEA),0.08,0.12,5,1),COLORYELLOW;

STICKLINE(CROSS(DIFF,DEA),0.12,0.16,4,1),COLORRED;

STICKLINE(CROSS(DIFF,DEA),0.16,0.2,3,1),COLORRED;

STICKLINE(CROSS(DIFF,DEA),0.2,0.24,2,0),COLORWHITE;

STICKLINE(CROSS(DIFF,DEA) AND DIFF<0,A11,0,2,0),COLORRED;

STICKLINE(CROSS(DIFF,DEA) AND DIFF>0,0,A1,2,0),COLORRED;

STICKLINE(CROSS(DEA,DIFF) AND DIFF<0,A11,0,2,0),COLORBLUE;

STICKLINE(CROSS(DEA,DIFF) AND DIFF>0,0,A1,2,0),COLORBLUE;

STICKLINE(REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA),-25,25,0.00001,0),COLORYELLOW;

STICKLINE(A1>0 AND A2>0,A2,A1,0.00001,0),COLORFFFFFF;

STICKLINE(A1>0 AND A2>0,A22,A11,0.00001,0),COLORFFFFFF;

STICKLINE(A1>0 AND A2>0,0,A1,0.000001,0),COLORFF00FF;

STICKLINE(A1>0 AND A2>0,0,A11,0.000001,0),COLORGREEN;

DRAWTEXT(CROSS(DIFF,DEA) AND DIFF<0,-5,'〇'),COLORGREEN;

DRAWTEXT(CROSS(DIFF,DEA) AND DIFF<0,-12,'〇'),COLORGREEN;

DRAWTEXT(CROSS(DIFF,DEA) AND DIFF>0,5,'〇'),COLOR0000FF;

DRAWTEXT(CROSS(DIFF,DEA) AND DIFF>0,12,'〇'),COLOR0000FF;

DRAWTEXT(A2>A1 AND A22

DRAWTEXT(A2>A1 AND A22

DRAWTEXT(A2>A1 AND A22

STICKLINE(CROSS(DIFF,DEA) AND DIFF<0,A11,0,2,0),COLORRED;

STICKLINE(CROSS(DIFF,DEA) AND DIFF>0,0,A1,2,0),COLORRED;

STICKLINE(CROSS(DEA,DIFF) AND DIFF<0,A11,0,2,0),COLORBLUE;

STICKLINE(CROSS(DEA,DIFF) AND DIFF>0,0,A1,2,0),COLORBLUE;

DRAWTEXT_FIX(1,0.05,0.01,0,'【微信公众号:程序化指标提示】'),COLOR008000;

DRAWTEXT_FIX(1,0.05,0.05,0,'【大池不红君莫入,大池变黄君莫贪】'),COLOR0000FF;

DRAWTEXT_FIX(1,0.05,0.09,0,'【中池变黄小池绿,如在鱼尾逃命急】'),COLORFFFFFF;

版权声明

所有指标均为免费分享。

文章内容来自互联网,本网站无任何收费项目也不推荐股票
广告投放请自行识别风险。

分享:

扫一扫在手机阅读、分享本文

程序化指标公众号

左边广告一

关闭

右边广告二

关闭