获利KDJ通达信公式 源码 贴图
NOTEXT70:=70,COLORGRAY,DOTLINE;
NOTEXT60:=60,COLORGRAY,DOTLINE;
NOTEXT50:50,COLORGRAY;
NOTEXT40:=40,COLORGRAY,DOTLINE;
NOTEXT30:=30,COLORGRAY,DOTLINE;
NOTEXT20:20,COLORGREEN,DOTLINE;
NOTEXT10:=10,COLORGRAY,DOTLINE;
NOTEXT0:0,COLORGRAY;
NOTEXT120:120,COLORBLACK;
NOTEXTD20:-20,COLORBLACK;
CH:=WINNER(H)*100;
CO:=WINNER(O)*100;
CL:=WINNER(L)*100;
{}
CC:=WINNER(C)*100,NODRAW;
DRAWKLINE(CH,CO,CL,CC);
STICKLINE(CC=100,CC,CO,0.5,0),COLORYELLOW;
N:=9;M1:=3;M2:=3;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,LINETHICK2;
K:SMA(RSV,M1,1),COLORWHITE,LINETHICK1;
D:SMA(K,M2,1),COLORCYAN,LINETHICK1;
J:3*K-2*D,COLORFF00FF,LINETHICK1;
NOTEXTA:IF(J<0,J,DRAWNULL),COLORGREEN,LINETHICK1;
NOTEXTB:IF(J>100,J,DRAWNULL),COLORGREEN,LINETHICK1;
TJ:=CURRBARSCOUNT=25;
DRAWTEXT(TJ,25,'→弱势区、不介入'),COLORFFFFFF;
未来函数检测结果如下:
该公式包含未来函数:WINNER
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
NOTEXT70赋值:70,COLORGRAY,DOTLINE
NOTEXT60赋值:60,COLORGRAY,DOTLINE
输出
NOTEXT50:50,COLORGRAY
NOTEXT40赋值:40,COLORGRAY,DOTLINE
NOTEXT30赋值:30,COLORGRAY,DOTLINE
输出
NOTEXT20:20,画绿色,DOTLINE
NOTEXT10赋值:10,COLORGRAY,DOTLINE
输出
NOTEXT0:0,COLORGRAY
输出
NOTEXT120:120,COLORBLACK
输出
NOTEXTD20:-20,COLORBLACK
CH赋值:H计算的获利盘比例*100
CO赋值:O计算的获利盘比例*100
CL赋值:L计算的获利盘比例*100
{}
CC赋值:C计算的获利盘比例*100,NODRAW
DRAWKLINE(CH,CO,CL,CC)
当满足条件CC=100时,在CC和CO之间画柱状线
N赋值:9
M1赋值:3
M2赋值:3
RSV赋值:(收盘价-N日内最低价最低值)/(N日内最高价最高值-N日内最低价最低值)*100, 线宽为2
RSV的M1日[1日权重]移动平均
K的M2日[1日权重]移动平均
输出
J:3*K-2*D,COLORFF00FF,LINETHICK1
如果J<0返回J否则返回DRAWNULL
如果J>100返回J否则返回DRAWNULL
TJ赋值: 到最后交易的周期=25
当满足条件TJ时,在25和'→弱势区、不介入'位置书写文字