通达信超强版五线(通达信主力专用指标)
1. 通达信五线高度粘合及五日线金叉粘合公式(五线开花):
```scss
MA5 := EMA(CLOSE, 5); // 5日均线
MA10 := EMA(CLOSE, 10); // 10日均线
MA20 := EMA(CLOSE, 20); // 20日均线
MA30 := EMA(CLOSE, 30); // 30日均线
MA60 := EMA(CLOSE, 60); // 60日均线
五线粘合:=(MA5 + MA10 + MA20 + MA30 + MA60) / COUNT(EMA,CLOSE,{周期范围}); // 计算五线粘合程度
在通达信软件中,中线主力资金指标是一个重要的分析工具,用于帮助投资者判断主力资金的动向。下面是一个可能的公式,用于计算这个指标:
```plaintext
N:=24;
VAR1:= EMA(EMA(CLOSE,13),13);
控盘指数: (VAR1-REF(VAR1,1))/REF(VAR1,1)1000;
无庄控盘: 控盘指数<0;
STICKLINE(控盘指数>REF(控盘指数,1) AND 控盘指数>0 AND 控盘指数<3, 控盘指数, 0, 2, 1), COLORRED;
STICKLINE(控盘指数>REF(控盘指数,1) AND 控盘指数>0 AND 控盘指数>3, 控盘指数, 0, 2, 1), COLORFF00FF;
主力控盘: 控盘指数>REF(控盘指数,1) AND 控盘指数>0;
STICKLINE(控盘指数0, 控盘指数, 0, 2, 0), COLORGREEN;
控盘减弱: 控盘指数REF(控盘指数); VARA:= EMA(EMA(CLOSE,N),N); STICKLINE(控盘指数>VARA AND 控盘指数>=REF(控盘指数), 控盘指数 , VARA , 2 , 0 ), COLORRED; B:= 控盘指数>=VARA; 准备: B AND REF(B)=-1 AND REF(控盘指数)<(-N),COLORYELLOW; DRAWTEXT(准备,-N,'准备'),COLORYELLOW; B:= REF(B,-N)=REF(B,-N-N)=REF(B,-N-N-N)=REF(B,-N-N-N-N)=REF(B,-N-N-N-N-N)=REF(B,-N)=B; 开始控盘: B AND REF(B,-N)=REF(B,-N)=REF(B,-N)=-N AND REF(B,-N)=-N AND REF(B,-N)=B ; A:=CLOSE-(REF((CLOSE-LOW)7)/(HHV((HIGH-LOW),7))); X:=EMA((CLOSE+LOW)/2CLOSE/(CLOSE+LOW)CLOSE/(CLOSE+LOW)+CLOSE/(CLOSE+LOW)+(CLOSE+HIGH)/HIGH+(CLOSE+LOW)/LOW+(CLOSE+HIGH)/HIGH+(CLOSE+HIGH)/HIGH+(CLOSE+HIGH)/HIGH)/7; MTM:=CLOSE-REF(CLOSE,-N); DX:=EMA((MTM/CLOSE)-REF((MTM/CLOSE),N)); CB:=EMA((MTM/CLOSE),N); 买:=IF((LLV((MTM/CLOSE),N)=LLV((MTM/CLOSE),NN) AND COUNT((MTM/CLOSE)REF(MACD)),MACD,-MACD); S:=MACD=REF(MACD); U:=BARSLAST((DIFF<(DEA))); V:=REF((U),(U)); W:=DEA>(REF((DEA),(V))); X:=DEA; 上成立:=CROSS((DIFF),(DEA)) AND REF((W),(U))=REF((W),(U))=REF((W),(U))=REF((W),(U))=REF((W),(U))=X AND REF((W),(U))=DEA ; 下成立:=CROSS((DIFF),(DEA)) AND REF((W),(U))=X ; L:=EMA((CLOSE),(NN))-EMA((CLOSE),(NN)); L:=EMA((L),(NN)); U:=BARSLAST((L<(REF((L),(U)))); V:=REF((U),(U)); W:=L; 变盘:=CROSS((L),(REF((L),(V)))) AND REF((W),(V))=L ; STICKLINE((变盘),(HHV(((HIGH)-(LOW)),N)),HMM,'变盘点'); LS:=IFF(((DIFF)>DEA) AND REF(((DIFF)>DEA),MM)=-MM);加速上扬:=IFF(((LS=MM)),MM,-MM); XG:=CROSS((MACD),(DIFF)) AND REF(MACD,-MM)