达信MACD四线趋势指标公式,通达信中短KDJ指标公式
admin888
|达信MACD四线趋势指标公式,通达信中短KDJ指标公式
达信MACD四线趋势指标公式
difF:ema(CLOSE,30)-Ema(CLOSE,60);
DEA:EMA(DIFF,15);
macd:=3*(DIFF-DEA);
stICKLINE(MacD0,0,MACD,1,0),COLORYELLOW;
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,1,0),COLORRED;
STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,1,0),COLORFFC8FF;
STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,1,0),COLORFFCC66;
DIF:EMA(CLOSE,9)-EMA(CLOSE,18),LINETHICK2;
DEA1:EMA(DIF,7),LINETHICK2;
下穿:=COUNT(DEA<=0,5)=1 AND DEA<=0;
上穿:=COUNT(DEA>=0,5)=1 AND DEA>=0;
DRAWTEXT(下穿,LOW*0.1,'↓'),COLORYELLOW;
DRAWTEXT(上穿,LOW*0.1,'↑'),COLOR0000FF;
日线空头:IF(DEA<0,1,0);
通达信中短KDJ指标公式
T2:=(HHV(HIGH,3)+LLV(LOW,3)+CLOSE*2)/4;
T3:=ema(T2,13);
T4:=stD(T2,13);
T5:=((T2-T3)/T4*100+200)/4;
T6:=(Ema(T5,13)-21)*1.56;
K1:=EMA(CLOSE,8)-EMA(CLOSE,26);
ST1:=EMA(K1,3);
ET1:=(K1-ST1)*2,COLORSTICK;
BK: EMA(T6,3)*1.22,COLORWHITE,LINETHICK2;
BD: EMA(BK,3),COLORLIBLUE,LINETHICK2;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:SMA(RSV,3,1),COLORWHITE;
D:SMA(K,3,1),COLORYELLOW;
J:3*K-2*D,COLORYELLOW;
IF(K>REF(K,1),K,DRAWNULL),COLORRED,LINETHICK1;
IF(D>REF(D,1),D,DRAWNULL),COLORRED,LINETHICK1;
IF(J>REF(J,1),J,DRAWNULL),COLORFF00FF,LINETHICK1;
STICKLINE((J<=0 AND K<=30),0,J,1,1),COLORYELLOW;
金叉:IF(SUM(crOSS(K,D)AND D<23,15)>=2 AND CROSS(K,D)AND C>O,10,0),COLORFFFF00;
A1:=BArslAST(REF(CROSS(J,K),1));
底背:=REF(CLOSE,A1+1)>CLOSE AND J>REF(J,A1+1) AND CROSS(J,K);
底:DRAWLINE(A1=0,D,底背,D,0),COLORRED,POINTDOT;
DRAWTEXT(底背,D,'底B'),COLORRED;
A2:=BARSLAST(REF(CROSS(K,J),1));
顶背:=REF(CLOSE,A2+1)
顶:DRAWLINE(A2=0,D,顶背,D,0),COLORBLUE,POINTDOT;
DRAWTEXT(顶背,D,'顶B'),COLORYELLOW;
牛市通网是一个牛股推荐网与低风险投资知识网,可以在线联系客服领取牛股。牛市通网从权威的投资专家、金融分析师等投资信息中挑选优质的文章进行发布。牛市通网主要为投资者提供股票知识、股票观点、股票分析和明智金融投资讨论等信息。