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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[指标编写] 通达信资金拐点指标公式源码副图


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

VAR1:=(EMA(CLOSE,1)); VAR2:=(EMA(CLOSE,5)); VAR3:=(EMA(CLOSE,10)); VAR4:=(EMA(CLOSE,20)); VAR5:=(EMA(CLOSE,30)); VAR6:=(EMA(CLOSE,60)); VAR7:=(IF(VAR1-VAR2>=0,1,0)); VAR8:=(IF(VAR1-VAR3>=0,1,0)); VAR9:=(IF(VAR1-VAR4>=0,1,0)); VAR10:=(IF(VAR1-VAR5>=0,1,0)); VAR11:=(IF(VAR1-VAR6>=0,1,0)); VAR13:=(VAR7+VAR8+VAR9+VAR10+VAR11); VAR12:=(VAR1-VAR6); 短趋势:(VAR1); 中趋势:(VAR6); 热度:(VAR13),NODRAW; IF(VAR13=0,短趋势,DRAWNULL),COLOR006600; IF(VAR13=1,短趋势,DRAWNULL),COLOR00C800; IF(VAR13=2,短趋势,DRAWNULL),COLOR00F400; IF(VAR13=3,短趋势,DRAWNULL),COLORBLUE; IF(VAR13=4,短趋势,DRAWNULL),COLORRED; IF(VAR13=5,短趋势,DRAWNULL),COLORMAGENTA; IF(VAR13=0,中趋势,DRAWNULL),COLOR006600; IF(VAR13=1,中趋势,DRAWNULL),COLOR00C800; IF(VAR13=2,中趋势,DRAWNULL),COLOR00F400; IF(VAR13=3,中趋势,DRAWNULL),COLORBLUE; IF(VAR13=4,中趋势,DRAWNULL),COLORRED; IF(VAR13=5,中趋势,DRAWNULL),COLORMAGENTA; STICKLINE(VAR13=0 AND 短趋势>=中趋势,中趋势*1.01,短趋势*0.99,2,0),COLOR006600; STICKLINE(VAR13=0 AND 短趋势< 中趋势,短趋势*1.01,中趋势*0.99,2,0),COLOR006600; TY:=H; STICKLINE(VAR13=1 AND 短趋势>=中趋势,中趋势*1.01,短趋势-VAR12*0.47,2,0),COLOR00C800; STICKLINE(VAR13=1 AND 短趋势>=中趋势,短趋势-VAR12*0.53,短趋势*0.99,2,0),COLOR006600; STICKLINE(VAR13=1 AND 短趋势< 中趋势,短趋势*1.01,短趋势-VAR12*0.47,2,0),COLOR00C800; STICKLINE(VAR13=1 AND 短趋势< 中趋势,短趋势-VAR12*0.53,中趋势*0.99,2,0),COLOR006600; STICKLINE(VAR13=2 AND 短趋势>=中趋势,中趋势*1.01,短趋势-VAR12*0.47,2,0),COLOR00F400; STICKLINE(VAR13=2 AND 短趋势>=中趋势,短趋势-VAR12*0.53,短趋势*0.99,2,0),COLOR00C800; STICKLINE(VAR13=2 AND 短趋势< 中趋势,短趋势*1.01,短趋势-VAR12*0.47,2,0),COLOR00F400; STICKLINE(VAR13=2 AND 短趋势< 中趋势,短趋势-VAR12*0.53,中趋势*0.99,2,0),COLOR00C800; STICKLINE(VAR13=3 AND 短趋势>=中趋势,中趋势*1.01,短趋势-VAR12*0.47,2,0),COLORBLUE; STICKLINE(VAR13=3 AND 短趋势>=中趋势,短趋势-VAR12*0.53,短趋势*0.99,2,0),COLOR00F400; STICKLINE(VAR13=3 AND 短趋势< 中趋势,短趋势*1.01,短趋势-VAR12*0.47,2,0),COLORBLUE; STICKLINE(VAR13=3 AND 短趋势< 中趋势,短趋势-VAR12*0.53,中趋势*0.99,2,0),COLOR00F400; STICKLINE(VAR13=4 AND 短趋势>=中趋势,中趋势*1.01,短趋势-VAR12*0.47,2,0),COLORRED; STICKLINE(VAR13=4 AND 短趋势>=中趋势,短趋势-VAR12*0.53,短趋势*0.99,2,0),COLORBLUE; STICKLINE(VAR13=4 AND 短趋势< 中趋势,短趋势*1.01,短趋势-VAR12*0.47,2,0),COLORRED; STICKLINE(VAR13=4 AND 短趋势< 中趋势,短趋势-VAR12*0.53,中趋势*0.99,2,0),COLORBLUE; STICKLINE(VAR13=5 AND 短趋势>=中趋势,中趋势*1.01,短趋势*0.99,2,0),COLORMAGENTA; STICKLINE(VAR13=5 AND 短趋势< 中趋势,短趋势*1.01,中趋势*0.99,2,0),COLORMAGENTA; STICKLINE(VAR13=5 AND 短趋势< 中趋势,短趋势*1.01,中趋势*0.99,7.5,0),COLORMAGENTA; DRAWICON(crOSS(VAR1,VAR6) AND NOT(REF(VAR13=5,1)) AND VAR13=5,中趋势,9);








回复

举报

QQ|

GMT+8, 2024-11-27 23:33

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