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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

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


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

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

多彩K线-主图公式, 显示大阳\大阴\涨停\跌停\假阴\假阳\跳空\大K线中点,适用于通达信
DRAWKLINE(H,O,L,C);{重绘K线}
RC1:=REF(C,1);
CS:=5/IF(C>=1,1000,10000);
C涨停10:=1.10*RC1-CS;{考虑到4舍5入}
C涨停5 :=1.05*RC1-CS;
C跌停10:=0.90*RC1+CS;
C跌停5 :=0.95*RC1+CS;
ST:=NAMELIKE('S') OR NAMELIKE('*S');
涨停:= IF(ST, C>=C涨停5, C>=C涨停10);
跌停:= IF(ST, C<=C跌停5, C<=C跌停10);
盘中涨停:=IF(ST, H>=C涨停5, H>=C涨停10);
盘中跌停:=IF(ST, L<=C跌停5, L<=C跌停10);
STICKLINE(盘中涨停,H,MAX(C,O),0,0),COLORMAGENTA;{涨停后回落}
STICKLINE(盘中跌停,L,MIN(C,O),0,0),COLORLICYAN;{跌停后回升}
大阳线:=C>O AND (C>=C涨停5 OR O<(0.95*C+CS) ) OR (C>1000 AND C>=RC1*1.025);
STICKLINE(大阳线,O,C,1,0),COLOR0000BB;
大阴线:=C<O AND (C<=C跌停5 OR C<(0.95*O+CS) ) OR (C>1000 AND C<RC1*0.976);
STICKLINE(大阴线,O,C,1,0),COLORLIGREEN;
STICKLINE(涨停,O,C,1,0),COLORMAGENTA;
STICKLINE(跌停,O,C,1,0),COLORLICYAN;
{均价:=IF(C>1000,C,AMOUNT/VOL/100);}
假阴1:= C<O AND C>REF(C,1);{显式-假阴真阳};
STICKLINE(假阴1,O,C,0,0),COLORRED;{假阴柱};
均价:=AMOUNT/VOL/100;
假阴2:= C<O AND 均价>RC1 AND C<=RC1 AND 均价<=H;{隐式-假阴真阳};
STICKLINE(假阴2,均价,均价,1,0),COLORRED;{假阴柱};
假阳:=C>O AND C<RC1;{假阳真阴};
STICKLINE(假阳,O,C,0,0),COLORGREEN;{假阳柱};
{跳空}
STICKLINE(REF(L,1)>H,H,REF(L,1),5,0),COLORGRAY;
STICKLINE(REF(H,1)<L,L,REF(H,1),5,0),COLORGRAY;

C_: CONST(C),COLORLIRED,POINTDOT;{现价线}
K中: (H+L)/2,COLORYELLOW,NODRAW;
MA5:=MA(C,5);
MA5角度: ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416,NODRAW;
AA:=C/REF(C,1)>1.05;
STICKLINE(AA,H,L,0,1),COLORYELLOW;
STICKLINE(AA,C,O,3.2,0),COLOR117777;
STICKLINE(AA,C,O,2.6,0),COLOR119999;
STICKLINE(AA,C,O,1.9,0),COLOR11BBBB;
STICKLINE(AA,C,O,1.1,0),COLOR11DDDD;
STICKLINE(AA,C,O,0.3,0),COLOR44FFFF;






回复

举报

QQ|

GMT+8, 2024-11-17 22:41

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