导航:首页 > 股市基金 > 通达信两个指标如何合并

通达信两个指标如何合并

发布时间:2021-04-10 07:37:02

『壹』 请教通达信中怎么把下面2个选股指标合并,实测好给加分

MA1:=MA(CLOSE,20);
MA2:=MA(CLOSE,22);
MA3:=MA(CLOSE,24);
MA4:=MA(CLOSE,30);
MA5:=MA(CLOSE,50);
MA6:=MA(CLOSE,60);
MA7:=MA(CLOSE,65);
MA8:=MA(CLOSE,70);
B:=CROSS(C,MA1)&&C>MA2&&C>MA3&&C>MA4&&C>MA5&&C>MA6&&C>MA7&&C>MA8;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
XG:CROSS(MACD,0) AND DIF>0 AND B;

『贰』 大师辛苦一下可否把这两个指标合并为一个副图(通达信软件)

{第一个指标}
DIF1:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA1:=EMA(DIF1,9);
MACD1:=2*(DIF1-DEA1),STICK;
MACD2:=EMA(MACD1,3);
STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,0,0),COLORRED;
STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,0,0),COLORF00FF0;
STICKLINE(MACD1<MACD2,0,MACD1,0,0),COLORCYAN;
STICKLINE(MACD1>=0 OR MACD1<=0,0,0,50,1),COLORWHITE;
DIFF:DIF1,COLOR33FF33;
DEA2:DEA1,COLORYELLOW;
MACD:MACD1,NODRAW,COLORMAGENTA;
低位金叉:= CROSS(DIFF,DEA2) AND DIFF<(-0.1);
STICKLINE(低位金叉,0,-0.3,1,0),COLOR00FFFF;
DRAWTEXT(低位金叉,-0.3,' 低位金叉'),COLOR00FFFF;
JCCOUNT:= COUNT(CROSS(DIFF,DEA2),BARSLAST(DEA2>=0));
二次金叉:= CROSS(DIFF,DEA2) AND DEA2<0 AND COUNT(JCCOUNT=2,21)=1;
STICKLINE(二次金叉,0,-0.15,1,0),COLORFF00FF;
DRAWICON(二次金叉,DEA2*1.04,1),COLOR0000FF;
DRAWTEXT(二次金叉,-0.15,' 二次金叉'),COLORFF00FF;
AD1:= BARSLAST(REF(CROSS(DIFF,DEA2),1));
M底背离:= REF(CLOSE,AD1+1)>CLOSE AND DIFF>REF(DIFF,AD1+1) AND CROSS(DIFF,DEA2);
STICKLINE(M底背离,0,0.15,1,0),COLOR00FF00;
DRAWLINE(AD1=0,DEA2,M底背离,DEA2,0),LINETHICK3,COLORWHITE;
DRAWTEXT(M底背离,0.15,' M底背离'),COLOR00FF00;
AD2:= BARSLAST(REF(CROSS(DEA2,DIFF),1));
M顶背离:= REF(CLOSE,AD2+1)<CLOSE AND REF(DIFF,AD2+1)>DIFF AND CROSS(DEA2,DIFF);
DRAWLINE(AD2=0,DEA2,M顶背离,DEA2,0),LINETHICK3,COLORBLUE;
AA:=C>REF(C,4);
NT:=BARSLASTCOUNT(AA);
TJ11:=NT=9;
TJ13:=ISLASTBAR AND BETWEEN(NT,5,8);
AY:=(BACKSET(TJ11>0,9) OR BACKSET(TJ13>0,NT))*NT;
DRAWTEXT(AY>0,MACD*1.02,VAR2STR(AY,0)),COLORLIRED;
DRAWTEXT(NT=9,MACD*1.02,'9'),COLORGREEN;
B1:=C;
NT0:=BARSLASTCOUNT(B1);
TJ21:=NT0=9 ;
TJ23:=ISLASTBAR AND BETWEEN(NT0,5,8);
AY1:=(BACKSET(TJ21>0,9) OR BACKSET(TJ23>0,NT0))*NT0;
DRAWTEXT(AY1>0,MACD*0.98,VAR2STR(AY1,0)),COLORGREEN;
DRAWTEXT(NT0=9,MACD*0.98,'9'),COLORRED;
DRAWICON(CROSS(DEA1,DIF1),DEA1,2);
{第二个指标参数把KD线关闭了}
LOWV:=LLV(LOW,9);
HIGHV:=HHV(HIGH,9);
RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,3);
K:=EMA(RSV,3);
D:=MA(K,3);
STICKLINE(K>D,K,D,2.5,0),COLORRED,LINETHICK1,NODRAW;
STICKLINE(D>K,K,D,2.5,0),COLORGREEN,LINETHICK1,NODRAW;
A1:=BARSLAST(REF(CROSS(K,D),1));
底背离:REF(CLOSE,A1+1)>CLOSE AND K>REF(K,A1+1) AND CROSS(K,D);
DRAWLINE(A1=0,1.2,底背离,1.5,0),COLORRED,LINETHICK2;
A2:=BARSLAST(REF(CROSS(D,K),1));
顶背离:REF(CLOSE,A2+1)<CLOSE AND REF(D,A2+1)>D AND CROSS(D,K);
DRAWLINE(A2=0,1.2,顶背离,1.5,0),COLORGREEN,LINETHICK2;
DRAWTEXT(底背离>0,1.2,'底背离'),COLORRED;
DRAWTEXT(顶背离>0,1.3,'顶背离'),COLORGREEN;

