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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信1号主图指标


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

以下是通达信1号主图指标

通达信1号主图指标

源码

{布林}
布林:=HHV(HHV(L,14),60);
阻力区:=EMA(EMA(布林,16)-2*STD(布林,16),3);
阻力区1:=EMA(EMA(布林,14)+2*STD(布林,14),18);
DRAWBAND(阻力区,RGB(99,99,99),阻力区1,RGB(99,99,99));
{四线开花}
【4】:MA(CLOSE,250),COLORBLUE,LINETHICK3;
【3】:MA(CLOSE,120),COLORCYAN,LINETHICK3;
【2】:MA(CLOSE,60),COLORGREEN,LINETHICK3;
【1】:MA(CLOSE,20),COLORLIRED,LINETHICK3;
{神秘线}
V0:=VOL*(O+C+H+L)/4;
SM:EMA(V0,21)/EMA(VOL,21),COLOR987654,LINETHICK0;
{量能平台突破}
PT:IF(HHVBARS(V,35),REF(C,HHVBARS(V,35)),C),COLOR7F017F,LINETHICK0;
{N日涨幅}
N1:=BARSLAST(CROSS(C,MA(C,6)));
N2:=BARSLAST(CROSS(MA(C,6),C));
N:IF(N1<N2,N1+1,0),COLORBLUE,NODRAW;
ZF%:(C-REF(C,N))/REF(C,N)*100,COLORRED,NODRAW;
{三色K线}
STICKLINE(C>=SM AND C>=O,OPEN,CLOSE,3,1),COLORRED;
STICKLINE(C>=SM AND C>=O,LOW,MIN(O,C),0,1),COLORRED;
STICKLINE(C>=SM AND C>=O,MAX(O,C),HIGH,0,1),COLORRED;
STICKLINE(C>=SM AND C<O,C,O,3,0),COLORCYAN;
STICKLINE(C>=SM AND C<O,C,O,1,0),COLORCYAN;
STICKLINE(C>=SM AND C<O,L,HIGH,0,1),COLORCYAN;
STICKLINE(C<SM AND C>=O,OPEN,CLOSE,3,1),COLORWHITE;
STICKLINE(C<SM AND C>=O,LOW,MIN(O,C),0,1),COLORWHITE;
STICKLINE(C<SM AND C>=O,MAX(O,C),HIGH,0,1),COLORWHITE;
STICKLINE(C<SM AND C<O,C,O,3,0),COLORWHITE;
STICKLINE(C<SM AND C<O,C,O,1,0),COLORWHITE;
STICKLINE(C<SM AND C<O,L,HIGH,0,1),COLORWHITE;
{立桩量}
V2:=IF(CURRBARSCOUNT=1,VOL*240/FROMOPEN/REF(VOL,1)-1,VOL/REF(VOL,1)-1);
STICKLINE(V2>=1 AND OPEN<CLOSE,OPEN,CLOSE,5,1),COLORYELLOW;
STICKLINE(V2>=1 AND OPEN>CLOSE,OPEN,CLOSE,5,0),COLORCYAN;
{涨跌停K线}
涨跌:=REF(C,1);
涨停:=IF((C-涨跌)*100/涨跌>=(10-0.01*100/涨跌),1,0);
STICKLINE(涨停,OPEN,CLOSE,4,0),COLORRED;
STICKLINE(涨停,H,L,0,0),COLORRED;
跌停:=IF((涨跌-C)*100/涨跌>=(10-0.01*100/涨跌),1,0);
STICKLINE(跌停,OPEN,CLOSE,4,0),COLORBLUE;
STICKLINE(跌停,H,L,0,1),COLORBLUE;
{立桩量金箍}
STICKLINE(V2>=1,O,(C+O)/2,6,0),COLOR003333;
STICKLINE(V2>=1,O,(C+O)/2,5,0),COLOR116666;
STICKLINE(V2>=1,O,(C+O)/2,4,0),COLOR229999;
STICKLINE(V2>=1,O,(C+O)/2,3,0),COLOR33CCCC;
STICKLINE(V2>=1,O,(C+O)/2,2,0),COLOR44FFFF;


MA10:MA(CLOSE,10),COLORYELLOW,LINETHICK1;
MA5:MA(CLOSE,5),COLORWHITE,LINETHICK1;


{信号系统}
买入1:DRAWICON(CROSS(【1】,【2】),【2】*0.98,5);
买入2:DRAWICON(CROSS(【1】,【3】),【3】*0.98,5);
买入3:DRAWICON(CROSS(【1】,【4】),【4】*0.98,5);
买入4:DRAWICON(CROSS(【2】,【3】),【3】*0.98,9);
买入5:DRAWICON(CROSS(【2】,【4】),【4】*0.98,9);
买入6:DRAWICON(CROSS(【3】,【4】),【4】*0.98,135);
{买入7:DRAWICON(CROSS(MA5,MA10),MA10*0.98,1);
买入8:DRAWICON(CROSS(MA5,【1】),【1】*0.976,1);
买入9:DRAWICON(CROSS(MA5,【2】),【2】*0.972,1);
买入10:DRAWICON(CROSS(MA5,【3】),【3】*0.968,1);
买入11:DRAWICON(CROSS(MA5,【4】),【4】*0.964,1);};





回复

举报

QQ|

GMT+8, 2024-11-18 20:31

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