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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[大智慧] 大智慧KD背离指标公式


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 2024-3-17 18:59:43
大智慧KD背离指标公式介绍

大智慧KD背离指标公式

DRAWGBKLAST(c>0,STRIP(RGB(0,4,10),RGB(0,60,100),0));
RSV:=(CLOSE-LLV(LOW,n))/(HHV(HIGH,n)-LLV(LOW,n))*100;
K:SMA(RSV,5,1),LINETHICK0;
D:SMA(K,3,1),LINETHICK0;
J:=(3*K-2*D);
RSV56:=(CLOSE-LLV(LOW,56))/(HHV(HIGH,56)-LLV(LOW,56))*100;
K1:SMA(RSV56,15,1),LINETHICK0;
D1:SMA(K1,4,1),LINETHICK0;
FILLRGN(K,D,K<D),Color77cc88;
FILLRGN(K,D,K>D),COLOR8888cc;
FILLRGN(K1,D1,K1<D1),COLOR44ff44;
FILLRGN(K1,D1,K1>D1),COLOR4444ff;
买不亏:4*K1-3.1*D1,color592cdb;

买反弹:(CROSS(买不亏,12) and llv(买不亏,10)<8)*100,STICK,LINETHICK3,color99ffff;
买牛股:(CROSS(K1,d1) and REF(K1,1)<12)*100,STICK,LINETHICK2,colorred;
B1:=BARSLAST(REF(CROSS(K,D),1));
短买:REF(C,B1+1)>C AND K>REF(K,B1+1) AND CROSS(K,D) AND REF(D,B1+1)<20 AND HHV(D,B1+1)<50,LINETHICK0;

VERTLINE(短买,2),COLOR592cdb,pointdot;
A2:=BARSLAST(REF(CROSS(d1,k1),1));
B2:=BARSLAST(REF( CROSS(D,K),1));
S短出:REF(c,B2+1)<c AND K<REF(K,B2+1) AND CROSS(D,K) AND REF(D,B2+1)>80 AND HHV(D,B2+1)>50,LINETHICK0;
S离场:(REF(CLOSE,A2+1)<CLOSE AND d1<REF(d1,A2+1) AND CROSS(d1,k1) AND D1>80) or (CROSS(d1,k1) and (REF(K1,1)>90 or REF(K1,2)>90) ) ,LINETHICK0;
STICKLINE(S离场,100,60,3,0),COLORblue,align0;
STICKLINE(S短出,100,60,3,0),COLORgreen,align0;

F:=IF(C>O,O,C);
火箭升空:(F-l)/l>0.02 and REF(买不亏,1)<12 AND J> REF(J,1) AND IF(C<O,2*(H-F)/F<(F-L)/L,(H-F)/F<(F-L)/L) AND L=LLV(L,7),LINETHICK0;
STICKLINE(火箭升空,0,40,3,0),COLORyellow,align0;
8,pointdot,COLORFFFFFF;
20,pointdot,COLORffdd00;
60,pointdot,COLORFFFFFF;
80,pointdot,COLORFFFFFF;


 




 



gd28003

回复

举报

QQ|

GMT+8, 2024-11-16 21:43

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