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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 全网首发---修改麟龙四色量四色谱合二为一幅图(指标幅图贴图


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

以下是全网首发---修改麟龙四色量四色谱合二为一幅图(指标幅图贴图

{麟龙四色谱主图}
M3:=MA(CLOSE,3),COLORRED;
M13:=MA(CLOSE,13),COLORRED;
M34:=MA(CLOSE,34),COLORRED;
X:=BARSLAST(REF(CROSS(C,MA(C,120)),1)) AND CROSS(MA(C,20),MA(C,120));
STICKLINE(M3>=M13 AND M34>=REF(M34,1),8,9,2,0 ),COLORRED;
STICKLINE(M3<M13 AND M34>=REF(M34,1),8,9,2,0 ),COLORYELLOW;
STICKLINE(M3<M13 AND M34<REF(M34,1),8,9,2,0 ),COLORGREEN;
STICKLINE(M3>=M13 AND M34<REF(M34,1),8,9,2,0 ),COLORMAGENTA;

{麟龙四量图副图}
MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
牛线:=(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,COLORGREEN{COLORRED};
马线:=MA(牛线,6),COLORMAGENTA{COLORYELLOW};
STICKLINE(C>牛线,6,7,8,0),COLORRED{COLORGREEN},LINETHICK2;
STICKLINE(C<马线,6,7,8,0),COLORGREEN{COLORRED},LINETHICK2;
STICKLINE(牛线>=C AND C>=马线,6,7,8,0),COLORGREEN{COLORMAGENTA}{COLORYELLOW},LINETHICK2;
A:=MAX(MA(C,60),MA(C,120));
B:=MIN(MA(C,60),MA(C,120));
STICKLINE(C>=A,4,5,8,0),COLORRED{COLORGREEN},LINETHICK2;
STICKLINE(C<=B,4,5,8,0),COLORGREEN{COLORRED},LINETHICK2;
STICKLINE(A>=C AND C>=B,4,5,8,0),COLORGREEN{COLORMAGENTA}{COLORYELLOW},LINETHICK2;
E:=MAX(MA(C,45),MA(C,90));
F:=MIN(MA(C,45),MA(C,90));
STICKLINE(C>E,2,3,8,0),COLORRED{COLORGREEN},LINETHICK2;
STICKLINE(C<F,2,3,8,0),COLORGREEN{COLORRED},LINETHICK2;
STICKLINE(E>=C AND C>=F,2,3,8,0),COLORGREEN{COLORMAGENTA}{COLORYELLOW},LINETHICK2;
J:=MAX(MA(C,30),MA(C,60));
K:=MIN(MA(C,30),MA(C,60));
STICKLINE(C>J,0,1,8,0),COLORRED{COLORGREEN},LINETHICK2;
STICKLINE(C<K,0,1,8,0),COLORGREEN{COLORRED},LINETHICK2;
STICKLINE(J>=C AND C>=K,0,1,8,0),COLORGREEN{COLORMAGENTA}{COLORYELLOW},LINETHICK2;








回复

举报

QQ|

GMT+8, 2024-11-17 10:39

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