大智慧自用的KDJ主图源码
-
相关简介:大智慧自用的KDJ主图源码 input:N(9),m1(3),m2(3); RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100; K:SMA(RSV,m1,1),COLORFFFFFF,linethick0; D:SMA(K,m2,1),COLOR00FFFF,linethick0; J:3*K-2*D,linethick0; hh0:=HHV(HIGH,N); ll0:=LLV(LOW,N); jc:=ema((hh0+ll0)/2,N);
-
文章来源:股海网作者:股海网发布时间:2014-01-07浏览次数:
大智慧自用的KDJ主图源码
input:N(9),m1(3),m2(3);
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:SMA(RSV,m1,1),COLORFFFFFF,linethick0;
D:SMA(K,m2,1),COLOR00FFFF,linethick0;
J:3*K-2*D,linethick0;
hh0:=HHV(HIGH,N);
ll0:=LLV(LOW,N);
jc:=ema((hh0+ll0)/2,N);
bl:=(CLOSE-LL0)/(HH0-LL0);
kz:=IF(BARSSINCE(C)<1,C,sma(jc*(1+(BL-0.5)/8),m1,1));
dz:=IF(BARSSINCE(C)<1,C,sma(jc*(SMA(BL,3,1)-0.5)/8+jc,m2,1));
jz:=IF(BARSSINCE(C)<1,C,3*kz-2*dz);
POLYLINE(kz,kz),COLORFFFFFF;
POLYLINE(dz,dz),COLOR00FFFF;
POLYLINE(jz,jz);
DRAWGBKLAST(c>0,STRIP(RGB(60,10,0),RGB(10,50,0),0));
进:=CROSS(kz,dz);
DRAWTEXT(进,L*0.98,'短'),ALIGN1,colorred,LINETHICK2;