股票论坛

标题: 飞狐KDJ波动通道指标公式 [打印本页]

作者: 暴风雪天    时间: 2016-9-3 16:16
标题: 飞狐KDJ波动通道指标公式
N:=9;
P1:=3;
P2:=3;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,P1,1);
D:=SMA(K,P2,1);
mtm:3*K-2*D;
MB:=MA(MTM,10);
R:=(MTM-MB)*(MTM-MB);
X:=SQRT(MA(R,12));
UPPER:MB+0.98*X;
LOWER:MB-0.98*X,COLORFFCC33;
DRAWICON(CROSS(MTM,LOWER),LOWER,4);
DRAWICON(CROSS(UPPER,MTM),UPPER,5);
80;
50;
20, COLORGREEN;
tt:(UPPER+lower)/2,linethick1,coloryellow;
FILLRGN(mtm>upper,mtm,upper),colorred;
FILLRGN(mtm<lower,mtm,lower),colorgreen;
作者: (百川)    时间: 2016-9-5 21:54
改了一下,看看通达信上能不能用。
N:=9;
P1:=3;
P2:=3;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,P1,1);
D:=SMA(K,P2,1);
MTM:3*K-2*D;
MB:=MA(MTM,10);
R:=(MTM-MB)*(MTM-MB);
X:=SQRT(MA(R,12));
UPPER:MB+0.98*X;
LOWER:MB-0.98*X,COLORFFCC33;
DRAWICON(CROSS(MTM,LOWER),LOWER,4);
DRAWICON(CROSS(UPPER,MTM),UPPER,5);
80;
50;
20, COLORGREEN;
TT:(UPPER+LOWER)/2,LINETHICK1,COLORYELLOW;
DRAWTEXT(MTM>UPPER,MTM,'上'),COLORRED;
DRAWTEXT(MTM<LOWER,MTM,'下'),COLORGREEN;
作者: 龙的传人    时间: 2016-9-19 00:38





欢迎光临 股票论坛 (http://100000w.com/) Powered by Discuz! X3.2