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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信立桩狙击指标公式源码副图


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

VAR1:=EMA(COST(99),10); VAR2:=LLVBARS(LOW,60); VAR3:=FINDHIGHBARS(HIGH,VAR2+1,60,1); VAR4:=CURRBARSCOUNT=CONST(VAR3)+1; VAR5:=(3*CLOSE+HIGH+LOW+OPEN)/6; VAR6:=(8*VAR5+7*REF(VAR5,1)+6*REF(VAR5,2)+5*REF(VAR5,3)+4*REF(VAR5,4)+3*REF(VAR5,5)+2*REF(VAR5,6)+REF(VAR5,8))/36; VAR7:=vol=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>VAR6; VAR8:=FILTER(VAR7,5); VAR9:=IF(BARSLAST(VAR8)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(VAR8)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(VAR8)=3 AND CLOSE>REF(HIGH,3),1,0))); VAR10:=VAR9=1; VAR11:=IF(BARSLAST(VAR8)=1 AND CLOSE>REF(LOW,1),1,IF(BARSLAST(VAR8)=2 AND CLOSE>REF(LOW,2),1,IF(BARSLAST(VAR8)=3 AND CLOSE>REF(LOW,3),1,0))); VAR12:=VAR11=1 AND VAR10; 立桩:VAR8,NODRAW; 狙击:FILTER(VAR12,3) AND CLOSE>VAR1 AND CLOSE>VAR4,NODRAW,COLORMAGENTA; STICKLINE(CLOSE>VAR1,0,0.18,5,0),COLORRED; STICKLINE(狙击,0,1,2,0),COLORMAGENTA; STICKLINE(立桩,0,0.5,2,0),COLORLIRED;








回复

举报

GMT+8, 2025-1-19 23:26

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