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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[同花顺] 同花顺KDJ暴涨背离启动副图指标 源码 贴图 无未来


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 2024-3-26 09:48:09
同花顺KDJ暴涨背离启动副图指标 源码 贴图 无未来介绍

同花顺KDJ暴涨背离启动副图指标 源码 贴图 无未来





CC:=VOL*100/CAPITAL;
AA:=(CC-LLV(CC,89))/(HHV(CC,89)-LLV(CC,89))*100;
BB:=(CC-LLV(CC,144))/(HHV(CC,144)-LLV(CC,144))*100;
N:=6;
M1:=5;
M2:=5;
VARQS4:=IF(REF(AA,1)=100 AND AA<100,1,0),nodraw;
VARQS5:=IF(REF(BB,1)=100 AND BB<100,1,0),nodraw;
VARQS6:=IF(REF(AA,1)=0 AND AA>0,-1,0),nodraw;
VARQS7:=IF(REF(BB,1)=0 AND BB>0,-1,0),nodraw;
ZERO:0,nodraw;
天量89:=VARQS4,colorred;
地量89:=VARQS6,colorgreen;
地量144:=VARQS7,colorgreen;
天量144:=VARQS5,,colorred;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:SMA(RSV,M1,1),coloryellow,LINETHICK1;
D:SMA(K,M2,1),colorcyan,LINETHICK1;
J:3*K-2*D,colormagenta,LINETHICK1;
暴涨启动:ABS(VARQS4)+ABS(VARQS5),nodraw;
高安全区:0,colorred;
安全区:20,colorcyan;
风险区:100,colorgreen;
U1:=BARSLAST(REF(CROSS(K,D),1));
U2:=REF(C,U1+1)>C AND REF(K,U1+1)<K AND CROSS(K,D)AND d<50;
底背离:=IF(U2>0,1,0);
DRAWLINE(U1=0,D,底背离,REF(D,U1),0),colorred,LINETHICK2;
DRAWLINE(底背离,D,底背离,REF(D,U1),0),colorred,LINETHICK2;
DRAWTEXT(底背离,REF(D,U1)*1.00,'底背离'),coloryellow;
DRAWICON(暴涨启动,J-0.75*(J-REF(J,1)),'buy');
DRAWICON(暴涨启动,J-1.25*(J-REF(J,1)),'buy');
DRAWTEXT(暴涨启动,0,' 暴涨'),colorwhite;
rr:=MAX(C,O);
q1:=HHV(rr,5);
q2:=d<REF(d,1) AND REF(d,1)>REF(d,2);
A2:=BARSLAST(REF(q2,1));
DRAWLINE(暴涨启动,0,暴涨启动,J,0),colormagenta,LINETHICK1;
顶背离:= REF(q1,A2+1)<q1 AND k<REF(k,A2+1) AND q2;
DRAWLINE(A2=0 ,D,顶背离,REF(D,A2),0),colorwhite,LINETHICK2;
DRAWLINE(顶背离,D,顶背离,REF(D,A2),0),colorwhite,LINETHICK2;
DRAWTEXT(顶背离,REF(D,A2)*1.02,'顶背离'),colorgreen;
Var3:=(2*CLOSE+HIGH+LOW)/4;
Var4:=LLV(LOW,34);
VarA:=HHV(HIGH,34);
VarB:=EMA((Var3-Var4)/(VarA-Var4)*100,13);
VarC:=EMA(0.667*REF(VarB,1)+0.333*VarB,2);
暴跌来临:ABS(VARQS6)+ABS(VARQS7),nodraw;
oo:=VarB-VarC;
STICKLINE(oo>0,VarB,VarC,8,0),colorred;
STICKLINE(oo<0,VarB,VarC,8,0),colorgreen;
WWWGOODGUPIAOCOM:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;
DRAWICON(暴跌来临,J+0.75*ABS((J-REF(J,1))),'sell');
DRAWICON(暴跌来临,J+1.25*ABS((J-REF(J,1))),'sell');
DRAWTEXT(暴跌来临,110,'暴跌'),colorligreen;
DRAWLINE(暴跌来临,100,暴跌来临,J,100),colorligreen,LINETHICK1;



gd57329

回复

举报

QQ|

GMT+8, 2024-11-18 16:19

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