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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信分时图标提示黄金分割(源码)


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

以下是通达信分时图标提示黄金分割(源码)

HH:=CONST(HHV(C,0));
LL:=CONST(LLV(C,0));
HL:=HH-LL;
顶:HH,COLOR545454,LINETHICK1,DOTLINE;
DRAWICON(C=HH,HH,35);
A809:0.809*HL+LL,COLOR545454,DOTLINE;
A618:0.618*HL+LL,COLOR545454,DOTLINE;
A500:0.500*HL+LL,COLOR545454,DOTLINE;
A382:0.382*HL+LL,COLOR545454,DOTLINE;
A191:0.191*HL+LL,COLOR545454,DOTLINE;
底:LL,COLOR545454,LINETHICK1,DOTLINE;
DRAWICON(C=LL,LL,34);
DRAWTEXT(CURRBARSCOUNT=240,HH,'顶'),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=240,A809,'809'),COLOR545454;
DRAWTEXT(CURRBARSCOUNT=240,A618,'618'),COLOR545454;
DRAWTEXT(CURRBARSCOUNT=240,A500,'500'),COLOR545454;
DRAWTEXT(CURRBARSCOUNT=240,A382,'382'),COLOR545454;
DRAWTEXT(CURRBARSCOUNT=240,A191,'191'),COLOR545454;
DRAWTEXT(CURRBARSCOUNT=240,LL,'底'),COLORYELLOW;
MD:=EMA(C,0)-EMA(C,5);
STICKLINE(MD>0,DYNAINFO(3),DYNAINFO(3)+MD*1.5,0,1),COLOR545454;
STICKLINE(MD<=0,DYNAINFO(3),DYNAINFO(3)+MD*1.5,0,1),COLOR545454;
均价:SUM(V*C,0)/SUM(V,0),COLORYELLOW;





回复

举报

QQ|

GMT+8, 2024-11-17 08:56

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