无未来准确率高的通达信指标公式 通达信MACD+RSI背离组合副图指(2)
2017-02-10 11:12 股票知识 zhishi.southmoney.com
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));
C4:=BARSLAST(REF(CROSS(MDI,PDI),1));
D4:=REF(C,C+1)<C AND REF(MDI,C4+1)>MDI AND CROSS(MDI,PDI);
A4:=BARSLAST(REF(CROSS(PDI,MDI),1));
B4:=REF(C,A4+1)>C AND REF(PDI,A4+1)<PDI AND CROSS(PDI,MDI);
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;
DMI底背:IF(B4>0,-0.1,0),COLOR0099FF,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;
DMI顶背:IF(D4>0,0.1,0),COLORBLUE,POINTDOT;
STICKLINE(B1>0,-0.03,0,1,0),COLORRED;
DRAWTEXT(B1>0,-0.03,'MACD底背'),COLORRED;
STICKLINE(B2>0,-0.06,0,1,0),COLORFF00FF;
DRAWTEXT(B2>0,-0.06,'KDJ底背'),COLORFF00FF;
STICKLINE(B3>0,-0.09,0,1,0),COLORYELLOW;
DRAWTEXT(B3>0,-0.09,'RSI底背'),COLORYELLOW;
STICKLINE(B4>0,-0.12,0,1,0),COLOR0099FF;
DRAWTEXT(B4>0,-0.12,'DMI底背'),COLOR0099FF;
STICKLINE(D1>0,0.04,0,0.5,0),COLOR00FF00;
DRAWTEXT(D1>0,0.03,'MACD顶背'),COLOR00FF00;
STICKLINE(D2>0,0.06,0,1,0),COLORFFCC66;
DRAWTEXT(D2>0,0.06,'KDJ顶背'),COLORFFCC66;
STICKLINE(D3>0,0.09,0,1,0),COLORWHITE;
DRAWTEXT(D3>0,0.09,'RSI顶背'),COLORWHITE;
STICKLINE(D4>0,0.12,0,1,0),COLORBLUE;
DRAWTEXT(D4>0,0.12,'DMI顶背'),COLORBLUE;
平空开多:=CROSS(MACD,0);
平多开空:=CROSS(0,MACD);
DRAWICON(平空开多,DIF,1);(股票知识网zhishi.southmoney.com)
股票知识网声明:资讯来源于合作媒体及机构,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。