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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信刀口舔血式交易主图指标公式


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

以下是通达信刀口舔血式交易主图指标公式

N:=10;
M1:=11;
M2:=9;
上轨1:=(1+M1/100)*MA(C,N);
下轨1:=(1-M2/100)*MA(C,N);
中轨1:=(上轨1+下轨1)/2;

STICKLINE(CLOSE>中轨1 AND CLOSE<上轨1,H,L,0,0),COLORMAGENTA,LINETHICK1;
STICKLINE(CLOSE>中轨1 AND CLOSE<上轨1,CLOSE,OPEN,2.4,0),COLORMAGENTA;
STICKLINE(CLOSE>中轨1 AND CLOSE<上轨1,CLOSE,OPEN,1.2,0),COLORMAGENTA;
STICKLINE(CLOSE>中轨1 AND CLOSE<上轨1,CLOSE,OPEN,0.6,0),COLORMAGENTA;
STICKLINE(CLOSE>中轨1 AND CLOSE<上轨1,CLOSE,OPEN,0,0),COLORMAGENTA;

STICKLINE(CLOSE>下轨1 AND CLOSE<中轨1,H,L,0,0),COLORYELLOW,LINETHICK1;
STICKLINE(CLOSE>下轨1 AND CLOSE<中轨1,CLOSE,OPEN,2.4,0),COLORYELLOW;
STICKLINE(CLOSE>下轨1 AND CLOSE<中轨1,CLOSE,OPEN,1.2,0),COLORYELLOW;
STICKLINE(CLOSE>下轨1 AND CLOSE<中轨1,CLOSE,OPEN,0.6,0),COLORYELLOW;
STICKLINE(CLOSE>下轨1 AND CLOSE<中轨1,CLOSE,OPEN,0,0),COLORYELLOW;

STICKLINE(CLOSE<下轨1,H,L,0,0),COLORBLUE,LINETHICK1;
STICKLINE(CLOSE<下轨1,CLOSE,OPEN,2.4,0),COLORBLUE;
STICKLINE(CLOSE<下轨1,CLOSE,OPEN,1.2,0),COLORBLUE;
STICKLINE(CLOSE<下轨1,CLOSE,OPEN,0.6,0),COLORBLUE;
STICKLINE(CLOSE<下轨1,CLOSE,OPEN,0,0),COLORBLUE;

STICKLINE(CLOSE>上轨1,H,L,0,0),COLORGREEN,LINETHICK1;
STICKLINE(CLOSE>上轨1,CLOSE,OPEN,2.4,0),COLORGREEN;
STICKLINE(CLOSE>上轨1,CLOSE,OPEN,1.2,0),COLORGREEN;
STICKLINE(CLOSE>上轨1,CLOSE,OPEN,0.6,0),COLORGREEN;
STICKLINE(CLOSE>上轨1,CLOSE,OPEN,0,0),COLORGREEN;
上轨:(1+M1/100)*MA(C,N),COLORMAGENTA;
下轨:(1-M2/100)*MA(C,N),COLORGREEN;
中轨:(上轨+下轨)/2,COLORWHITE;






回复

举报

QQ|

GMT+8, 2024-11-17 01:59

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