『叁』 通达信指标怎样叠加为什么点叠加后所有的指标都叠加上了

选择主图或副图,选择叠加指标,然后选一个你想叠加的指标就行了。不可能所有指标都叠加上了,指标叠加后,换股显示时还是双指标显示,你如不想叠加可以删叠加指标。

『肆』 通达信主图如何叠加两个指标

操作如下:分时图单击右键--叠加品种--自动叠加对应大盘。也可以选择叠加指定品种
祝投资顺利!

『伍』 请问怎么让这两个通达信指标叠加一起

你的公式有问题啊
DIFF等重复定义.删除后面定义的.
以下为合并公式,但效果欠佳,不用为好.

◆短线操盘:EMA(C,13),COLORCD7F32,LINETHICK2;◆中级趋势:EMA(C,89),COLOR8C7853,LINETHICK1;◆长期趋势:EMA(C,89),COLOR4D4DFF,LINETHICK1;STICKLINE(C,H,L,0,0),COLORFF0000;STICKLINE(C>=O,C,O,2,1),COLORFF0000;STICKLINE(C<O,C,O,2,0),COLORFF0000;STICKLINE(C>=◆短线操盘,H,L,0,0),COLOR22FFFF;STICKLINE(C>=◆短线操盘 AND C>=O,C,O,2,0),COLOR22FFFF;STICKLINE(C>=◆短线操盘 AND C<O,C,O,2,1),COLOR22FFFF;STICKLINE(C>=◆中级趋势,H,L,0,0),COLORFF22FF;STICKLINE(C>=◆中级趋势 AND C>=O,C,O,2,0),COLORFF22FF;STICKLINE(C>=◆中级趋势 AND C<O,C,O,2,1),COLORFF22FF;STICKLINE(C>=◆长期趋势,H,L,0,0),COLOR2222FF;STICKLINE(C>=◆长期趋势 AND C>=O,C,O,2,0),COLOR2222FF;STICKLINE(C>=◆长期趋势 AND C<O,C,O,2,1),COLOR2222FF; MID : MA(CLOSE,20),LINETHICK1;UPPER: MID + 2*STD(CLOSE,20),LINETHICK1;LOWER: MID - 2*STD(CLOSE,20),LINETHICK1;DIFF:=( EMA(CLOSE,7) - EMA(CLOSE,19)); DEA:=EMA(DIFF,9); MACD:=0.90*(DIFF-DEA); TJ:=(DIFF>=DEA); TJ1:=(DIFF>=0); STICKLINE(TJ,H,L,0.5,0),COLORYELLOW; STICKLINE(TJ,O,C,4,0),COLORYELLOW; STICKLINE(TJ1 AND TJ,H,L,0.5,0),COLORF00FF0; STICKLINE(TJ1 AND TJ,O,C,4,1),COLORF00FF0; STICKLINE(DIFF<DEA,H,L,0.5,0),COLORF0F000; STICKLINE(DIFF<DEA,O,C,4,0),COLORF0F000; VAR1:=(CLOSE*2+HIGH+LOW)/4; SK:= EMA(VAR1,13)-EMA(VAR1,73); SD:= EMA(SK,2); DRAWTEXT((CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03) OR (CROSS(SK,SD) AND SK<=-0.14 ) OR (CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)) ,L*0.99,'~'),COLORGREEN; STICKLINE((CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03) OR (CROSS(SK,SD) AND SK<=-0.14 ) OR (CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)),H,L,0.5,0),COLORRED; STICKLINE((CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03) OR (CROSS(SK,SD) AND SK<=-0.14 ) OR (CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)),O,C,10,1),COLORRED;
红多绿空:EMA(CLOSE,13)*0.9993,COLORRED,LINETHICK0;
支撑线:EMA(CLOSE,55),COLORYELLOW,LINETHICK2;
压力线:EMA(CLOSE,89),COLORMAGENTA,LINETHICK2;
DEA1:=MA(MACD,5),LINETHICK2,COLORFF8080;
IF(DEA1>0,红多绿空,DRAWNULL),COLORRED,LINETHICK3;
IF(DEA1<0,红多绿空,DRAWNULL),COLOR00FF00,LINETHICK3;

