通达信RSI+CCI+KD指标公式,通达信趋势主图指标公式
admin888
|通达信RSI+CCI+KD指标公式,通达信趋势主图指标公式
通达信RSI+CCI+KD指标公式
TYP := (HIGH + LOW + CLOSE)/3;
CC1:=(TYP-ma(TYP,14))/(0.015*AVEDEV(TYP,14));
DRAWTEXT(ISLAstBAR AND CC1,CC1,'CC1'),COLORFF00FF;
DRAWBAND(CC1,RGB(2,255,2),-100,RGB(255,255,0));
DRAWBAND(100,RGB(0,0,0),-100,RGB(0,0,0));
CC2:(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)),COLORFF00FF;
LC := REF(CLOSE,1);
rsi1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(Abs(CLOSE-LC),6,1)*100;
RSI:(RSI1-50)*5,LINETHICK2,COLORFFFFFF;
DRAWTEXT(ISLASTBAR AND RSI>REF(RSI,1),RSI,' ↑RSI'),COLORFFFFFF;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
K1:(K-50)*5,COLORFF9F00;
DRAWTEXT(ISLASTBAR AND K1>REF(K1,1),K1,' ▲K'),COLORFFFF00;
0;
100,POINTDOT;
-100,POINTDOT;
-200,COLORFFFF00;
200,COLORFFFF00;
C1:=SMA(CC1,3,1);
C2:=SMA(C1,3,1);
C3:=3*C1-2*C2;
CB1:=ema(C3,5);
CB2:=REF(CB1,1);
R1:=SMA(RSI,3,1);
D1:=SMA(R1,3,1);
J1:=3*R1-2*D1;
RR1:=EMA(J1,5);
RR2:=REF(RR1,1);
RR:=RR1>RR2;
K2:=SMA(K1,3,1);
D2:=SMA(K2,3,1);
J2:=3*K2-2*D2;
BB1:=EMA(J2,5);
BB2:=REF(BB1,1);
买入:RR AND NOT(REF(RR,1)) AND (RR1<-100 AND BB1<-100) AND CB1<-100,NODRAW;
DRAWICON(买入,-200,1);
卖出:REF(RR,1)=1 AND NOT(RR) AND CB1>100,NODRAW;
DRAWICON(卖出,200,2);
通达信趋势主图指标公式
M3:=ma(CLOSE,3);
M10:=MA(CLOSE,10);
DRAWBAND(M10,RGB(0,324,324),M3,RGB(200,96,96));
MA1:=MA(C,1),COLORFFFF00,NODRAW;
MA30:=MA(C,30),COLORFFFF00,NODRAW;
K20:3*MA30-2*MA1,COLOR888888;
K18:2.8*MA30-1.8*MA1,COLOR777777;
K16:2.6*MA30-1.6*MA1,COLOR666666;
K14:2.4*MA30-1.4*MA1,COLOR656565;
K12:2.2*MA30-1.2*MA1,COLOR555555;
K10:2*MA30-1*MA1,COLOR454545;
K8:1.8*MA30-0.8*MA1,COLOR444444;
K6:1.6*MA30-0.6*MA1,COLOR353535;
K4:1.4*MA30-0.4*MA1,COLOR333333;
K1:1.1*MA30-0.1*MA1,COLOR353535,LINETHICK1;
MMV:=ema(((SLOPE(CLOSE,22) * 20) + CLOSE),55);
MM:=(IF(((PERIOD > 5) AND (PERIOD < 9)),MA(MMV,1),IF((PERIOD = 5),MA(MMV,4),IF((PERIOD = 4),MA(MMV,8),IF((PERIOD = 3),MA(MMV,16),IF((PERIOD = 2),MA(MMV,32),0))))) );
ssl:=EMA(CLOSE,3);
stICKLINE(K1>K20,K20,K1,0,0),COLOR333333;
STICKLINE(K1
X_1:=(C+0.809*H+0.618*L+O/2)/2.927;
MA_5:=MA(X_1,5),LINETHICK3;
SMA_5:=SMA(C,5,1);
dma_H:=DMA(SMA_5,vol/SUM(VOL,COUNT(C>0,0))*100);
SMA_D3:=SMA(DMA_H,3,1) ;
SMA_D5:=SMA(DMA_H,5,1);
SMA_D7:=SMA(DMA_H,7,1);
SMA_D9:=SMA(DMA_H,9,1);
SMA_D11:=SMA(DMA_H,11,1);
IF(SMA_D3>REF(SMA_D3,1),SMA_D3,DRAWNULL),POINTDOT,COLORFF00FF;
IF(SMA_D5>REF(SMA_D5,1),SMA_D5,DRAWNULL),POINTDOT,COLORFF99FF;
IF(SMA_D7>REF(SMA_D7,1),SMA_D7,DRAWNULL),POINTDOT,COLORFF66FF;
IF(SMA_D9>REF(SMA_D9,1),SMA_D9,DRAWNULL),POINTDOT,COLORFF33FF;
IF(SMA_D11>REF(SMA_D11,1),SMA_D11,DRAWNULL),POINTDOT,COLORFF66FF;
WMA_3:(3*MA_5+2*REF(MA_5,1)+REF(MA_5,2))/(1+2+3),COLOR00AA00,LINETHICK1;
WMA_5:(5*MA_5+4*REF(MA_5,1)+3*REF(MA_5,2)+2*REF(MA_5,3)+REF(MA_5,4))/(5+4+3+2+1),COLOR00BB00,LINETHICK1;
WMA_7:(7*MA_5+6*REF(MA_5,1)+5*REF(MA_5,2)+4*REF(MA_5,3)+3*REF(MA_5,4)+2*REF(MA_5,5)+REF(MA_5,6))/(7+6+5+4+3+2+1),COLOR00CC00,LINETHICK1;
WMA_9:(9*MA_5+8*REF(MA_5,1)+7*REF(MA_5,2)+6*REF(MA_5,3)+5*REF(MA_5,4)+4*REF(MA_5,5)+3*REF(MA_5,6)+2*REF(MA_5,7)+REF(MA_5,8))/(9+8+7+6+5+4+3+2+1),COLOR00DD00,LINETHICK1;
WMA_11:(11*MA_5+10*REF(MA_5,1)+9*REF(MA_5,2)+8*REF(MA_5,3)+7*REF(MA_5,4)+6*REF(MA_5,5)+5*REF(MA_5,6)+4*REF(MA_5,7)+3*REF(MA_5,8)+2*REF(MA_5,9)+REF(MA_5,10))/(11+10+9+8+7+6+5+4+3+2+1),COLOR00EE00,LINETHICK1;
IF(WMA_3>REF(WMA_3,1),WMA_3,DRAWNULL),COLOR0000AA,LINETHICK1;
IF(WMA_5>REF(WMA_5,1),WMA_5,DRAWNULL),COLOR0000BB,LINETHICK1;
IF(WMA_7>REF(WMA_7,1),WMA_7,DRAWNULL),COLOR0000CC,LINETHICK1;
IF(WMA_9>REF(WMA_9,1),WMA_9,DRAWNULL),COLOR0000DD,LINETHICK1;
IF(WMA_11>REF(WMA_11,1),WMA_11,DRAWNULL),COLOR0000EE,LINETHICK1;
{k线}STICKLINE(CLOSE>OPEN OR CLOSE=OPEN AND CLOSE>REF(CLOSE,1),LOW,HIGH,0,0),COLORRED;
STICKLINE(CLOSE>OPEN OR CLOSE=OPEN AND CLOSE>REF(CLOSE,1),OPEN,CLOSE,3,0),COLORRED;
STICKLINE(CLOSE
STICKLINE(CLOSE
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,0,0 ),COLORFFFF00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0 ),COLORFFFF00;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0,1) ,COLORRED;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,1) ,COLORRED;
牛市通网是一个牛股推荐网与低风险投资知识网,可以在线联系客服领取牛股。牛市通网从权威的投资专家、金融分析师等投资信息中挑选优质的文章进行发布。牛市通网主要为投资者提供股票知识、股票观点、股票分析和明智金融投资讨论等信息。