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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信用山形图 主图 买卖提示 无未来


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

以下是通达信用山形图 主图 买卖提示 无未来

DRAWGBK(C>0,RGB(21,34,55),RGB(57,173,173),0,'1',0);
W:=EMA(C,1);DRAWBAND(W,RGB(33,47,58),0,RGB(33,47,58));
{均线系统}
现价:CONST(W),DOTLINE,COLORCYAN;
R:=EMA(C,5);警戒线:CONST(R),DOTLINE,COLORMAGENTA;
X:=EMA(C,1);预警:EMA(X,5),COLORRED;
持股:IF(预警>REF(预警,1),预警,DRAWNULL),COLORWHITE;
&:EMA(W,1),COLORLICYAN;AX:=EMA(&,2);
持币:IF(预警<REF(预警,1),预警,DRAWNULL),COLORCYAN;
A1X:=(AX-REF(AX,1))/REF(AX,1)*100;
DRAWTEXT_FIX(1,0.17,0.13,0,STKNAME),COLORYELLOW;
DRAWTEXT_FIX(1,0.17,0.21,0,CODE),COLOR0080FF;
STICKLINE(CROSS(A1X,0),L,L*0.995,1.2,0),COLORRED;
STICKLINE(CROSS(0,A1X),H,H*1.005,1.2,0),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR,0.01,0.01,0,'微信:RITUALART '),COLORRED;
STICKLINE(&>=R,C,C,0.7,0),COLORWHITE;STICKLINE(&<R,C,C,0.7,0),COLORGREEN;
{条件设置}
总股本:=STRCAT(STRCAT('【总股本】 ',CON2STR(TOTALCAPITAL/1000000,2)),'亿');
流通盘:=STRCAT(STRCAT('【流通盘】 ',CON2STR(CAPITAL/1000000,2)),'亿');
流通市值:=STRCAT(STRCAT('【流通市值】 ',CON2STR((CAPITAL/1000000)*C,2)),'亿');
DRAWTEXT_FIX(ISLASTBAR,0.01,0.99,0,总股本),COLOR00FFFF;
DRAWTEXT_FIX(ISLASTBAR,0.11,0.99,0,流通盘),COLORFFFF00;
DRAWTEXT_FIX(ISLASTBAR,0.21,0.99,0,流通市值),COLORFF00FF;
卖一价:=STRCAT(STRCAT('【卖一】 ',CON2STR(DYNAINFO(21),2)),'元');
涨跌:=STRCAT(STRCAT('【涨 跌 额】 ',CON2STR(DYNAINFO(12),2)),'元');
买一价:=STRCAT(STRCAT('【买一】 ',CON2STR(DYNAINFO(20),2)),'元');
DRAWTEXT_FIX(ISLASTBAR,0.31,0.99,0,卖一价),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR,0.39,0.99,0,涨跌),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.49,0.99,0,买一价),COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0.579,0.99,0,'【工作时间】14:45-15:00 '),COLORYELLOW;
{涨停统计}
涨停:=W/REF(W,1)>=1.095;ZTCS:=COUNT(涨停,BARSSINCE(涨停)+1);
SSTS1:=STRCAT('上市',CON2STR(FINANCE(42),0));SSTS2:=STRCAT(SSTS1,'天');
NTZZT1:=STRCAT('  距今',CON2STR(CONST(BARSLAST(涨停)),0));NTZZT2:=STRCAT(NTZZT1,'天有涨停');
GZT1:=STRCAT('  共涨停',CON2STR(ZTCS,0));GZT2:=STRCAT(GZT1,'次');ZTTJ1:=STRCAT(SSTS2,GZT2);
ZTTJ2:=STRCAT(ZTTJ1,NTZZT2);ZTTJ:=STRCAT('【涨停统计】',ZTTJ2);
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.719,0.99,0,ZTTJ),COLORCYAN;





回复

举报

QQ|

GMT+8, 2024-11-16 22:55

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