股资源-股票学习站-学炒股-股票课程-炒股教程-分析选股指标-入门基础知识

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[同花顺] 同花顺动能分析KDJ副图指标 源码


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 2024-3-29 17:46:52
同花顺动能分析KDJ副图指标 源码介绍

同花顺动能分析KDJ副图指标 源码

动能分析KDJ
本指标由主力清洗,博尔主导动能,短趋势线,KDJ,阻力与支撑指标组成。
该指标对行情趋势的把握比较到位。短趋势线由红绿相间的线段组成,红色线段的区域代表多头,绿色线段代表空头。主力进场,洗盘,拉高,出货都可以能过本指标即时体现。
当股价在低位且短趋势线刚出现红色时,可介入。高位放量且KDJ出现死叉,减仓操作。
特别提示:空头区域所出现买入信号多数为无效信号,多头区域所出现的卖出信号多数也是无效信号,因为趋势决定走势。
请配合大盘,均线,成交量和其他指示使用。





RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:SMA(RSV,M1,1);
D:SMA(K,M2,1);
J:3*K-2*D;
D: EMA(0.667*REF(K,1)+0.333*K,2),colorgreen,LINETHICK1;
DRAWICON(CROSS(K,d),d,'buy');
DRAWICON(CROSS(d,k),k,'sell');
A:=EMA(C,14),colorwhite,LINETHICK1;
B:=(A-REF(A,1))/REF(A,1)*100,NODRAW;
支撑:IF(B>=0,REF(EMA(C,14),BARSLAST(CROSS(B,0))+1),DRAWNULL),colorred,LINETHICK2;
阻力:IF(B<0,REF(EMA(C,14),BARSLAST(CROSS(0,B))+1),DRAWNULL),colorgreen,LINETHICK2;
VAR1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),10,1);
VAR3:=EMA(VAR2,10);
VAR4:=LLV(LOW,33);
VAR5:=EMA(IF(LOW>=VAR4,VAR3,0),3);
z:0,colorblack;
主力进场:IF(VAR5<REF(VAR5,1),VAR5,0),colorred,NODRAW;
洗盘:IF(VAR5>REF(VAR5,1),VAR5,0),colorgreen,NODRAW;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,3,0),colorgreen;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,3,0 ),COLOR000055;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,2.6,0 ),COLOR000077;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,2.1,0 ),COLOR000099;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,1.5,0 ),COLOR0000BB;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,0.9,0 ),COLOR0000DD;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,0.3,0 ),COLOR0000FF;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,3,0),COLOR005500;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,2.6,0),COLOR007700;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,2.1,0),COLOR009900;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,1.5,0),COLOR00BB00;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,0.9,0),COLOR00DD00;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,0.3,0),COLOR00FF00;
VAR21:=SMA(ABS(HIGH-VAR1),13,1)/SMA(MIN(HIGH-VAR1,0),10,1);
VAR31:=EMA(VAR21,10);
VAR41:=HHV(HIGH,33);
VAR51:=EMA(IF(HIGH<=VAR41,VAR31,0),3);
主力拉高:IF(VAR51>REF(VAR51,1),VAR51,0),coloryellow,NODRAW;
STICKLINE(VAR51>REF(VAR51,1),0,VAR51,3,0),coloryellow;
出货:IF(VAR51<REF(VAR51,1),VAR51,0),colorcyan,NODRAW;
STICKLINE(VAR51<REF(VAR51,1),0,VAR51,3,0 ),colorcyan;
短趋势线:MA(CLOSE,13),colorred,LINETHICK3;
涨:IF(短趋势线>REF(短趋势线,1),短趋势线,DRAWNULL),colorred,LINETHICK3;
平:=IF(短趋势线=REF(短趋势线,1),短趋势线,DRAWNULL),COLOR00FFFF,LINETHICK3;
跌:IF(短趋势线<REF(短趋势线,1),短趋势线,DRAWNULL),COLOR80FF00,LINETHICK3;
TT:=(2*CLOSE+OPEN+HIGH+LOW);
主导动能:TT/EMA(TT,4)-1,COLORSTICK;
FF:=主导动能;
STICKLINE(FF>0,0,FF,3,0),COLOR33CFDD;
STICKLINE(FF>0 AND FF>REF(FF,1),0,FF,3,0),COLOR0000CC;
STICKLINE(FF<=0,0,FF,3,0),COLOR00CC00;
STICKLINE(FF<=0 AND FF>REF(FF,1),0,FF,3,0),COLORFF9900;
做多主导:IFF(FF>0 AND FF>REF(FF,1),FF,0),NODRAW,COLOR0000CC;
获利回吐:IFF(FF>0 AND FF<=REF(FF,1),FF,0),NODRAW,COLOR33CFDD;
做空主导:IFF(FF<=0 AND FF<=REF(FF,1),FF,0),NODRAW,COLOR00CC00;
空头回补:IFF(FF<=0 AND FF>REF(FF,1),FF,0),NODRAW,COLORFF9900;






gd46056

回复

举报

QQ|

GMT+8, 2024-11-18 01:33

快速回复 返回顶部 返回列表