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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信主力风向标主图指标公式源码


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

VAR44:=10;
VAR45:=10;
VAR46:=3;
VAR47:=10;
VAR48:=2.5;
VAR49:=MAX(MAX(HIGH-LOW,Abs(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));
VAR50:=(HIGH+LOW)/2+MA(VAR49,VAR47)*VAR48;
VAR51:=(HIGH+LOW)/2-MA(VAR49,VAR47)*VAR48;
VAR52:=REF(VAR50,BARSLAST(VAR50<=REF(VAR50,1)));
VAR53:=LLV(VAR50,VAR45*1.5);
VAR54:=IF(VAR53!=REF(VAR53,1) AND VAR52< REF(VAR52,1),VAR52,IF(VAR52=VAR53,VAR52,VAR53));
VAR55:=BARSLAST(crOSS(0.5,VAR50=VAR54))+1;
VAR56:=CROSS(COUNT(CROSS(CLOSE,VAR54) OR CROSS(CLOSE,REF(VAR54,2)) AND VAR50>VAR54,VAR55),0.5);
VAR57:=BARSLAST(VAR56);
VAR58:=BARSLAST(CROSS(HHV(VAR51,VAR57+1),CLOSE));
VAR59:=CROSS(VAR58,VAR57);
VAR60:=CROSS(VAR57,VAR58);
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
AA:IF(VAR58>VAR57,HHV(VAR51,BARSLAST(VAR59)+1),LLV(VAR50,BARSLAST(VAR60)+1)),COLORGREEN,LINETHICK6;
庄家成本线:IF(VAR58>VAR57,AA,DRAWNULL),COLOR0000C8,LINETHICK6;
DRAWICON(CROSS(VAR58,VAR57),AA,42);
DRAWICON(CROSS(VAR57,VAR58),AA*1.015,43);
买进:CROSS(VAR58,VAR57)*100,NODRAW,COLORRED;
卖出:CROSS(VAR57,VAR58)*100,NODRAW;





回复

举报

QQ|

GMT+8, 2024-11-16 13:41

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