当前位置: 网站首页 > 股票软件公式 > 通达信公式 > 文章 当前位置: 通达信公式 > 文章

通达信源码:背离重心雷达操盘线+抄底追踪+多空通杀

点击: 次    来源:顶尖财经    作者:股市狙击 - 小 + 大

背离重心雷达操盘线:

背离重心雷达操盘线,四大背离精华聚集(通达信公式 主图 源码 测试图)

 
CD3:=REF(C,1);
涨停:=IF((C-CD3)*100/CD3>=(10-0.01*100/CD3),1,0);
STICKLINE(涨停,OPEN,CLOSE,2,0),COLORFF00FF;
RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
VAR1:=MA(CLOSE,5),COLOR00FFFF;
VAR6:=MA(CLOSE,54),COLORFF9900;
VAR8:= DMA(EMA(CLOSE,12),SUM(VOL/CAPITAL,5)/3),LINETHICK2;
RSV24:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;
K24:=SMA(RSV24,3,1);
D24:=SMA(K24,3,1);
J24:=3*K24-2*D24;
VARA:=REF(CLOSE,1);
VARE:=SMA(MAX(CLOSE-VARA,0),6,1)/SMA(ABS(CLOSE-VARA),6,1)*100;
VARF:=(2*CLOSE+HIGH+LOW)/4;
压力位:IF(CROSS(J24,J),H,REF(H,BARSLAST(CROSS(J24,J)))),COLOR00FF33,LINETHICK1;
支撑位:IF(CROSS(J,J24),L,REF(L,BARSLAST(CROSS(J,J24)))),COLORCC33CC,LINETHICK1;
支撑价:LLV(LOW,23) ,COLOR7FFF00,LINETHICK2;
阻力价:HHV(HIGH,23),COLORFF9900, LINETHICK1;
VAR10:=LLV(LOW,23);
VAR11:=HHV(HIGH,23);
VAR12:=EMA((VARF-VAR10)/(VAR11-VAR10)*100,6);
VAR13:=EMA(0.667*REF(VAR12,1)+0.333*VAR12,4);
A1:=BARSLAST(REF(CROSS("MACD.DIF","MACD.DEA"),1));
持股:IF(MA(CLOSE,7)>REF(MA(CLOSE,7),1),MA(CLOSE,7),DRAWNULL),COLORFF00FF,LINETHICK2;
YYY:=IF(MA(CLOSE,7)=REF(MA(CLOSE,7),1),MA(CLOSE,7),DRAWNULL),COLORYELLOW,LINETHICK3;
空仓:IF(MA(CLOSE,7)<REF(MA(CLOSE,7),1),MA(CLOSE,7),DRAWNULL),COLORGREEN,LINETHICK2;
流通盘:FINANCE(7)/100000000,NODRAW,NODRAW,COLORRED;
市盈率:DYNAINFO(39),NODRAW,COLORGREEN;
净资产:FINANCE(34),NODRAW,COLORYELLOW;
每股收益:FINANCE(30)/FINANCE(1),NODRAW,COLORFF00FF;
DRAWTEXT(REF(C,A1+1)>C AND REF("MACD.DIF",A1+1)<"MACD.DIF" AND CROSS("MACD.DIF","MACD.DEA")>0,L-0.3,'MACD底背离'),COLOR00FFFF;
A2:=BARSLAST(REF(CROSS("KDJ.K","KDJ.D"),1));
DRAWTEXT(REF(C,A2+1)>C AND REF("KDJ.K",A2+1)<"KDJ.K" AND CROSS("KDJ.K","KDJ.D"),L-0.20,'KDJ底背离'),COLORFF00FF;
A3:=BARSLAST(REF(CROSS("RSI.RSI1","RSI.RSI2"),1));
DRAWTEXT(REF(C,A3+1)>C AND REF("RSI.RSI1",A3+1)<"RSI.RSI1" AND CROSS("RSI.RSI1","RSI.RSI2")>0,L-0.5,'RSI底背离'),COLOR0000FF;
C1:=BARSLAST(REF(CROSS("MACD.DEA","MACD.DIF"),1));
DRAWTEXT(REF(C,C1+1)<C AND REF("MACD.DIF",C1+1)>"MACD.DIF" AND CROSS("MACD.DEA","MACD.DIF")>0,H+0.3,'MACD顶背离'),COLOR00FF00;
C2:=BARSLAST(REF(CROSS("KDJ.D","KDJ.K"),1));
DRAWTEXT(REF(C,C2+1)<C AND REF("KDJ.K",C2+1)>"KDJ.K" AND CROSS("KDJ.D","KDJ.K")>0,H+0.2,'KDJ顶背离'),COLORFFFFCC;
C3:=BARSLAST(REF(CROSS("RSI.RSI2","RSI.RSI1"),1));
DRAWTEXT(REF(C,C3+1)<C AND REF("RSI.RSI1",C3+1)>"RSI.RSI1" AND CROSS("RSI.RSI2","RSI.RSI1")>0,H+0.4,'RSI顶背离'),COLORFF9900;
重心:= (C+0.618*REF(C,1)+0.382*REF(C,1)+0.236*REF(C,3)+0.146*REF(C,4))/2.382;
操盘线:EMA(((SLOPE(C,22)*20)+C),55),COLORYELLOW,LINETHICK4;
黄金线:IF(重心>=操盘线,操盘线,DRAWNULL),COLORRED,LINETHICK2;
空仓线:IF(重心<操盘线,操盘线,DRAWNULL),COLORCYAN,LINETHICK2;
DRAWTEXT(ISLASTBAR,操盘线,'操盘线'),COLORRED;
变:EMA(CLOSE,5),LINETHICK2,COLORWHITE;
金:IF(变>REF(变,1),变,DRAWNULL),COLORRED,LINETHICK2;
空:IF(变<REF(变,1),变,DRAWNULL),COLORGREEN,LINETHICK2;
DRAWTEXT(ISLASTBAR,变,'雷达线'),COLORRED;




