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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信金牛金典均线源码


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

以下是通达信金牛金典均线源码

{DRAWBAND(MA(CLOSE,5),RGB(225,225,225),MA(CLOSE,10),RGB(0,51,153));}
DRAWBAND(MA(CLOSE,5),RGB(155,50,50),MA(CLOSE,10),RGB(51,153,51));
DRAWKLINE(H,O,L,C);
MA5:MA(CLOSE,5),COLORWHITE;
MA10:MA(CLOSE,10),COLORYELLOW;
MA20:MA(CLOSE,24),COLORMAGENTA;
MA60:MA(CLOSE,60),COLOR336699;
IF(MA20>REF(MA20,1),MA20,DRAWNULL),COLORMAGENTA,LINETHICK1;
IF(MA20<REF(MA20,1),MA20,DRAWNULL),COLORGREEN,LINETHICK1;
IF(MA5>REF(MA5,1),MA5,DRAWNULL),COLORRED,LINETHICK2;
IF(MA5<REF(MA5,1),MA5,DRAWNULL),COLORGREEN,LINETHICK2;
IF(MA5=REF(MA5,1),MA5,DRAWNULL),COLORWHITE,LINETHICK2;
IF(MA10>REF(MA10,1),MA10,DRAWNULL),COLORYELLOW,LINETHICK2;
IF(MA10<REF(MA10,1),MA10,DRAWNULL),COLORGREEN,LINETHICK2;
{K线画色}
{STICKLINE(C>=MA10,LOW,HIGH,0,1),COLORRED;
STICKLINE(C>=MA10,CLOSE,OPEN,3.2,2),COLORRED;
STICKLINE(C<MA10,LOW,HIGH,0,1),COLORGREEN;
STICKLINE(C<MA10,CLOSE,OPEN,3.2,2),COLORGREEN;
STICKLINE(CROSS(MA10,C),OPEN,CLOSE,3.2,0),COLORGREEN;
STICKLINE(CROSS(C,MA10),OPEN,CLOSE,3.2,0),COLORRED;
STICKLINE((CLOSE>OPEN) AND (C<MA10),CLOSE,OPEN,3.2,2)COLORGREEN;
STICKLINE((CLOSE>OPEN) AND (C>=MA10),CLOSE,OPEN,3.2,2)COLORRED;
STICKLINE((CLOSE<OPEN) AND (C<MA10),CLOSE,OPEN,3.2,0)COLORGREEN;
STICKLINE((CLOSE<OPEN) AND (C>=MA10),CLOSE,OPEN,3.2,0)COLORRED;};




回复

举报

QQ|

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

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