以下是HT-KDJ源码副图
HT-KDJ源码副图
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:SMA(RSV,M1,1),COLOR0000DD,LINETHICK2;
D:SMA(K,M2,1),COLOR555555,LINETHICK1;
J:3*K-2*D,COLORFF8855,LINETHICK2;
{PARTLINE(J,J<10 OR J>80,RGB(255,230,0)),LINETHICK2};
IF1:IF(J<10,J,DRAWNULL),COLORGREEN,LINETHICK2;
IF2:IF(J>=80,J,DRAWNULL),COLORYELLOW,LINETHICK2;
{B:J<10 AND J>9,LINETHICK0;
DRAWTEXT(B,-0.02 ,’B’ ),COLORFFFFFF};
{盖印}
{DRAWRECTABS(0,0,30,35,RGB(250,60,80)),COLOR000099;
DRAWRECTABS(0,30,30,45,RGB(250,250,80)),COLOR009999;
DRAWTEXTABS(2,5,’杨软’),COLORFFFFFF,LINETHICK1;
DRAWTEXTABS(2,18,’优化’),COLORFFFFFF,LINETHICK1;
DRAWTEXTABS(4,30,’KDJ’),COLOR0000FF,LINETHICK1;
IF1:IF(短期线<=11,短期线,DRAWNULL),COLORRED,LINETHICK2;
IF2:IF(短期线>=80,短期线,DRAWNULL),COLORYELLOW,LINETHICK2};
{KDJ指标的中文名称是随机指数,最早起源于期货市场。
随机指标是由乔治·莱恩首创的,它在通过当日或最近几日
最高价、最低价及收盘价等价格波动的波幅,反映价格趋势的强弱。
};
评论(0)