(已经测试,复制可直接使用)

『陆』 怎样才能把通达信的两个副图指标叠在一起

编写一个公式指标就可以实现这两个指标叠加在一起了。效果就像上面幅图一样,下面幅图是拖拽叠加的。

『柒』 通达信指标公式合并

0,COLORFFFFFF;

NOTEXTDIF:EMA(CLOSE,12)-EMA(CLOSE,26)COLORFFFFFF;

NOTEXTDEA:EMA(NOTEXTDIF,9)COLOR0000FF;

MACD:(NOTEXTDIF-NOTEXTDEA)*2,COLORSTICK;

MACD,STICK,COLOR00FFFF;

IF(MACD<REF(MACD,1),MACD,DRAWNULL),STICK,COLORFBCE71;

N:=MA(C,17);

M:=MA(C,25);

{浅蓝注意}

STICKLINE((C>=0 AND (C>=O)),0,MACD,2,1),COLORFFFF00;

STICKLINE((C>=0 AND (C<=O)),0,MACD,2,0),COLORFFFF00;

{红色上升}

STICKLINE((CLOSE>N AND N>REF(N,1) AND (C>=O)),0,MACD,2,1),COLOR0000A8;

STICKLINE((CLOSE>N AND N>REF(N,1) AND (C<=O)),0,MACD,2,0),COLOR0000A8;

{绿色调整}

STICKLINE((CLOSE<N AND CLOSE>M AND (C>=O)),0,MACD,2,1),COLOR00A800;

STICKLINE((CLOSE<N AND CLOSE>M AND (C<=O)),0,MACD,2,0),COLOR00A800;

{蓝色下跌}

STICKLINE((CLOSE<M AND (C>=O)),0,MACD,2,1),COLORFED07C;

STICKLINE((CLOSE<M AND (C<=O)),0,MACD,2,0),COLORFED07C;

{黄色震荡}

STICKLINE((CLOSE>N AND N<M AND (C>=O)),0,MACD,2,1),COLOR54FCFC;

STICKLINE((CLOSE>N AND N<M AND (C<=O)),0,MACD,2,0),COLOR54FCFC;

DIF:EMA(CLOSE,12)-EMA(CLOSE,26)COLORFFFFFF;

DEA:EMA(DIF,9)COLOR0000FF;

『捌』 通达信自带的ENE轨道线和CPBS这两个指标如何合并

UPPER:(1+6/100)*MA(CLOSE,25);

LOWER:(1-6/100)*MA(CLOSE,25);

ENE:(UPPER+LOWER)/2;

BU:=CROSS(HIGH,SAR(3,1,20));

SEL:=CROSS(SAR(3,1,20),LOW);

DRAWTEXT(BU,LOW,'B'),COLORYELLOW,LINETHICK2;

DRAWTEXT(SEL,1.01*HIGH,'S'),COLORGREEN,LINETHICK2;

『玖』 通达信问题,请高手解决一问题,把两分分时副图指标合并成一个指标

建议不要合并,因为第一个指标值很小,而第二个指标值很大,合并后看不到第一个指标的变化。

『拾』 请高手帮忙编写 把这2个通达信指标合在一起的公式

在要整合指标前一定要留意它们各自的特点和取值基线,MACD是以零轴为基础理论上可以上下无限大(但一般不超过300);而你第二个公式的取值基线是你零轴为基础向上,在大盘指数状态下可以勉强显示,但在个股画面下是不会显示的。
如果实在想把2个公式整合在一个画面下显示,是需要做特殊处理的。

阅读全文

与通达信两个指标如何合并相关的资料

热点内容
县级如何代理证券营业部 浏览:649
非银行金融机构归谁管理 浏览:985
金轮股份招聘南通 浏览:252
以下不属于金融机构基本功能的是 浏览:475
重庆金融资产交易中心有限公司 浏览:567
取外汇叫取现炒吗 浏览:552
桂城海八东路金融公司 浏览:167
现在投资顾问理财顾问好做吗 浏览:526
2018银行理财产品市场规模及发展趋势 浏览:514
马云和孙正义在洗手间融资 浏览:541
宜信金融机构 浏览:285
民生证券财富管理部 浏览:602
好未来学而思的融资状况 浏览:362
在银行买的定期理财产品怎么取出来 浏览:415
长期投资理财基金 浏览:550
首汽215亿融资估值 浏览:685
平安车险佣金高的日子 浏览:547
发行股份购买资产云赛 浏览:507
初入职场理财是期货好还是基金定投好 浏览:715
间接融资邻域中的金融中介有一 浏览:375