【同花顺】正反KDJ指标公式

2015.11.08 02:59

Z1:2.21,colorred,DOTLINE;
Z0:3,colorgray,DOTLINE;
Z2:4.33,colorlicyan,DOTLINE;
RSV=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
a=SMA(RSV,3,1);
b=SMA(a,3,1);
e=3*a-2*b;
//J1:e/8,colorlicyan;
IF(a<0) a=0;
IF(a>100) a=100;
IF(b<0) b=0;
IF(b>100) b=100;
IF(e<0) e=0;
IF(e>100) e=100;
K:=a;
D:=b;
J:=e;
S0:=(REF(K,1)/K+REF(D,1)/D+REF(J,1)/J),colormagenta;
S1:IF(S0>10,10,S0),colormagenta;
S00:=(K/REF(K,1)+D/REF(D,1)+J/REF(J,1)),coloryellow;
S2:IF(S00>10,10,S00),coloryellow;
DIFF := 10*(EMA(CLOSE,12) – EMA(CLOSE,26)),colorwhite,DOTLINE;
DEA := EMA(DIFF,9),coloryellow,DOTLINE;
S3:=S1+S2;
S4:IF(DIFF > DEA,S1+S2,DRAWNULL),colorred,DOTLINE;
S5:IF(DIFF = DEA,S1+S2,DRAWNULL),colorwhite,DOTLINE;
S6:IF(DIFF < DEA,S1+S2,DRAWNULL),colorgreen,DOTLINE;
DRAWTEXT(CROSS(S1,Z2),S3+0.8,”S”),colorgreen;
DRAWTEXT(S2-S1>=1.46,S3+1,”B”),colorred;
DRAWTEXT(CROSS(REF(S1,1),Z2)AND S2-S1>0.53,S3+2,”中”),colorcyan;
STICKLINE(S2>Z0,S2,Z0,8,0),colorred;
STICKLINE(S2<=Z0,S2,Z0,8,0),colorgreen;
DRAWICON(CROSS(S2,S1),S1,1);
DRAWICON(CROSS(S1,S2),S1,2);
DRAWTEXT(S2>4.22 AND DIFF>DEA,0,”.”),colorred;
CC1:IF(CROSS(S2,S1),1,0),colorred,NODRAW;

 

0 0 0

数字时代的手工艺人

我要投稿

申明:本文为作者投稿或转载,在概念股网 http://www.gainiangu.com/ 上发表,为其独立观点。不代表本网立场,不代表本网赞同其观点,亦不对其真实性负责,投资决策请建立在独立思考之上。

< more >

ABCDEFGHIJKLMNOPQRSTUVWXYZ0-9
暂无相关概念股
暂无相关概念股
go top