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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[大智慧] 大智慧优化黄金分割点主图指标


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

优化黄金分割点主图指标

DRAWGBKLAST(v>1,STRIP(RGB(0,0,0),RGB(90,90,90),0));
ah:hhvall(h); al:llvall(l);
ahl:=ah-al;
a191:al+ahl*0.191,LINETHICK1,POINTDOT,ColorC0C0C0;
a236:al+ahl*0.236,LINETHICK1,POINTDOT,ColorC0C0C0;
a382:al+ahl*0.382,LINETHICK1,POINTDOT,ColorC0C0C0;
a5:al+ahl*0.500,LINETHICK1,POINTDOT,ColorC0C0C0;
a618:al+ahl*0.618,LINETHICK1,POINTDOT,ColorC0C0C0;
a764:al+ahl*0.764,LINETHICK1,POINTDOT,ColorC0C0C0;
a809:al+ahl*0.809,LINETHICK1,POINTDOT,ColorC0C0C0;

y:=1000;
DRAWTEXTREL(0,0,'最高 '+ah),ColorC0C0C0;
DRAWTEXTREL(0,y*0.191,'0.809 '+a809),ColorC0C0C0;
DRAWTEXTREL(0,y*0.236,'0.764 '+a764),ColorC0C0C0;
DRAWTEXTREL(0,y*0.382,'0.618 '+a618),ColorC0C0C0;
DRAWTEXTREL(0,y*0.500,'0.50 '+a5),ColorC0C0C0;
DRAWTEXTREL(0,y*0.618,'0.382 '+a382),ColorC0C0C0;
DRAWTEXTREL(0,y*0.764,'0.236 '+a236),ColorC0C0C0;
DRAWTEXTREL(0,y*0.809,'0.191 '+a191),ColorC0C0C0;
DRAWTEXTREL(0,y-30,'最低 '+al),ColorC0C0C0;

STICKLINE(close>=open,open,close,8,1),colorred;
STICKLINE(open>close,close,open,8,0 ),ColorFFFF00;
STICKLINE(close>=open,close,HIGH,0.5 ,0 ),colorred;
STICKLINE(close>=open,open,low,0.5 ,0),colorred;
STICKLINE(open>close,close,low,0.5 ,0 ),ColorFFFF00;
STICKLINE(open>close,open,HIGH,0.5 ,0 ),ColorFFFF00;





回复

举报

QQ|

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

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