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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信御龙扶摇指标公式源码


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

A:=(3*C+H+L+O)/6;
XJ:=(A+0.618*REF(A,1)+0.382*REF(A,2)+0.236*REF(A,3)+0.146*REF(A,4))/2.382;
YCZXH:=(MA(HHV(A,2),5)+MA(HHV(A,2),13)+MA(HHV(A,2),21)+MA(HHV(A,2),32))/4;
YCZXL:=(MA(LLV(A,2),5)+MA(LLV(A,2),13)+MA(LLV(A,2),21)+MA(LLV(A,2),32))/4;
海:EMA(YCZXH,21),COLORCYAN,LINETHICK1;
平:EMA(YCZXL,21),COLORCYAN,LINETHICK1;
面:(平+海)/2,COLORCYAN,LINETHICK1;
PJ:=(10*A+9*REF(A,1)+8*REF(A,2)+7*REF(A,3)+6*REF(A,4)+5*REF(A,5)+4*REF(A,6)+3*REF(A,7)+2*REF(A,8)+REF(A,9))/55;
A1:=EMA(PJ,3),COLOR004000;
A2:=EMA(PJ,5),COLOR004000;
A3:=EMA(PJ,7),COLOR004000;
A4:=EMA(PJ,9),COLOR004000;
A5:=EMA(PJ,11),COLOR004000;
LX:=REF(XJ,1);
ZD:=(SMA(MAX(XJ-LX,0),5,1)/SMA(Abs(XJ-LX),5,1))*100;
KX1:=(CLOSE>=OPEN) AND ZD>=50;
KX2:=(CLOSE<OPEN) AND ZD>=50;
KX3:=(CLOSE>=OPEN) AND ZD<50;
KX4:=(CLOSE<OPEN) AND ZD<50;
龙:IF(A5<REF(A5,1),A5,DRAWNULL),COLORWHITE,LINETHICK1;
IF(A5>REF(A5,1),A5,DRAWNULL),COLORYELLOW,LINETHICK1;
IF(A4<REF(A4,1),A4,DRAWNULL),COLORWHITE,LINETHICK1;
IF(A4>REF(A4,1),A4,DRAWNULL),COLORYELLOW,LINETHICK1;
IF(A3<REF(A3,1),A3,DRAWNULL),COLORWHITE,LINETHICK1;
IF(A3>REF(A3,1),A3,DRAWNULL),COLORYELLOW,LINETHICK1;
IF(A2<REF(A2,1),A2,DRAWNULL),COLORWHITE,LINETHICK1;
IF(A2>REF(A2,1),A2,DRAWNULL),COLORYELLOW,LINETHICK1;
IF(A1<REF(A1,1),A1,DRAWNULL),COLORWHITE,LINETHICK1;
IF(A1>REF(A1,1),A1,DRAWNULL),COLORYELLOW,LINETHICK1;





回复

举报

QQ|

GMT+8, 2024-11-17 03:08

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