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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信指尖波段指标公式源码


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

VAR1:=(EMA(CLOSE,3)-EMA(CLOSE,7));
VAR2:=EMA(VAR1,3);
VAR3:=2*(VAR1-VAR2);
VAR4:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))-0.5;
VAR5:=EMA(VAR4,3);
VAR6:=EMA(VAR5,3);
VAR7:=3*VAR5-2*VAR6;
VAR8:=REF(COUNT(VAR1>0 AND VAR3<0 AND VAR3<REF(VAR3,1),4)=4,1) AND VAR3>REF(VAR3,1);
VAR16:=REF(COUNT(VAR7<REF(VAR7,1),5)>=3,1) AND REF(VAR7,1)<-0.4 AND VAR7>REF(VAR7,1);
VAR19:=REF(crOSS(0,VAR3),3) AND COUNT(VAR1>0 AND VAR3<REF(VAR3,1),4)=4;
DRAWBAND(VAR1,RGB(200,50,55),VAR2,RGB(50,100,10));
STICKLINE(VAR8,VAR3*1.2,0,2.8,0),COLORRED;
STICKLINE(VAR3>REF(VAR3,1) AND VAR3>0,0,VAR3,1.8,0),COLOR000055;
STICKLINE(VAR3>REF(VAR3,1) AND VAR3>0,0,VAR3,1.1,0),COLOR000099;
STICKLINE(VAR3>REF(VAR3,1) AND VAR3>0,0,VAR3,0.6,0),COLOR0000BB;
STICKLINE(VAR3<=REF(VAR3,1) AND VAR3>0,0,VAR3,1.8,0),COLOR888888;
STICKLINE(VAR3<=REF(VAR3,1) AND VAR3>0,0,VAR3,1.1,0),COLORBBBBBB;
STICKLINE(VAR3<=REF(VAR3,1) AND VAR3>0,0,VAR3,0.6,0),COLORDDDDDD;
STICKLINE(VAR3>REF(VAR3,1) AND VAR3<0,0,VAR3,1.8,0),COLOR3377AA;
STICKLINE(VAR3>REF(VAR3,1) AND VAR3<0,0,VAR3,1.1,0),COLOR3388BB;
STICKLINE(VAR3>REF(VAR3,1) AND VAR3<0,0,VAR3,0.6,0),COLOR4499CC;
STICKLINE(VAR3<=REF(VAR3,1) AND VAR3<0,0,VAR3,1.8,0),COLORFF3300;
STICKLINE(VAR3<=REF(VAR3,1) AND VAR3<0,0,VAR3,1.1,0),COLORFF5500;
STICKLINE(VAR3<=REF(VAR3,1) AND VAR3<0,0,VAR3,0.6,0),COLORFF7700;
STICKLINE(VAR7<-0.5,0,0.15,1.8,0),COLORFF00FF;
DRAWICON(FILTER(VAR16,3) AND VAR3>REF(VAR3,1) AND VAR3>0,VAR3*2.08,11);
DRAWICON(VAR19,0.25,9);
DRAWTEXT_FIX(C=C,0,0.02,0,'蓝柱离场,红柱全仓,棕柱低吸,白柱风险显现 '),COLORGREEN;





回复

举报

GMT+8, 2025-1-19 20:24

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