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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信三线定强弱指标公式源码


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

GSKZ1:=POW(10,6);
GSKZ2:=IF(GSKZ1>0,1,0);
GSKZ3:=SUM(MAX(MAX(HIGH-LOW,Abs(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),10);
GSKZ4:=HIGH-REF(HIGH,1);
GSKZ5:=REF(LOW,1)-LOW;
GSKZ6:=SUM(IF(GSKZ4>0 AND GSKZ4>GSKZ5,GSKZ4,0),20);
GSKZ7:=SUM(IF(GSKZ5>0 AND GSKZ5>GSKZ4,GSKZ5,0),20);
GSKZ8:=LLV(LOW,240);
GSKZ9:=HHV(HIGH,240);
趋势线:(CLOSE-GSKZ8)/GSKZ8*100,COLORGREEN;
中线:GSKZ7/GSKZ3/2*100,COLORMAGENTA;
散户线:(GSKZ9-CLOSE)/CLOSE*100,COLORWHITE;
HH:趋势线/散户线,NODRAW,COLORWHITE;
GSKZ10:=HHV(CLOSE,20);
GSKZ11:=EMA(GSKZ10,30)*1.03;
GSKZ12:=EMA(GSKZ10,120)*1.03;
GSKZ13:=(CLOSE+HIGH+LOW)/3;
GSKZ14:=EMA(GSKZ13,10);
GSKZ15:=REF(GSKZ14,1);
看涨:IF(趋势线>15 AND 趋势线>中线,趋势线,DRAWNULL),COLORYELLOW,LINETHICK2;
超强:IF(趋势线>30 AND 趋势线>散户线,趋势线,DRAWNULL),COLORRED,LINETHICK2;
DRAWICON(FILTER(看涨 OR 超强 AND 趋势线>=HHV(趋势线,10) AND OPEN/GSKZ14<1.08 AND OPEN/GSKZ11<1.1 AND OPEN/GSKZ12<1.2 AND CLOSE>GSKZ11 AND CLOSE>=REF(CLOSE,1)*1.05 AND 散户线<60 AND 趋势线<120,30),趋势线,1)*GSKZ2;





回复

举报

QQ|

GMT+8, 2024-11-16 20:35

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