1. 首页 > 股票入门

通达信笑看天机主图指标公式(通达信马上拉升主图指标公式)

通达信笑看天机主图指标公式(通达信马上拉升主图指标公式)

内容导航:
  • 通达信最佳买卖点主图指标公式转换成选股公式
  • 通达信主图显示财务指标公式
  • 请高手编一个:能显示所属板块指标的通达信主图公式,谢谢!
  • 通达信精准顶底主图指标公式如何使用
  • 通达信超赞的主图指标公式是怎样的
  • 通达信将选股公式改为幅图或主图指标
  • 通达信主图指标公式在副图显示
  • Q1:通达信最佳买卖点主图指标公式转换成选股公式

    {未来函数,慎用}
    买:CROSS(ZIG(3,10) ,REF(ZIG(3 ,10),1));

    Q2:通达信主图显示财务指标公式

    内容来自用户:聚考拉

    通达信主图显示财务指标公式
    总股本:=STRCAT(STRCAT('总股本:
    ',CON2STR(TOTALCAPITAL/1000000,3)),'亿股');
    流通盘:=STRCAT(STRCAT('流通盘:
    ',CON2STR(CAPITAL/1000000,3)),'亿股');
    每股收益:=STRCAT(STRCAT('每股收益:
    ',CON2STR(FINANCE(29)/FINANCE(1),2)),'元');
    每股未分配:=STRCAT(STRCAT('每股未分配:
    ',CON2STR(FINANCE(32),2)),'元');
    每股公积金:=STRCAT(STRCAT('每股公积金:
    ',CON2STR(FINANCE(18),2)),'元');
    每股净资产:=STRCAT(STRCAT('每股净资产:
    ',CON2STR(FINANCE(34),2)),'元');
    总市值:=STRCAT(STRCAT('总市值:
    ',CON2STR(FINANCE(1)*C/100000000,3)),'亿元');
    市值:=STRCAT(STRCAT('流通值:
    ',CON2STR((CAPITAL/1000000)*C,3)),'亿元');
    SHI:INTPART(DATE+19000000),NODRAW;
    上市日期:=STRCAT('上市日:',CON2STR(SHI,0));
    收入同比增长:=STRCAT(STRCAT('收入同比增长:
    ',CON2STR(FINANCE(44),2)),'%');
    市盈率:=STRCAT('市盈率:
    ',CON2STR(DYNAINFO(39),2));
    主营毛利润率:=STRCAT(STRCAT('主营毛利润率:
    ',CON2STR((FINANCE(20)-
    FINANCE(21))/FINANCE(20)*100,2)),'%');
    主营净利润率:=STRCAT(STRCAT('主营净利润率:
    ',CON2STR(FINANCE(30)/FINANCE(20)*100,2)),'%');
    主营利润率:=STRCAT('主营利润率
    ',CON2STR(FINANCE(23)/FINANCE(20)*100,2));
    净利同比增长:=STR

    Q3:请高手编一个:能显示所属板块指标的通达信主图公式,谢谢!

    {说明:通达信最新版可用}

    MA1:MA(CLOSE,5);

    MA2:MA(CLOSE,10);

    MA3:MA(CLOSE,20);

    MA4:MA(CLOSE,60);

    HH:=CONST(HHV(H,160));

    LL:=CONST(LLV(L,160));{160可改成你习惯锁定的日K线数}

    HL1:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.76,0.04));

    HL2:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.80,0.08));

    HL3:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.84,0.12));

    HL4:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.88,0.16));

    HL5:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.92,0.20));

    HL6:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.96,0.24));

    DRAWTEXT_FIX(1,0.00,0,0,'所属行业:')COLOR0080FF;

    DRAWTEXT_FIX(1,0.07,0,0,HYBLOCK)COLOR0080FF;

    DRAWTEXT_FIX(1,0.14,0,0,'所属地区:')COLOR00FFFF;

    DRAWTEXT_FIX(1,0.21,0,0,DYBLOCK)COLOR00FFFF;

    DRAWTEXT_FIX(1,0.00,0.04,0,'主题投资:')COLOR0000FF;

    DRAWTEXT_FIX(1,0.07,0.04,0,EXTERNSTR(0,1))COLOR0000FF;

    DRAWTEXT_FIX(1,0.00,0.08,0,'主营业务:')COLORFF00FF;

    DRAWTEXT_FIX(1,0.07,0.08,0,EXTERNSTR(0,2))COLORFF00FF;

    DRAWTEXT_FIX(1,0.00,0.12,0,'出千概念:')COLORFF88FF;

    DRAWTEXT_FIX(1,0.07,0.12,0,EXTERNSTR(0,3))COLORFF88FF;

    DRAWTEXT_FIX  (1,0.80,HL1,0,'股本:');

    DRAWNUMBER_FIX(1,0.84,HL1,0,CONST(FINANCE(1)/100000000));

    DRAWTEXT_FIX  (1,0.80,HL2,0,'流通:');

    DRAWNUMBER_FIX(1,0.84,HL2,0,CONST(FINANCE(7)/100000000));

    DRAWTEXT_FIX  (1,0.80,HL3,0,'动PE:');

    DRAWNUMBER_FIX(1,0.84,HL3,0,CONST(DYNAINFO(39)));

    DRAWTEXT_FIX  (1,0.80,HL4,0,'换手:');

    DRAWNUMBER_FIX(1,0.84,HL4,0,CONST(DYNAINFO(37)*100));

    DRAWTEXT_FIX  (1,0.80,HL5,0,'量比:');

    DRAWNUMBER_FIX(1,0.84,HL5,0,CONST(DYNAINFO(17)));

    DRAWTEXT_FIX  (1,0.80,HL6,0,'涨幅:');

    DRAWNUMBER_FIX(1,0.84,HL6,0,CONST(DYNAINFO(14)*100)),COLORFF00FF;

    DRAWNUMBER_FIX(1,0.84,HL6,0,IF(CONST(DYNAINFO(14)*100)<0,CONST(DYNAINFO(14)*100),DRAWNULL))COLOR00FF00;

    Q4:通达信精准顶底主图指标公式如何使用

    你好 各个软件所用函数不一样 请问你用的哪个呢?另需要把 书中所表述告诉我 才行=====实在不好意思 我只能根据他书中的意思 自己猜测了一个 编出来后 感觉是个反指标另外 感觉(5,10)效果不好 自己换成了(12,9)你可以在改过来通达信公式:V1:=EMA(EMA(VOL,12),12);VOL1:(V1-REF(V1,1))/REF(V1,1)*100;MVOL:MA(VOL1,9);

    Q5:通达信超赞的主图指标公式是怎样的

    Z1:=STRCAT(HYBLOCK,' ');
    Z2:=STRCAT(Z1,DYBLOCK);
    Z3:=STRCAT(Z2,' ');
    DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),COLORLIRED;
    DRAWTEXT_FIX(ISLASTBAR,0,0.03,0,EXTERNSTR(0,3)),COLORWHITE;
    DRAWTEXT_FIX(ISLASTBAR,0,0.06,0,EXTERNSTR(0,6)),COLORLIBLUE;
    DRAWTEXT_FIX(ISLASTBAR,0,0.09,0,EXTERNSTR(0,12)),COLORLIGREEN;{老王}
    DRAWTEXT_FIX(ISLASTBAR,0,0.15,0,FGBLOCK),COLORLIMAGENTA;
    DRAWTEXT_FIX(ISLASTBAR,0,0.12,0,EXTERNSTR(0,1)),COLORYELLOW;{融胜}
    主力成本线:EMA(COST(9),250),COLORBROWN,DOTLINE;
    {牛马线买点公式升级版}
    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,COLORRED;
    马线:MA(牛线,8),COLORWHITE;
    DRAWICON( FILTER(CROSS(牛线,马线),20),马线-0.002 ,1);
    DRAWTEXT(CROSS(牛线,马线),LOW*0.984,'买'),COLORRED,LINETHICK2;
    止损价:H*0.95,LINETHICK0.5,COLORRED;
    庄家:(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,COLORRED;
    IF(庄家>=REF(庄家,1),庄家,DRAWNULL),COLORRED,LINETHICK4;
    IF(庄家<=REF(庄家,1),庄家,DRAWNULL),COLORGREEN,LINETHICK2;
    DRAWBAND(牛线,RGB(255,87,22),马线,RGB(0,30,255));
    MA60:MA(CLOSE,60),COLORGRAY;
    N1:=10;
    TK:=CONST(HHVBARS(V,10)),COLOR0000FF,LINETHICK1;
    量能平台:IF(CURRBARSCOUNT<=N1+3,CONST(IF(TK=0,C,REF(C,TK))),DRAWNULL),COLORGRAY,LINETHICK1;
    NOTEXT_新量能点:IF(CURRBARSCOUNT=TK+1,量能平台,DRAWNULL),CIRCLEDOT,COLORFFFFFF,LINETHICK9;
    DRAWTEXT(ISLASTBAR,量能平台,'量能平台'),COLORGRAY;
    {稳涨}
    红轨道:=MA(MA(CLOSE,3),1),LINETHICK1,COLORYELLOW;
    轨道:MA(MA(CLOSE,3),3),COLOR32CD32,LINETHICK2;
    NOTEXT_升:IF(红轨道>=轨道,轨道,DRAWNULL),COLORMAGENTA,LINETHICK2;
    机构:(L2_VOL(0,0) - L2_VOL(0,1))*10000/FINANCE(7),NODRAW,COLORRED;
    大户:(L2_VOL(1,0) - L2_VOL(1,1))*10000/FINANCE(7),NODRAW,COLORMAGENTA;
    主力:机构+大户,NODRAW,COLORYELLOW;
    STICKLINE(主力>0,O,C,1.5,1),COLORRED;
    STICKLINE(主力<0,O,C,1.5,1),COLORCYAN;
    STICKLINE(大户>0,O,C,1,0),COLORMAGENTA;
    STICKLINE(大户<0,O,C,1,0),COLORGREEN;
    STICKLINE(机构>0 AND 大户>0,O,(O+C)/2,1,0),COLORRED;
    STICKLINE(机构<0 AND 大户>0,C,(O+C)/2,1,0),COLORCYAN;
    STICKLINE(机构>0 AND 大户<0,O,(O+C)/2,1,0)COLORMAGENTA;
    STICKLINE(机构<0 AND 大户<0,C,O,1,0)COLORLICYAN;
    累计:=SUM(主力,30),COLORMAGENTA;
    均值:=EMA(累计,MIN(10,30)),COLORWHITE;
    {红}
    STICKLINE(CROSS(累计,均值),H,L,0,0),COLORRED,LINETHICK1;
    STICKLINE(CROSS(累计,均值),CLOSE,OPEN,1.4,0),COLOR000088;
    STICKLINE(CROSS(累计,均值),CLOSE,OPEN,1,0),COLOR0000BB;
    STICKLINE(CROSS(累计,均值),CLOSE,OPEN,0.6,0),COLOR0000DD;
    STICKLINE(CROSS(累计,均值),CLOSE,OPEN,0,0),COLOR0000FF;
    {蓝}
    STICKLINE(CROSS(均值,累计),H,L,0,0),COLORFF8800,LINETHICK1;
    STICKLINE(CROSS(均值,累计),CLOSE,OPEN,1.4,0),COLORBB4400;
    STICKLINE(CROSS(均值,累计),CLOSE,OPEN,1,0),COLORCC5500;
    STICKLINE(CROSS(均值,累计),CLOSE,OPEN,0.6,0),COLORDD6600;
    STICKLINE(CROSS(均值,累计),CLOSE,OPEN,0,0),COLOREE7700;
    {高低点定位}
    G0:=(XMA(XMA(H,30),30)-XMA(XMA(L,30),30))+XMA(XMA(H,30),30);
    D0:=XMA(XMA(L,30),30)-(XMA(XMA(H,30),30)-XMA(XMA(L,30),30));
    G01:=(XMA(XMA(H,30),30)-XMA(XMA(L,30),30))*0.5+XMA(XMA(H,30),30);
    D01:=XMA(XMA(L,30),30)-(XMA(XMA(H,30),30)-XMA(XMA(L,30),30))*0.5;
    GO0:=(XMA(XMA(H,60),60)-XMA(XMA(L,60),60))*3+XMA(XMA(H,60),60);
    DO0:=XMA(XMA(L,60),60)-(XMA(XMA(H,60),60)-XMA(XMA(L,60),60))*3;
    STICKLINE(CURRBARSCOUNT=1,G0,G0,100,5),COLORGREEN;
    STICKLINE(CURRBARSCOUNT=1,D0,D0,100,5),COLORMAGENTA;
    STICKLINE(CURRBARSCOUNT=1,GO0,GO0,100,5),COLORLIBLUE;
    STICKLINE(CURRBARSCOUNT=1,DO0,DO0,100,5),COLORRED;
    DRAWTEXT(ISLASTBAR,G0,'卖'),COLORGREEN;
    DRAWTEXT(ISLASTBAR,D0,'买'),COLORMAGENTA;
    DRAWTEXT(ISLASTBAR,GO0,'顶'),COLORLIBLUE;
    DRAWTEXT(ISLASTBAR,DO0,'底'),COLORRED;
    由于公式字符过多,这里限制数量无法发出,

    Q6:通达信将选股公式改为幅图或主图指标

    如何将主、副图公式改为选股公式
    以下是将主、副图公式改为选股公式的简易方法,求人不如求己。
    步骤一.将所有的显示式":",改为不显示式":="
    选股条件的基本要求为只能输出1个条件式,故要先将公式中所有的显示式":"改为不显示式":=",
    如果原来显示式后面接有线型描述(颜色.对齐..等),也一并删除
    例如:
    ma1:ma(c,5),colorred;
    ma2:ma(c,10),colorgreen,POINTDOT;
    .....
    先改为
    ma1:=ma(c,5);
    ma2:=ma(c,10);
    .....
    步骤二.找出选股条件,并写成选股式引用:
    条件的寻找方法,依不同目的,大致可分以下几种:
    --------------------------------------------------------------------------------------------
    1.'字'选股 如:'买'选股
    方法:先找出公式中出现有'字'的地方,该式开头会以DRAW..TEXT开头,
    DRAWTEXT DRAWTEXTEX DRAWYITEXT DRAWFLAGTEXT DRAWMOVETEXT
    找到后,该函数(条件, ,'字')后面括号内的第1个即为条件,将该条件复制出来并加上分号即可
    例如:
    {求'5日均>10日均'选股}
    ma1:=ma(c,5);
    ma2:=ma(c,10);
    DRAWTEXT(ma1>ma2,ma1,'5日均>10日均');
    [解]
    ma1:=ma(c,5);
    ma2:=ma(c,10);
    ma1>ma2;
    --------------------------------------------------------------------------
    2.图标选股 如:笑脸选股
    方法:
    先依不同软件,找出该图标的代号,
    再找出公式中出现DRAWICON函数(条件, ,图标代号)的式子,对照图标的代号(括号内的第3个),如果该图标代号为所求代号,
    该函数后面括号内的第1个即为条件,将该条件复制出来并加上分号即可
    例如:
    {求图标1选股}
    ma1:=ma(c,5);
    ma2:=ma(c,10);
    DRAWicon(ma1>ma2,ma1,1);
    [解]
    ma1:=ma(c,5);
    ma2:=ma(c,10);
    ma1>ma2;
    --------------------------------------------------------------------------------
    3.A线上穿(下穿)B线选股 {上穿--金叉,下穿--死叉}
    方法:A线上穿B线: cross(A,B);
    A线下穿B线: cross(B,A);
    例如:
    {求ma1上穿ma2选股}
    ma1:ma(c,5);
    ma2:ma(c,10);
    [解]
    ma1:=ma(c,5);
    ma2:=ma(c,10);
    cross(ma1,ma2);
    {求ma1下穿ma2选股}
    ma1:ma(c,5);
    ma2:ma(c,10);
    [解]
    ma1:=ma(c,5);
    ma2:=ma(c,10);
    cross(ma2,ma1);
    -------------------------------------------------------------------------------------------
    4.线A上穿(下穿) 选股
    方法:线A上穿: cross(A,ma(A,2)); 或 cross(A,ref(A,1));
    线A下穿: cross(ma(A,2),A); 或 cross(ref(A,1),A);
    例如:
    {求改成ma1上穿}
    ma1:ma(c,5);
    [解]
    ma1:=ma(c,5);
    cross(ma1,ma(ma1,2));

    ma1:=ma(c,5);
    cross(ma1,ref(ma1,1));
    {求改成ma1下穿}
    ma1:ma(c,5);
    [解]
    ma1:=ma(c,5);
    cross(ma(ma1,2),ma1);

    ma1:=ma(c,5);
    cross(ref(ma1,1),ma1);
    ---------------------------------------------------------------------------------------------
    5.第1次出现条件A 选股
    方法:先找出条件A,
    再利用cross(A,0.5);
    例如:
    {求改成出现图标1选股}
    ma1:=ma(c,5);
    ma2:=ma(c,10);
    DRAWicon(ma1>ma2,ma1,1);
    [解1]
    ma1:=ma(c,5);
    ma2:=ma(c,10);
    A:=ma1>ma2;
    cross(A,0.5);
    [解2--直接将条件A写入]
    ma1:=ma(c,5);
    ma2:=ma(c,10);
    cross(ma1>ma2,0.5);
    -------------------------------------------------------------------------------------------
    6.线变色选股 如:黄线变红色选股 (指标线为黄线,再利用函数变红色线)
    方法:先依不同软件,找出条件A,
    再用cross(A,0.5);
    (1)飞狐
    条件在PARTLINE(条件A, ),colorred;括号内的第1个即为条件,将该条件复制出来并加上分号即可
    例如:
    {求黄线变红色选股 飞狐}
    ma1:ma(c,5),coloryellow;
    PARTLINE(ma1>REF(ma1,1),ma1),colorred;
    [解]
    ma1:=ma(c,5);
    A:=ma1>REF(ma1,1);
    cross(A,0.5);
    (2)大智慧L2.分析家
    条件在PARTLINE( ,条件A,rgb(255,0,0), , ...);
    括号内为rgb(255,0,0)的前1个即为条件,将该条件复制出来并加上分号即可
    例如:
    {求黄线变红色选股 大智慧L2.分析家}
    ma1:=ma(c,5);
    PARTLINE(ma1,ma1>REF(ma1,1),rgb(255,0,0),1,rgb(255,255,0));
    [解]
    ma1:=ma(c,5);
    A:=ma1>REF(ma1,1);
    cross(A,0.5);
    (3)通达信
    条件在IF(条件A, ,DRAWNULL),colorred;括号内的第1个即为条件,将该条件复制出来并加上分号即可
    例如:
    {求黄线变红色选股 通达信}
    MA1:MA(C,5),COLORYELLOW;
    IF(MA1>REF(MA1,1),MA1,DRAWNULL),COLORRED;
    [解]
    MA1:=MA(C,5);
    A:=MA1>REF(MA1,1);
    CROSS(MA1>REF(MA1,1),0.5);
    --------------------------------------------------------------------------------
    7.颜色柱选股
    方法:先找出公式中出现有STICKLINE函数的地方,
    找到后,核对该函数后面的颜色,是否为所求颜色,
    若颜色相同,则括号内的第1个即为条件A,将该条件复制出来并加上分号即可
    例如:
    {求红色柱选股}
    STICKLINE(c>o,h,l,0.8,1),colorred;
    [解]
    A:c>o;
    {求第1次红色柱选股}
    STICKLINE(c>o,h,l,0.8,1),colorred;
    [解]
    A:=c>o;
    cross(A,0.5);
    步骤三.最后将所有绘图函数及单一输出值(如 0; k; if(,,); )全删除,使公式只剩1个选股式输出即成,
    (若有2个以上条件,条件同时成立时,可在条件间用"and"连接;
    若有2个以上条件,允许条件不同时成立时,可在条件间用"or"连接);

    Q7:通达信主图指标公式在副图显示

    进入公式管理器
    在右上角点击主图叠加改为副图叠加就可以了
    或者直接点主图
    进入修改指标模式
    变更主图叠加为副图叠加就是了

    本文由锦鲤发布,不代表本站立场,转载联系作者并注明出处:/showinfo-2-114338-0.html