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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信复合指标源码


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

以下是通达信复合指标源码

MAV:=(2*C+H+L)/4;

VAR6:=LLV(LOW,34);

VAR7:=HHV(HIGH,34);

SK:= EMA((MAV-VAR6)/(VAR7-VAR6)*100,13);

SD: EMA(0.667*REF(SK,1)+0.333*SK,2);

高抛:80, POINTDOT;

低吸:20, POINTDOT;

强弱分界:50, POINTDOT;

DRAWTEXT(CROSS(SD,16),低吸,'●买入↑');

DRAWTEXT(CROSS(85,SD),高抛,'●出逃↓');

TR1 := SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),14);

HD := HIGH-REF(HIGH,1);

LD := REF(LOW,1)-LOW;

DMP:= SUM(IF(HD>0 AND HD>LD,HD,0),14);

DMM:= SUM(IF(LD>0 AND LD>HD,LD,0),14);

PDI:=DMP*100/TR1;

MDI:=DMM*100/TR1;

0;

GG:=PDI-MDI;IF(GG<0,GG,0), LINETHICK2;

IF(GG>0,GG,0),COLORF00FF0, 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);

主力进场:IF(VAR5>REF(VAR5,1),VAR5,0),COLORRED,NODRAW;

STICKLINE(VAR5>REF(VAR5,1),0,VAR5,3,0 ),COLORRED;

洗盘:IF(VAR5<REF(VAR5,1),VAR5,0),COLORGREEN,NODRAW;

STICKLINE(VAR5<REF(VAR5,1),0,VAR5,3,0),COLORGREEN;




回复

举报

QQ|

GMT+8, 2024-11-18 04:17

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