指标简介:
MACD组合指标源码体会说明:
本公式的介绍:
1.MACD+KDJ+2倍的KDJ,以MACD为趋势以J值为短线的买卖依据,短线波段操作,抓主升浪。
2.J值的计算公式大约:M=3J-150. J=M+150/3(由于两指标叠加后J值有差异)。
3.在超强或超弱时指标有点变形但不影响操作。
设计思路及基本操作:
1.原则:MACD金叉持股,死叉持币。大盘趋势走坏指标再好尽量不操作(高手除外)。
2.DIFF和DEA在0轴上方死叉暂理解为洗盘退出观望,但在股价连续拉升后放巨量的,破5日线的,死叉必须清仓出局。
3.红绿柱高低面积及DIF,DEA两线的位置可清楚的看出股价强弱,背离的情况(熟能生巧)。
抓主升浪之一:
1.MACD两线金叉后J值从高位回调50以下(越低越好)反身向上,而MACD未死叉或刚死叉又金叉,股价放量上穿5日线,5日线须大于30日线及时跟进。但MACD死叉后,特别是DIFF破0原则上不操作,或依J值只能做反抽。
2.结合操盘线操作概率更高。
3.如选股基本设置可:
a.MACD的DIF大于DEA,b.KDJ的J值上穿0,5,20等自设,c.cpx3日线B点
指标代码:
DIFF:(EMA(CLOSE,12)-EMA(CLOSE,26))/EMA(CLOSE,12)*3000,LINETHICK1,colorred;
DEA:EMA(DIFF,9),LINETHICK1,coloryellow;
MACD:2*(DIFF-DEA),COLORSTICK;
IF(DIfF<0,DIfF,0),colorred,LINETHICK1;
IF(DIfF<0,0,DIfF),colorred,LINETHICK1;
IF(DIfF<DEA,DIfF,DEA),colorgreen,LINETHICK1;
IF(DIfF>DEA,DEA,DEA),colorwhite,LINETHICK1;
STICKLINE(MACD>=REF(MACD,1) AND MACD>= 0 ,0,MACD,2,0),colorred;
STICKLINE(MACD>=REF(MACD,1) AND MACD< 0 ,0,MACD,2,0),color00ff00;
STICKLINE(MACD<REF(MACD,1) AND MACD>= 0 ,0,MACD,2,0),colorred;
STICKLINE(MACD<REF(MACD,1) AND MACD< 0 ,0,MACD,2,0),color00FF00;
RSV1:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*200-100;
K1:=SMA(RSV1,6,1)/0.7,colormagenta;
D1:=SMA(K1,6,1),COLORffff33;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*200-100;
K:=SMA(RSV,3,1)/0.7,colormagenta;
D:=SMA(K,3,1),COLORffff33;
J值:3*K-2*D,LINETHICK1,COLORffff33;
J1:3*K1-2*D1,LINETHICK1,coloryellow;
DRAWTEXT(CROSS(J1,J值) AND J1>150,J1 ,'●'),color888888;
DRAWTEXT(CROSS(D1,J1) AND D1>75,D1 ,'●'),colorblue;
DRAWTEXT(CROSS(J值,-90) AND diff>dea ,-90 ,'红●击'),colorred;
DRAWTEXT(CROSS(J1,-135) AND diff>dea,-135 ,'长●击'),colorred;
DRAWTEXT(CROSS(J值,-140)AND diff>dea,-165 ,'5●击'),colorred;
DRAWTEXT(CROSS(J值,-20)AND diff>dea,-30 ,'追●涨'),colorff00ff;
DRAWTEXT(CROSS(J值,-0)AND diff>dea,-30 ,'追●涨'),colorff00ff;
DRAWTEXT(CROSS(J1,-100) AND diff<dea ,-100 ,'长抽'),coloryellow;
DRAWTEXT(CROSS(J1,-135) AND diff<dea ,-130 ,'长抽'),coloryellow;
DRAWTEXT(CROSS(J值,-150) AND J1<D1 AND diff<0,-175 ,'双抽'),colorwhite;
DRAWTEXT(CROSS(J值,-100) AND diff<0,-100 ,'抽'),colorwhite;
DRAWTEXT(CROSS(J值,-75) AND diff<0,-75 ,'抽'),colorwhite;
DRAWTEXT(CROSS(J值,-150)AND diff<dea AND diff>0 ,-175 ,'5弹'),colorwhite;
DRAWTEXT(CROSS(J值,-90) AND diff<deA AND diff>0,-90 ,'红弹'),colorwhite;
DRAWTEXT(CROSS(J值,175),200 ,'110'),colorwhite;
DRAWTEXT(CROSS(j1,175),210 ,'110'),coloryellow;
DRAWTEXT(CROSS(J值,170)AND diff>dea,170 ,'差'),colorwhite;
DRAWTEXT(CROSS(140,J值)AND diff>dea AND j1<110,140 ,'价'),colorffff33;
DRAWTEXT(CROSS(140,J值)AND diff>dea AND j1>110,140 ,'洗'),colorwhite;
DRAWTEXT(CROSS(175,J1)AND diff>dea AND j值>60,170 ,'短洗'),coloryellow;
DRAWTEXT(CROSS(175,J1)AND diff>dea AND j值<60,170 ,'长洗'),coloryellow;
DRAWTEXT(CROSS(170,J值)AND diff<dea,170 ,'控●仓'),colorgreen;
DRAWTEXT(CROSS(135,J值)AND diff<dea,135 ,'控●仓'),colorgreen;
DRAWTEXT(CROSS(100,J值)AND diff<dea,110 ,'控●仓'),colorgreen;
J110:180,DOTLINE,COLOR888888;
J100:150,DOTLINE,colorred;
J80:90,DOTLINE,COLOR888888;
J50:0,DOTLINE,COLOR888888;
J20:-90,DOTLINE,COLOR888888;
J0:-150,DOTLINE,COLORffff33;
DRAWTEXT(CROSS(J值,0),0 ,'o'),coloryellow;
DRAWTEXT(CROSS(dea,diff),dea ,'▼'),colorgreen;
DRAWTEXT(CROSS(diff,dea),dea ,'▲'),colorred;
指标图示:
郑重声明:股市具有不确定性,个股走势是无法预测的。公式软件描述中的案例截图仅代表过去,仅供参考学习研究之用,不构成投资建议或未来保证,也并不能代表未来,依此操作,责任自负。股市有风险,入市需谨慎。
指标公式评论
(【通达信副图公式】益抓主升MACD指标公式 无未来 源码 贴图)