抄底追踪:

指标王G:EMA(((2*CLOSE+HIGH+LOW)/4-LLV(LOW,5))/(HHV(HIGH,4)-LLV(LOW,5))*100,4);

指标王H:EMA(0.667*REF(指标王G,1)+0.333*指标王G,2);
DRAWBAND(指标王G,RGB(250,10,10),指标王H,RGB(10,200,10));
指标王A:EMA(EMA(((SLOPE(EMA("KDJ.K"(18,3,3)+EMA(SLOPE("KDJ.K"(18,3,3),13),5)*5,21)*1.2,2) *5) + EMA("KDJ.K"(18,3,3)+EMA(SLOPE("KDJ.K"(18,3,3),13),5)*5,21)*1.2),3),3),COLORWHITE,LINETHICK1;
指标王B:IF(指标王A>REF(指标王A,1),指标王A,DRAWNULL),COLORRED,LINETHICK3;
指标王D:=ATAN((EMA(C,5)/REF(EMA(C,5),1)-1)*100)*180/3.1416;
指标王E:=IF(指标王D>0,指标王D,指标王D),COLORFFFFFF,LINETHICK2;
指标王F:=指标王E>REF(指标王E,1) AND 指标王E<=-40;
DRAWICON(指标王F,指标王A*0.97,1);
指标王公式:20,COLORRED;
DRAWICON(CROSS(指标王G,指标王H) AND 指标王G<30,20,7);




多空通杀(顶尖财经 股票学院: http://58188.com):

MA1:MA(CLOSE,M1);
MA3:MA(CLOSE,M3)LINETHICK4 COLORRED;
IF(MA(CLOSE,M3)<=REF(MA(CLOSE,M3),1),MA(CLOSE,M3),DRAWNULL),COLORGREEN,LINETHICK4;
DRAWTEXT_FIX(ISLASTBAR,0.45,1,1,DYBLOCK),COLORWHITE;
DRAWTEXT_FIX(ISLASTBAR,0.49,1,0,HYBLOCK),COLORWHITE;
DRAWTEXT_FIX(ISLASTBAR,0.59,1,0,GNBLOCK),COLORWHITE;
DRAWTEXT_FIX(ISLASTBAR,0.01,1,0,ZDBLOCK),COLORWHITE;
STICKLINE(C/REF(C,1)>1.095,O,C,2,0),COLORMAGENTA;
C1:=REF(C,1);
跌停:=IF((C1-C)*100/C1>=(10-0.01*100/C1),1,0);
STICKLINE(跌停,OPEN,CLOSE,2.2,0),COLORGREEN;

上一篇:通达信源码:封牛支撑+机构进场B+机构操盘线V4

下一篇:通达信源码:资金波段翻倍精准买卖+操盘手+揭杆而起