① 通達信macd紅綠柱子連線指標
MACD確實好用,但要連線不知道有什麼用,一般那MACD都是和K線比較看背離的。
② 通達信公式修改(請高手將紅綠KDJ公式修改為預警公式)
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
金叉:CROSS(J,K);
**************************
死叉:
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
金叉:CROSS(K,J);
③ 求教大神通達信大盤紅綠柱演算法公式,我要具體公式,可以在通達信運行的,百度搜索的就不要回復了
{N,1,200,5}
FF:=(C-REF(C,N))/REF(C,N);
STICKLINE(FF>0,DYNAINFO(3),DYNAINFO(3)*(1+FF),0.5,0),COLORRED;
STICKLINE(FF<0,DYNAINFO(3),DYNAINFO(3)*(1+FF),0.5,0),COLORGREEN;
④ 請高手編寫個通達信的簡單公式:MACD紅綠柱子背離
MACD頂底背離(同時包含KDJ背離,RSI背離)
公式如下:
DIFF:EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:EMA(DIFF,9);
MACD:2*(DIFF-DEA),COLORSTICK;
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA);
A2:=BARSLAST(REF(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),1));
B2:=REF(C,A2+1)>C AND REF("KDJ.K"(9,3,3),A2+1)<"KDJ.K"(9,3,3) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));
A3:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));
B3:=REF(C,A3+1)>C AND REF("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));
C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));
D1:=REF(C,C1+1)<C AND REF(DIFF,C1+1)>DIFF AND CROSS(DEA,DIFF);
C2:=BARSLAST(REF(CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3)),1));
D2:=REF(C,C2+1)<C AND REF("KDJ.K"(9,3,3),C2+1)>"KDJ.K"(9,3,3) AND CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3));
C3:=BARSLAST(REF(CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24)),1));
D3:=REF(C,C3+1)<C AND REF("RSI.RSI1"(6,12,24),C3+1)>"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24));
MACD底背:IF(B1>0,-0.1,0),COLORRED,POINTDOT;
KDJ底背:IF(B2>0,-0.1,0),COLORFF00FF,POINTDOT;
RSI底背:IF(B3>0,-0.1,0),COLORYELLOW,POINTDOT;
MACD頂背:IF(D1>0,0.1,0),COLOR00FF00,POINTDOT;
KDJ頂背:IF(D2>0,0.1,0),COLORFFCC66,POINTDOT;
RSI頂背:IF(D3>0,0.1,0),COLORWHITE,POINTDOT;
STICKLINE(B1>0,-0.1,0,2,0),COLORRED;
STICKLINE(B2>0,-0.1,0,2,0),COLORFF00FF;
STICKLINE(B3>0,-0.1,0,2,0),COLORYELLOW;
STICKLINE(D1>0,0.1,0,2,0),COLOR00FF00;
STICKLINE(D2>0,0.1,0,2,0),COLORFFCC66;
STICKLINE(D3>0,0.1,0,2,0),COLORWHITE;
⑤ 通達信軟體里MACD金叉死叉用紅色和綠色小箭頭表示的公式
一、DIF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIF,9);
MACD:(DIF-DEA)*2,COLORSTICK;
DRAWICON(CROSS(DIF,DEA),DIF,1);
DRAWICON(CROSS(DEA,DIF),DEA,2);
DRAWTEXT(CROSS(DIF,DEA),DIF,'金叉'),COLORRED;
DRAWTEXT(CROSS(DEA,DIF),DEA,'死叉'),COLORGREEN;
{技術指標公式,副圖用,已測試}
二、DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9)
ENTERLONG
cross(dif,dea);
EXITLONG
cross(dea,dif);
註:一般的程序的確沒什麼用,只有比較精確的程序,加上正確的方法,才有用。
(5)通達信紅綠波公式指標擴展閱讀:
1、當DIF和DEA均大於0,並且DIF向上突破DEA時,並向上移動時,一般表示為行情處於多頭行情中,可以買入開倉或多頭持倉;
2、當DIF和DEA均小於0,並且DIF向下跌破DEA時,並向下移動時,一般表示為行情處於空頭行情中,可以賣出開倉。
3、當DIF和DEA均大於0,並且DIF向下跌破DEA時,並向下移動時,一般表示為行情處於下跌階段,可以賣出開倉和觀望;
4、當DIF和DEA均小於0時,並且DIF向上突破DEA時,但向上移動時,一般表示為行情即將上漲,股票將上漲,可以買入開倉或多頭持倉。
⑥ 求高手編通達信MACD紅綠柱公式
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2,COLORSTICK;
XG:COUNT(C/REF(C,1)>1.07,120)>=2 AND LAST(MACD<REF(MACD,1) AND MACD<0,7,1) AND MACD>REF(MACD,1);
這個是第二個的選股公式。
⑦ 求個macd只顯示紅綠柱的副圖公式。通達信的!
DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:=EMA(DIF,MID);
MACD:(DIF-DEA)*2,COLORSTICK;
參數結合系統指標添加即可.或直接使用下面的公回式也可以答。
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:(DIF-DEA)*2,COLORSTICK;
⑧ 如何在通達信顯示裴波那挈數列指標公式
{方法有2個:其一:網上找到的公式}
HDAY:=80;LDAY:=80;調點:=3;角度:=100;之字幅度:=25;橫向調節:=1;
TCH:=CONST(FINDHIGH(H,0,HDAY*10,1));
GTT:=CONST(BARSLAST(TCH=H))+1;
SX跌H:=CONST(IF(GTT=1,H,REF(H,GTT-1)));
BCL:=CONST(FINDLOW(L,0,LDAY*10,1));
DTT:=CONST(BARSLAST(BCL=L))+1;
SX漲L:=CONST(IF(DTT=1,L,REF(L,DTT-1)));
漲點:=BARSSINCE(BACKSET(ISLASTBAR,BARSLAST(L=SX漲L)+1));
跌點:=BARSSINCE(BACKSET(ISLASTBAR,BARSLAST(H=SX跌H)+1));
最低:=IF(調點=1,跌點,IF(調點=2,漲點,IF(調點=3,漲點,跌點)));
L斜率:=角度/IF(C<300,1000,10);
最高:=IF(調點=1,跌點,IF(調點=2,漲點,IF(調點=3,跌點,漲點)));
H斜率:=角度/IF(C<300,1000,10);
IM68:=((SX跌H-SX漲L)/6-(SX跌H-SX漲L)/8);
GH跌X:=SX跌H+(SX跌H-SX漲L)/8;
DL漲X:=SX漲L-(SX跌H-SX漲L)/8;
GTHT:=IF(DTT>GTT,DTT,GTT);
R:=ABS(GTT-DTT);
{斐波那契周期}
DRAWTEXT(CURRBARSCOUNT=GTT,SX跌H*0.98,'斐波那契下跌周期'),COLOR00FF00;
DRAWTEXT(CURRBARSCOUNT=GTT,SX跌H*0.99,'1'),COLOR00FF00;
STICKLINE(CURRBARSCOUNT=GTT-2,SX跌H,SX漲L,0,0),COLOR556600;
DRAWTEXT(CURRBARSCOUNT=GTT-2,SX跌H*0.99,'3'),COLOR00FF00;
STICKLINE(CURRBARSCOUNT=GTT-4,SX跌H,SX漲L,0,0),COLOR556600;
DRAWTEXT(CURRBARSCOUNT=GTT-4,SX跌H*0.99,'5'),COLOR00FF00;
STICKLINE(CURRBARSCOUNT=GTT-7,SX跌H,SX漲L,0,0),COLOR556600;
DRAWTEXT(CURRBARSCOUNT=GTT-7,SX跌H*0.99,'8'),COLOR00FF00;
STICKLINE(CURRBARSCOUNT=GTT-12,SX跌H,SX漲L,0,0),COLOR556600;
DRAWTEXT(CURRBARSCOUNT=GTT-12,SX跌H*0.99,'13'),COLOR00FF00;
STICKLINE(CURRBARSCOUNT=GTT-20,SX跌H,SX漲L,0,0),COLOR556600;
DRAWTEXT(CURRBARSCOUNT=GTT-20,SX跌H*0.99,'21'),COLOR00FF00;
STICKLINE(CURRBARSCOUNT=GTT-33,SX跌H,SX漲L,0,0),COLOR556600;
DRAWTEXT(CURRBARSCOUNT=GTT-33,SX跌H*0.99,'34 '),COLOR00FF00;
STICKLINE(CURRBARSCOUNT=GTT-54,SX跌H,SX漲L,0,0),COLOR556600;
DRAWTEXT(CURRBARSCOUNT=GTT-54,SX跌H*0.99,'55'),COLOR00FF00;
STICKLINE(CURRBARSCOUNT=GTT-88,SX跌H,SX漲L,0,0),COLOR556600;
DRAWTEXT(CURRBARSCOUNT=GTT-88,SX跌H*0.99,'89'),COLOR00FF00;
STICKLINE(CURRBARSCOUNT=GTT-143,SX跌H,SX漲L,0,0),COLOR556600;
DRAWTEXT(CURRBARSCOUNT=GTT-143,SX跌H*0.99,'144'),COLOR00FF00;
STICKLINE(CURRBARSCOUNT=GTT-232,SX跌H,SX漲L,0,0),COLOR556600;
DRAWTEXT(CURRBARSCOUNT=GTT-232,SX跌H*0.99,'233'),COLOR00FF00;
STICKLINE(CURRBARSCOUNT=GTT-376,SX跌H,SX漲L,0,0),COLOR556600;
DRAWTEXT(CURRBARSCOUNT=GTT-376,SX跌H*0.99,'377'),COLOR00FF00;
STICKLINE(CURRBARSCOUNT=GTT-609,SX跌H,SX漲L,0,0),COLOR556600;
DRAWTEXT(CURRBARSCOUNT=GTT-609,SX跌H*0.99,'610'),COLOR00FF00;
STICKLINE(CURRBARSCOUNT=GTT-986,SX跌H,SX漲L,0,0),COLOR556600;
DRAWTEXT(CURRBARSCOUNT=GTT-986,SX跌H*0.99,'987'),COLOR00FF00;
DRAWTEXT(CURRBARSCOUNT=DTT,SX漲L*1.03,'斐波那契上升周期'),COLOR0000FF;
DRAWTEXT(CURRBARSCOUNT=DTT,SX漲L*1.01,'1'),COLOR0000FF;
STICKLINE(CURRBARSCOUNT=DTT-2,SX跌H,SX漲L,0,0),COLORAA00AA;
DRAWTEXT(CURRBARSCOUNT=DTT-2,SX漲L*1.01,'3'),COLOR0000FF;
STICKLINE(CURRBARSCOUNT=DTT-4,SX跌H,SX漲L,0,0),COLORAA00AA;
DRAWTEXT(CURRBARSCOUNT=DTT-4,SX漲L*1.01,'5'),COLOR0000FF;
STICKLINE(CURRBARSCOUNT=DTT-7,SX跌H,SX漲L,0,0),COLORAA00AA;
DRAWTEXT(CURRBARSCOUNT=DTT-7,SX漲L*1.01,'8'),COLOR0000FF;
STICKLINE(CURRBARSCOUNT=DTT-12,SX跌H,SX漲L,0,0),COLORAA00AA;
DRAWTEXT(CURRBARSCOUNT=DTT-12,SX漲L*1.01,'13'),COLOR0000FF;
STICKLINE(CURRBARSCOUNT=DTT-20,SX跌H,SX漲L,0,0),COLORAA00AA;
DRAWTEXT(CURRBARSCOUNT=DTT-20,SX漲L*1.01.01,'21'),COLOR0000FF;
STICKLINE(CURRBARSCOUNT=DTT-33,SX跌H,SX漲L,0,0),COLORAA00AA;
DRAWTEXT(CURRBARSCOUNT=DTT-33,SX漲L*1.01,'34'),COLOR0000FF;
STICKLINE(CURRBARSCOUNT=DTT-54,SX跌H,SX漲L,0,0),COLORAA00AA;
DRAWTEXT(CURRBARSCOUNT=DTT-54,SX漲L*1.01,'55'),COLOR0000FF;
STICKLINE(CURRBARSCOUNT=DTT-88,SX跌H,SX漲L,0,0),COLORAA00AA;
DRAWTEXT(CURRBARSCOUNT=DTT-88,SX漲L*1.01,'89'),COLOR0000FF;
STICKLINE(CURRBARSCOUNT=DTT-143,SX跌H,SX漲L,0,0),COLORAA00AA;
DRAWTEXT(CURRBARSCOUNT=DTT-143,SX漲L*1.01,'144'),COLOR0000FF;
STICKLINE(CURRBARSCOUNT=DTT-232,SX跌H,SX漲L,0,0),COLORAA00AA;
DRAWTEXT(CURRBARSCOUNT=DTT-232,SX漲L*1.01,'233'),COLOR0000FF;
STICKLINE(CURRBARSCOUNT=DTT-376,SX跌H,SX漲L,0,0),COLORAA00AA;
DRAWTEXT(CURRBARSCOUNT=DTT-376,SX漲L*1.01,'377'),COLOR0000FF;
STICKLINE(CURRBARSCOUNT=DTT-609,SX跌H,SX漲L,0,0),COLORAA00AA;
DRAWTEXT(CURRBARSCOUNT=DTT-609,SX漲L*1.01,'610'),COLOR0000FF;
STICKLINE(CURRBARSCOUNT=DTT-986,SX跌H,SX漲L,0,0),COLORAA00AA;
DRAWTEXT(CURRBARSCOUNT=DTT-986,SX漲L*1.01,'987'),COLOR0000FF;
{其二:系統畫線工具里有}
⑨ 通達信: 下公式出現紅線上穿綠線時選股公式,謝謝了
波段線: =5*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-3*SMA(SMA
((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1)-SMA(SMA(SMA
((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),2,1);
M1:=EMA(MA(波段線,5),3);
底部買:=LLV(波段線,2)=LLV(波段線,8);
買進:CROSS(波段線,REF(波段線+0.01,1)) AND 底部買 AND 波段線<0;
⑩ 怎樣修改公式把通達信MACD紅綠柱變粗
參數還是MACD原來的參數,保持不變,你自己重新輸入。
新公式1 如下:
DIF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:EMA(DIF,MID);
MACD:(DIF-DEA)*2,COLORSTICK;
STICKLINE(DIF>DEA,MACD,0,1,0),COLOR0000FF;
STICKLINE(DIF<DEA,MACD,0,1,0),COLOR008000;
STICKLINE(DIF=DEA,MACD,0,1,0),COLOR000000;
如果希望更粗的話,公式2 如下:
DIF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:EMA(DIF,MID);
MACD:(DIF-DEA)*2,COLORSTICK;
STICKLINE(DIF>DEA,MACD,0,2,0),COLOR0000FF;
STICKLINE(DIF<DEA,MACD,0,2,0),COLOR008000;
STICKLINE(DIF=DEA,MACD,0,2,0),COLOR000000;
{ 把以上你滿意的任一個公式直接粘貼到新公式中 或 覆蓋原來的MACD公式也行,我已檢測過,沒有問題,希望能達到你的要求。 }