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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信多彩K线主图公式 源码


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

以下是通达信多彩K线主图公式 源码

通达信多彩K线主图公式 源码

直观按色彩操作,提前祝大家圣诞快乐!

源码


CB90:=STRCAT('成本90: ',CON2STR(COST(90),2));
CB70:=STRCAT('成本70: ',CON2STR(COST(70),2));
CB50:=STRCAT('成本50: ',CON2STR(COST(50),2));
CB30:=STRCAT('成本30: ',CON2STR(COST(30),2));
CB10:=STRCAT('成本10: ',CON2STR(COST(10),2));
CB底:=STRCAT('底部出击: ',CON2STR(COST(1),2));

{显示}
STICKLINE(C>=COST(90) AND C>REF(C,1),L,H,0,1),COLOR0000DD;
STICKLINE(C>=COST(90) AND C>REF(C,1),O,C,-1,1),COLOR0000DD;
STICKLINE(C>=COST(90) AND C<REF(C,1),L,H,0,0),COLOR0000DD;
STICKLINE(C>=COST(90) AND C<REF(C,1),O,C,-1,0),COLOR0000DD;

STICKLINE(C<COST(90) AND C>REF(C,1),L,H,0,1),COLORAAAAAA;
STICKLINE(C<COST(90) AND C>REF(C,1),O,C,-1,1),COLORAAAAAA;
STICKLINE(C<COST(90) AND C<REF(C,1),L,H,0,0),COLORAAAAAA;
STICKLINE(C<COST(90) AND C<REF(C,1),O,C,-1,0),COLORAAAAAA;

STICKLINE(C<COST(70) AND C>REF(C,1),L,H,0,1),COLORAAAA00;
STICKLINE(C<COST(70) AND C>REF(C,1),O,C,-1,1),COLORAAAA00;
STICKLINE(C<COST(70) AND C<REF(C,1),L,H,0,0),COLORAAAA00;
STICKLINE(C<COST(70) AND C<REF(C,1),O,C,-1,0),COLORAAAA00;

STICKLINE(C<COST(50) AND C>REF(C,1),L,H,0,1),COLOR990000;
STICKLINE(C<COST(50) AND C>REF(C,1),O,C,-1,1),COLOR990000;
STICKLINE(C<COST(50) AND C<REF(C,1),L,H,0,0),COLOR990000;
STICKLINE(C<COST(50) AND C<REF(C,1),O,C,-1,0),COLOR990000;

DRAWTEXT_FIX(CURRBARSCOUNT=1,0,0.06,0,'成本分布'),COLORWHITE;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.05,0.06,0,CB90),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.05,0.12,0,CB70),COLORLIGRAY;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.05,0.18,0,CB50),COLORLIBLUE;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.05,0.24,0,CB30),COLORGREEN;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.05,0.30,0,CB10),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.05,0.36,0,CB底),COLORWHITE;







回复

举报

QQ|

GMT+8, 2024-11-19 14:54

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