通达信波段四种背离指标公式,通达信寻找超强股指标公式
admin888
|通达信波段四种背离指标公式,通达信寻找超强股指标公式
通达信波段四种背离指标公式
SJ:=1;
严重超买:100*SJ,COLORRED,DOTLINE;
超买:80,COLORRED,DOTLINE;
超卖:20,COLOR00FF00,DOTLINE;
严重超卖:0*SJ,COLOR00FF00,DOTLINE;
macd顶背:0,COLOR00FF00;
maCD底背:0,COLORRED;
kdj顶背:0,COLORFFCC66;
kdJ底背:0,COLORFF00FF;
rsi顶背:0,COLORFFFFFF;
RSI底背:0,COLORYELLOW;
dmi顶背:0,COLORBLUE;
DMI底背:0,COLOR0099FF;
TRR := SUM(MAX(MAX(HIGH-LOW,Abs(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),14);
HD := HIGH-REF(HIGH,1);
LD := REF(LOW,1)-LOW;
PDM:= SUM(IF(HD>0 AND HD>LD,HD,0),14);
MDM:= SUM(IF(LD>0 AND LD>HD,LD,0),14);
pdi:= PDM*100/TRR;
mdi:= MDM*100/TRR;
A1:=BArslAst(REF(crOSS("MacD."(12,26,9),"MACD.DEA"(12,26,9)),1))*SJ;
B1:=REF(C,A1+1)>C AND REF("MACD.DIF"(12,26,9),A1+1)<"MACD.DIF"(12,26,9) AND CROSS("MACD.DIF"(12,26,9),"MACD.DEA"(12,26,9))*SJ;
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))*SJ;
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))*SJ;
C1:=BARSLAST(REF(CROSS("MACD.DEA"(12,26,9),"MACD.DIF"(12,26,9)),1));
D1:=REF(C,C1+1)
C2:=BARSLAST(REF(CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3)),1));
D2:=REF(C,C2+1)
C3:=BARSLAST(REF(CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24)),1));
D3:=REF(C,C3+1)
C4:=BARSLAST(REF(CROSS(MDI,PDI),1));
D4:=REF(C,C+1)
A4:=BARSLAST(REF(CROSS(PDI,MDI),1));
B4:=REF(C,A4+1)>C AND REF(PDI,A4+1)
DRAWTEXT(B4>0,5,'DMI底背'),COLOR0099FF;
DRAWTEXT(D4>0,95,'DMI顶背'),COLORBLUE;
DRAWTEXT(B1>0,15,'MACD底背'),COLORRED;
DRAWTEXT(B2>0,10,'KDJ底背')*SJ,COLORFF00FF;
DRAWTEXT(B3>0,18,'RSI底背')*SJ,COLORYELLOW;
DRAWTEXT(D1>0,85,'MACD顶背')*SJ,COLOR00FF00;
DRAWTEXT(D2>0,90,'KDJ顶背')*SJ,COLORFFCC66;
DRAWTEXT(D3>0,96,'RSI顶背')*SJ,COLORFFFFFF;
STICKLINE(B1>0,20,0,0,0),COLORRED;
STICKLINE(B2>0,20,0,0,0),COLORFF00FF;
STICKLINE(B3>0,20,0,0,0),COLORYELLOW;
STICKLINE(D1>0,80,100,0,0),COLOR00FF00;
STICKLINE(D2>0,100,80,0,0),COLORFFCC66;
STICKLINE(D3>0,100,80,0,0),COLORWHITE;
STICKLINE(B4>0,20,0,0,0),COLOR0099FF;
STICKLINE(D4>0,100,80,0,0),COLORBLUE;
VAR188:=((CLOSE - LLV(LOW,34))/(HHV(HIGH,34) - LLV(LOW,34)))*(100);
VAR288:=REVERSE(VAR188);
VAR388:=SMA(VAR188,9,1);
K88:=SMA(VAR388,3,1)*SJ;
D88:=SMA(K88,3,1)*SJ;
STICKLINE((K88 >= D88),K88,D88,1,0),COLOR0000FF;
STICKLINE((K88 <= D88),K88,D88,1,0),COLOR00FF00;
通达信寻找超强股指标公式
N:=720;
涨停价:=ROUND(REF(CLOSE,1)*1.10*100)/100;
跌停价:=ROUND(REF(CLOSE,1)*0.90*100)/100;
DP:=(INDEXC-REF(INDEXC,1))/REF(INDEXC,1);
GG:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1);
CQ1:=(COUNT(GG-DP> 0.04,N)+COUNT(GG-DP> 0.08,N)+COUNT(GG-DP> 0.12,N)+COUNT(GG> 0.04,N)+COUNT(GG> 0.08,N)+COUNT(ROUND(CLOSE*100)/100=涨停价 OR CLOSE>涨停价,N))/2;
cr1:=(COUNT(GG-DP<-0.04,N)+COUNT(GG-DP<-0.08,N)+COUNT(GG-DP<-0.12,N)+COUNT(GG<-0.04,N)+COUNT(GG<-0.08,N)+COUNT(ROUND(CLOSE*100)/100=跌停价 OR CLOSE<跌停价,N))/2;
CQ2:=ma(CQ1,N/5);
CR2:=MA(CR1,N/5);
超强数:=CQ2;
超弱数:=CR2;
超强净值:=超强数-超弱数;
超强值:IF(PERIOD=5,超强净值,DRAWNULL),COLORFF00FF;
M:=N/3;
CQ1M:=(COUNT(GG-DP>0.04,M)+COUNT(GG-DP>0.08,M)+COUNT(GG-DP>0.12,M)+COUNT(GG>0.04,M)+COUNT(GG>0.08,M)+COUNT(CLOSE=涨停价 OR CLOSE>涨停价,M))/2;
CR1M:=(COUNT(GG-DP<-0.04,M)+COUNT(GG-DP<-0.08,M)+COUNT(GG-DP<-0.12,M)+COUNT(GG<-0.04,M)+COUNT(GG<-0.08,M)+COUNT(CLOSE=跌停价 OR CLOSE<跌停价,M))/2;
CQ2M:=MA(CQ1M,M/5);
CR2M:=MA(CR1M,M/5);
超强数M:=CQ2M;
超弱数M:=CR2M;
超强净值M:=超强数M-超弱数M;
可比超强净值M:=超强净值M*3;
中期:IF(PERIOD=5,可比超强净值M,DRAWNULL),COLOR00FFFF;
S:=M/4;
CQ1S:=(COUNT(GG-DP>0.04,S)+COUNT(GG-DP>0.08,S)+COUNT(GG-DP>0.12,S)+COUNT(GG>0.04,S)+COUNT(GG>0.08,S)+COUNT(CLOSE=涨停价 OR CLOSE>涨停价,S))/2;
CR1S:=(COUNT(GG-DP<-0.04,S)+COUNT(GG-DP<-0.08,S)+COUNT(GG-DP<-0.12,S)+COUNT(GG<-0.04,S)+COUNT(GG<-0.08,S)+COUNT(CLOSE=跌停价 OR CLOSE<跌停价,S))/2;
CQ2S:=MA(CQ1S,S/5);
CR2S:=MA(CR1S,S/5);
超强数S:=CQ2S;
超弱数S:=CR2S;
超强净值S:=超强数S-超弱数S;
可比超强净值S:=超强净值S*12;
短期:IF(PERIOD=5,可比超强净值S,DRAWNULL),COLORFFFFFF;
异动:短期-中期,COLORstICK,COLOR0000FF;
起涨:=(短期>REF(短期,1) AND REF(短期,1)<=REF(短期,2)) OR (REF(短期,1)>REF(短期,2) AND REF(短期,2)<=REF(短期,3)) OR (REF(短期,2)>REF(短期,3) AND REF(短期,3)<=REF(短期,4));
牛市通网是一个牛股推荐网与低风险投资知识网,可以在线联系客服领取牛股。牛市通网从权威的投资专家、金融分析师等投资信息中挑选优质的文章进行发布。牛市通网主要为投资者提供股票知识、股票观点、股票分析和明智金融投资讨论等信息。