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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 一片红主图 源码


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

一片红主图 源码

DRAWBAND(MA(CLOSE,60),RGB(80,0,10),MA(CLOSE,120),RGB(0,100,50));
DRAWBAND(MA(CLOSE,20),RGB(220,220,0),MA(CLOSE,30),RGB(0,0,0));
DRAWBAND(MA(CLOSE,10),RGB(220,0,0),MA(CLOSE,20),RGB(0,0,0));
DRAWKLINE(H,O,L,C);
STICKLINE(OPEN>=CLOSE ,L ,H,0,0 ),COLORFFFF00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3.2,0 ),COLOR888800;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0 ),COLOR999900;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2.5,0 ),COLORAAAA00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0 ),COLORBBBB00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1.5,0 ),COLORCCCC00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),COLORDDDD00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,0.5,0 ),COLOREEEE00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,0,0 ),COLORFFFF00;
STICKLINE(CLOSE>OPEN,O,L,0,0) ,COLOR0000FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3.2,0) ,COLOR1100AA;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLOR2200BB;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.5,0) ,COLOR3300CC;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLOR4400DD;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.5,0) ,COLOR5500EE;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,COLOR6600FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.5,0) ,COLOR8800FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0,0) ,COLORCC33FF;

MA5:MA(CLOSE,5),COLORWHITE;
MA10:MA(CLOSE,10),COLORYELLOW;
MA20:MA(CLOSE,20),COLOR00DD00;
MA30:MA(CLOSE,30),COLOR0000DD;
MA60:MA(CLOSE,60),COLORAA0000;
MA120:MA(CLOSE,120),COLORDDDD00;
MA250:MA(CLOSE,250),COLORDD00DD;
涨停:=CLOSE>REF(CLOSE,1)*1.095 AND CLOSE=HIGH;
跌停:=CLOSE<REF(CLOSE,1)*0.9015 AND CLOSE=LOW;
{STICKLINE(涨停,O,C,0,0),COLOR00DD00;
STICKLINE(跌停,O,C,0,0),COLORDD0000;}
DRAWICON(涨停,H+0.2,1);DRAWICON(跌停,L-0.02,2);




 



gd19658

回复

举报

QQ|

GMT+8, 2024-10-9 20:22

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