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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 主题主图(网均线、提示)


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

主题主图(网均线、提示)

【通达信】主题主图(网均线、提示)-指标公式源码

{网均线}
STICKLINE( MA(CLOSE,6)>MA(CLOSE,33),MA(CLOSE,6),MA(CLOSE,33),6,0),COLOR000088;
STICKLINE( MA(CLOSE,6)<MA(CLOSE,30),MA(CLOSE,6),MA(CLOSE,30),6,0),COLOR008800;
DRAWKLINE(H,O,L,C);
网1:EXPMA(CLOSE,5),COLORWHITE;
网2:EXPMA(CLOSE,12),COLORGRAY;
网3:EXPMA(CLOSE,33),COLORFF00FF,LINETHICK3;
IF(网3<REF(网3,1),网3,DRAWNULL),COLOR00FF00,LINETHICK3;
IF(网3<REF(网1,1),网1,DRAWNULL),COLORWHITE,LINETHICK1;
IF(网1<REF(网3,1),网1,DRAWNULL),COLORGREEN,LINETHICK1;
日:=50;昨前:=3;
高1:=REF(HHV(H,日),昨前);
低1:=REF(LLV(L,日),昨前);
H1:=高1-(高1-低1)*0.191;
H2:=高1-(高1-低1)*0.382;
H3:=高1-(高1-低1)*0.5;
H4:=高1-(高1-低1)*0.618;
H5:=高1-(高1-低1)*0.809;
L1:=低1+(高1-低1)*1.191;
L2:=低1+(高1-低1)*1.382;
L3:=低1+(高1-低1)*1.5;
L4:=低1+(高1-低1)*1.618;
L5:=低1+(高1-低1)*1.809;
短压:REFDATE(高1,DATE),COLORGREEN,LINETHICK1;
支撑19.1%:REFDATE(H1,DATE),COLORYELLOW;
支撑38.2%:REFDATE(H2,DATE),COLORMAGENTA;
支撑50%:REFDATE(H3,DATE),COLORLIGRAY;
支撑61.8%:REFDATE(H4,DATE),COLORWHITE,LINETHICK1;
支撑80.9%:REFDATE(H5,DATE),COLORWHITE;
低:REFDATE(低1,DATE),COLORWHITE;
阻力119.1%:REFDATE(L1,DATE),COLORYELLOW;
阻力138.2%:REFDATE(L2,DATE),COLORMAGENTA;
阻力150%:REFDATE(L3,DATE),COLORLIGRAY;
阻力161.8%:REFDATE(L4,DATE),COLORRED;
阻力180.9%:REFDATE(L5,DATE),COLORWHITE;

{提示}
DRAWTEXT(ISLASTBAR,短压,'短压'),COLORWHITE;


STICKLINE(CURRBARSCOUNT=1,低,低,1000,-1),COLORWHITE;
STICKLINE(CURRBARSCOUNT=1,短压,短压,1000,-1),COLORGREEN;
STICKLINE(CURRBARSCOUNT=1,支撑19.1%,支撑19.1%,1000,-1),COLORWHITE;
STICKLINE(CURRBARSCOUNT=1,支撑38.2%,支撑38.2%,1000,-1),COLORWHITE;
STICKLINE(CURRBARSCOUNT=1,支撑50%,支撑50%,1000,-1),COLORWHITE;
STICKLINE(CURRBARSCOUNT=1,支撑61.8%,支撑61.8%,1000,-1),COLORWHITE;
STICKLINE(CURRBARSCOUNT=1,支撑80.9%,支撑80.9%,1000,-1),COLORWHITE;
STICKLINE(CURRBARSCOUNT=1,阻力119.1%,阻力119.1%,1000,-1),COLORYELLOW;
 


 





gd14764

回复

举报

QQ|

GMT+8, 2024-12-26 13:29

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