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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信慢牛共振指标公式源码副图


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

VAR1:=(3*CLOSE+HIGH+LOW+OPEN)/6; VAR2:=EMA(VAR1,35); VAR3:=(HHV(VAR2,10)+HHV(VAR2,30)+HHV(VAR2,90))/3; VAR4:=(LLV(VAR2,10)+LLV(VAR2,30)+LLV(VAR2,90))/3; VAR5:=(HHV(VAR3,5)+HHV(VAR3,15)+HHV(VAR3,30))/3; VAR6:=(LLV(VAR4,5)+LLV(VAR4,15)+LLV(VAR4,30))/3; STICKLINE(EMA(EMA(VAR1,2),2)>VAR6,(-2),2,12,0),COLORRED; STICKLINE(EMA(EMA(VAR1,2),2)<=VAR6,(-2),2,12,0),COLORGREEN; VAR7:=expma(CLOSE,6); VAR8:=EXPMA(CLOSE,18); VAR18:500*(VAR7-VAR8)/VAR8+2,COLORYELLOW,LINETHICK2; VAR19:EMA(VAR18,3),COLORBLUE,LINETHICK2; STICKLINE(VAR18>2,2,VAR18,2,1),COLORMAGENTA; STICKLINE(VAR18>2 AND EMA(EMA(VAR1,2),2)>VAR6,2,VAR18,2,0),COLORMAGENTA; 共振:=BARSLASTCOUNT(EMA(EMA(VAR1,2),2)>VAR6 AND VAR18>2)=1; DRAWICON(共振 ,VAR18,9); 尊重市场:IF(VAR18>=0 AND REF(VAR18,1)< 0 AND REF(VAR18,2)< 0 AND VAR19>REF(VAR19,1) OR (VAR18>REF(VAR18,1) AND REF(VAR18,1)< REF(VAR18,2) AND REF(VAR18,2)>0) OR (VAR18>REF(VAR18,1) AND REF(VAR18,1)>REF(VAR18,2) AND REF(VAR18,2)< REF(VAR18,3) AND VAR19>REF(VAR19,1) AND REF(VAR19,1)<=REF(VAR19,2)) OR (VAR18>REF(VAR18,1) AND VAR19>REF(VAR19,1) AND REF(VAR19,1)<=REF(VAR19,2) AND VAR18>0 AND VAR19>0),666,0),NODRAW,COLORYELLOW; VAR22:IF(VAR18>REF(VAR18,1) AND REF(VAR18,1)< REF(VAR18,2) AND VAR18>=VAR19 AND REF(VAR18,1)< REF(VAR19,1),1,0),NODRAW,COLORYELLOW; DRAWTEXT(VAR22=1,VAR18*1.5,'慢牛共振'),COLORRED;








回复

举报

QQ|

GMT+8, 2024-11-16 07:08

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