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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 简简单单两条线源码——借用“中88888”的模板理念


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

以下是简简单单两条线源码——借用“中88888”的模板理念

DRAWGBK(C>0,RGB(88,50,140),RGB(10,50,10),0,'1',0);
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);

MA120:MA(CLOSE,120)COLOR54FCFC,DOTLINE;
MA250:MA(CLOSE,250)COLORMAGENTA,DOTLINE;

DRAWTEXT_FIX(1,0.1,0,0, '【浅蓝注意】'),COLORLIBLUE;
DRAWTEXT_FIX(1,0.2,0,0, '【红色上升】'),COLOR0000A8;
DRAWTEXT_FIX(1,0.3,0,0, '【绿色调整】'),COLOR00A800;
DRAWTEXT_FIX(1,0.4,0,0, '【蓝色下跌】'),COLORA80000;
DRAWTEXT_FIX(1,0.5,0,0, '【黄色震荡】'),COLOR54FCFC;

STICKLINE(C=O,H,L,0,0),COLORCYAN;
STICKLINE(C=O,C,O,3,0),COLORCYAN;
STICKLINE(C>O,H,C,0,0 ),COLORCYAN;
STICKLINE(C>O,L,O,0,0 ),COLORCYAN;
STICKLINE(C>O,O,C,3,1 ),COLORCYAN;
STICKLINE(OPEN>CLOSE,H,L,0,0 ),COLORCYAN;
STICKLINE(OPEN>CLOSE,O,C,3,0 ),COLORCYAN;

STICKLINE(C<MA120 AND OPEN>=CLOSE,H,L,0,0 ),COLORCYAN;
STICKLINE(C<MA120 AND OPEN>=CLOSE,O,C,3,0),COLORCYAN;
STICKLINE(C<MA120 AND OPEN<CLOSE,H,C,0,0 ),COLORCYAN;
STICKLINE(C<MA120 AND OPEN<CLOSE,O,L,0,0),COLORCYAN;
STICKLINE(C<MA120 AND OPEN<CLOSE,O,C,3,1 ),COLORCYAN;

STICKLINE(C>MA120 AND C>O,H,C,0,0 ),COLOR0000A8;
STICKLINE(C>MA120 AND C>O,L,O,0,0 ),COLOR0000A8;
STICKLINE(C>MA120 AND C>O,O,C,3,1),COLOR0000A8;
STICKLINE(C>MA120 AND C<=O,H,L,0,0 ),COLOR0000A8;
STICKLINE(C>MA120 AND C<=O,O,C,3,0),COLOR0000A8;

STICKLINE(C>MA120 AND MA120>REF(MA120,1) AND C>O,H,C,0,0),COLOR0000A8;
STICKLINE(C>MA120 AND MA120>REF(MA120,1) AND C>O,O,L,0,0),COLOR0000A8;
STICKLINE(C>MA120 AND MA120>REF(MA120,1) AND C>O,O,C,3,1),COLOR0000A8;
STICKLINE(C>MA120 AND MA120>REF(MA120,1) AND C<=O,H,L,0,0),COLOR0000A8;
STICKLINE(C>MA120 AND MA120>REF(MA120,1) AND C<=O,O,C,3,0),COLOR0000A8;

STICKLINE(C<MA120 AND MA120<REF(MA120,1) AND C>O,H,C,0,0),COLORCYAN;
STICKLINE(C<MA120 AND MA120<REF(MA120,1) AND C>O,O,L,0,0),COLORCYAN;
STICKLINE(C<MA120 AND MA120<REF(MA120,1) AND C>O,O,C,3,1),COLORCYAN;
STICKLINE(C<MA120 AND MA120<REF(MA120,1) AND C<=O,H,L,0,0),COLORCYAN;
STICKLINE(C<MA120 AND MA120<REF(MA120,1) AND C<=O,O,C,3,0),COLORCYAN;

STICKLINE(C>MA120 AND MA120<REF(MA120,1) AND C>O,H,C,0,0),COLORCYAN;
STICKLINE(C>MA120 AND MA120<REF(MA120,1) AND C>O,O,L,0,0),COLORCYAN;
STICKLINE(C>MA120 AND MA120<REF(MA120,1) AND C>O,O,C,3,1),COLORCYAN;
STICKLINE(C>MA120 AND MA120<REF(MA120,1) AND C<=O,H,L,0,0),COLORCYAN;
STICKLINE(C>MA120 AND MA120<REF(MA120,1) AND C<=O,O,C,3,0),COLORCYAN;

STICKLINE(MA120>MA250 AND C>MA120 AND C>O,H,C,0,0),COLOR0000A8;
STICKLINE(MA120>MA250 AND C>MA120 AND C>O,O,L,0,0),COLOR0000A8;
STICKLINE(MA120>MA250 AND C>MA120 AND C>O,O,C,3,1),COLOR0000A8;
STICKLINE(MA120>MA250 AND C>MA120 AND C<=O,H,L,0,0),COLOR0000A8;
STICKLINE(MA120>MA250 AND C>MA120 AND C<=O,O,C,3,0),COLOR0000A8;

STICKLINE(MA120>MA250 AND C<MA120 AND C>O,H,C,0,0),COLOR00A800;
STICKLINE(MA120>MA250 AND C<MA120 AND C>O,O,L,0,0),COLOR00A800;
STICKLINE(MA120>MA250 AND C<MA120 AND C>O,O,C,3,1),COLOR00A800;
STICKLINE(MA120>MA250 AND C<MA120 AND C<=O,H,L,0,0),COLOR00A800;
STICKLINE(MA120>MA250 AND C<MA120 AND C<=O,O,C,3,0),COLOR00A800;

STICKLINE(MA120>MA250 AND C>MA120 AND MA120<REF(MA120,1) AND C>O,H,C,0,0),COLORCYAN;
STICKLINE(MA120>MA250 AND C>MA120 AND MA120<REF(MA120,1) AND C>O,O,L,0,0),COLORCYAN;
STICKLINE(MA120>MA250 AND C>MA120 AND MA120<REF(MA120,1) AND C>O,O,C,3,1),COLORCYAN;
STICKLINE(MA120>MA250 AND C>MA120 AND MA120<REF(MA120,1) AND C<=O,H,L,0,0),COLORCYAN;
STICKLINE(MA120>MA250 AND C>MA120 AND MA120<REF(MA120,1) AND C<=O,O,C,3,0),COLORCYAN;

STICKLINE(C<MA250 AND C>O,H,C,0,0),COLORA80000;
STICKLINE(C<MA250 AND C>O,O,L,0,0),COLORA80000;
STICKLINE(C<MA250 AND C>O,O,C,3,1),COLORA80000;
STICKLINE(C<MA250 AND C<=O,H,L,0,0),COLORA80000;
STICKLINE(C<MA250 AND C<=O,O,C,3,0),COLORA80000;

STICKLINE(C>MA120 AND MA120<MA250 AND C>O,H,C,0,0),COLOR54FCFC;
STICKLINE(C>MA120 AND MA120<MA250 AND C>O,O,L,0,0),COLOR54FCFC;
STICKLINE(C>MA120 AND MA120<MA250 AND C>O,O,C,3,1),COLOR54FCFC;
STICKLINE(C>MA120 AND MA120<MA250 AND C<=O,H,L,0,0),COLOR54FCFC;
STICKLINE(C>MA120 AND MA120<MA250 AND C<=O,O,C,3,0),COLOR54FCFC;






回复

举报

QQ|

GMT+8, 2024-11-17 00:20

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