MACD黄买绿卖指标源码 副图公式[通达信公式]
相关标签:MACD黄买绿卖指标源码 副图公式, macd指标详解 、 macd指标 、 macd论坛 、 macd底背离选股公式 、 macd顶底背离图解 、 macd背离 、 macd是什么意思 、 macd股票论坛 、 macd指标的最佳设置值 、
MACD黄买绿卖公式源码:
DIFF:EMA(CLOSE,7) - EMA(CLOSE,19);
DEA:EMA(DIFF,9);
MACD:2*(DIFF-DEA),COLORSTICK;
A1:=BARSLAST(ref(CROSS(DIFF,DEA),1));
B1:=ref(C,A1+1)>C AND ref(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA);
A2:=BARSLAST(ref(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),1));
B2:=ref(C,A2+1)>C AND ref("KDJ.K"(9,3,3),A2+1)<"KDJ.K"(9,3,3) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));
A3:=BARSLAST(ref(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));
B3:=ref(C,A3+1)>C AND ref("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));
C1:=BARSLAST(ref(CROSS(DEA,DIFF),1));{本文来源:'www.328588.com' }
D1:=ref(C,C1+1)<C AND ref(DIFF,C1+1)>DIFF AND CROSS(DEA,DIFF);
C2:=BARSLAST(ref(CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3)),1));
D2:=ref(C,C2+1)<C AND ref("KDJ.K"(9,3,3),C2+1)>"KDJ.K"(9,3,3) AND CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3));
C3:=BARSLAST(ref(CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24)),1));
D3:=ref(C,C3+1)<C AND ref("RSI.RSI1"(6,12,24),C3+1)>"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24));
MACD底背:IF(B1>0,-0.1,0),COLORRED,POINTDOT;
KDJ底背:IF(B2>0,-0.1,0),COLORFF00FF,POINTDOT;
RSI底背:IF(B3>0,-0.1,0),COLORYELLOW,POINTDOT;
MACD顶背:IF(D1>0,0.1,0),COLOR00FF00,POINTDOT;
KDJ顶背:IF(D2>0,0.1,0),COLORFFCC66,POINTDOT;
RSI顶背:IF(D3>0,0.1,0),COLORWHITE,POINTDOT;
STICKLINE(B1>0,-0.1,0,2,0),COLORRED;
STICKLINE(B2>0,-0.1,0,2,0),COLORFF00FF;
STICKLINE(B3>0,-0.1,0,2,0),COLORYELLOW;
STICKLINE(D1>0,0.1,0,2,0),COLOR00FF00;
STICKLINE(D2>0,0.1,0,2,0),COLORFFCC66;
STICKLINE(D3>0,0.1,0,2,0),COLORWHITE;
STICKLINE(MACD>ref(MACD,1) AND MACD>0,0,MACD,0,0),COLORRED;
STICKLINE(MACD<=ref(MACD,1) AND MACD>0,0,MACD,0,0),COLORYELLOW;
STICKLINE(MACD<ref(MACD,1) AND MACD<0,0,MACD,0,0),COLORCYAN;
STICKLINE(MACD>=ref(MACD,1) AND MACD<0,0,MACD,0,0),COLORMAGENTA;
STICKLINE(C>0,0,0,50,1),COLORBLUE;
DIFF,COLORGREEN;
DEA,COLORYELLOW;
强:IF(DIFF>MA(DIFF,2),DIFF,DRAWNULL),COLORRED;
弱:IF(DEA>MA(DEA,2),DEA,DRAWNULL),COLORMAGENTA;
必买: IF(TROUGHBARS(3,15,1)=0 AND HIGH>LOW+0.01,1,-0),COLORYELLOW ,LINETHICK2;
DRAWTEXT_FIX(C>O,0.01,0.9,0,' WWW.CXH99.COM '),COLORRED;
DRAWTEXT_FIX(C>O,1,1,0,' cxh99.com '),COLORRED;
必卖: IF(PEAKBARS(3,15,1)=1,1,-0),COLORGREEN,LINETHICK2;
{别忘了将本网告诉您身边的朋友,可能您的不经意传达让他(她)在本网找到灵感,迅速赚钱。}
如果以上指标公式不适用于您常用的行情软件
或者您想改编成选股公式,以便快速选出某种形态个股的话,
- 上一篇:短线加仓逃顶源码 主图指标
- 下一篇:阳光江恩通道主图指标源码
相关文章
-
没有相关内容