『壹』 請教通達信中怎麼把下面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個公式整合在一個畫面下顯示,是需要做特殊處理的。