當前位置:首頁 > 财經 > 正文

通達信MACD交易系統主圖指标 貼圖

1.股價高于平均線,視為強勢;股價低于平均線,視為弱勢
2.平均線向上漲升,具有助漲力道;平均線向下跌降,具有助跌力道;
3.二條以上平均線向上交叉時,買進;
4.二條以上平均線向下交叉時,賣出;
5.移動平均線的信号經常落後股價,若以EXPMA 、VMA 輔助,可以改善。


總漲跌比:=DYNAINFO(60)/(DYNAINFO(60)+DYNAINFO(61))*100,COLORCYAN,NODRAW;
DRAWTEXT_FIX(1,0.2,0.0,0,STRCAT('總漲跌比: ',CON2STR(總漲跌比,2))),COLORCYAN;
DRAWTEXT_FIX(ISLASTBAR,0.005,0,0,STRCAT('主營同比: ',CON2STR(FINANCE(44),2))),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR,0.005,0.06,0,STRCAT('利潤同比: ',CON2STR(FINANCE(43),2))),COLORGREEN;
SBL:= STRCAT(STRCAT(STRCAT(HYBLOCK,DYBLOCK),GNBLOCK),ZDBLOCK);
DRAWTEXT_FIX(1,0.4,0,0,SBL),COLOR0090FF;

DIF:=EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);
DEA:=EMA(DIF,M);
MACD:=2*(DIF-DEA);
KK:=IF(DIF>DEA,5,-5);


JCSC:=(M-1)/(M+1)*DEA/(1-2/(M+1));{計算出金叉死叉時的DIFF值}
DD:=(MACD/2+(DEA*(M-1)/(M+1)))/(1-2/(M+1));{計算出明日MACD=MACD時的DIFF值}
DIF拐頭價:(DIF*(SHORT+1)*(LONG+1)-(LONG+1)*(SHORT-1)*EMA(C,SHORT)+(SHORT+1)*(LONG-1)*EMA(C,LONG))/(2*((LONG+1)-(SHORT+1)))COLORGREEN,LINETHICK1,POINTDOT;
金死叉價:(JCSC*(SHORT+1)*(LONG+1)-(LONG+1)*(SHORT-1)*EMA(C,SHORT)+(SHORT+1)*(LONG-1)*EMA(C,LONG))/(2*((LONG+1)-(SHORT+1))),NODRAW;
柱變向價:=(DD*(SHORT+1)*(LONG+1)-(LONG+1)*(SHORT-1)*EMA(C,SHORT)+(SHORT+1)*(LONG-1)*EMA(C,LONG))/(2*((LONG+1)-(SHORT+1))),COLORYELLOW,POINTDOT;
黃铢消失見頂:=IF(柱變向價>=DIF拐頭價,柱變向價,DRAWNULL),COLORYELLOW,CIRCLEDOT,LINETHICK1;
拐頭價:IF(DIF拐頭價<柱變向價,DIF拐頭價,DRAWNULL), COLORRED,LINETHICK4;

DRAWNUMBER(DIF DRAWNUMBER(DIF>DEA,DIF拐頭價,BARSLAST(CROSS(DIF,DEA))+1),COLORWHITE,NODRAW;
ZJ:拐頭價,COLOR0000FF;
HY:=金死叉價,COLORFF00FF;
IF(ZJ > REF(ZJ,1),ZJ,DRAWNULL),COLORRED,LINETHICK2;
IF(ZJ < REF(ZJ,1),ZJ,DRAWNULL),COLORGREEN,LINETHICK2;
IF(HY > REF(HY,1),HY,DRAWNULL),COLORMAGENTA,LINETHICK2,NODRAW;
IF(HY < REF(HY,1),HY,DRAWNULL),COLORBLUE,LINETHICK2,NODRAW;

STICKLINE(C>ZJ AND C>O,H,C,0,0 ),COLORRED;
STICKLINE(C>ZJ AND C>O,L,O,0,0 ),COLORRED;
STICKLINE(C>ZJ AND C>O,O,C,2.8,1),COLORRED;
STICKLINE(C>ZJ AND C<=O,H,L,0,0 ),COLORRED;
STICKLINE(C>ZJ AND C<=O,O,C,2.8,0),COLORRED;
STICKLINE(CLOSE = ZJ,H,L,3,0),COLORWHITE;
STICKLINE(CLOSE < ZJ,H,L,0,0),COLORYELLOW;
STICKLINE(CLOSE < ZJ,O,C,2.5,0),COLORYELLOW;
STICKLINE(CO,H,C,0,0),COLORCYAN;
STICKLINE(CO,O,L,0,0),COLORCYAN;
STICKLINE(CO,O,C,2.8,1),COLORCYAN;
STICKLINE(C STICKLINE(C

HD0:=CROSS(DIF,DEA);
金收:REF(L,BARSLAST(HD0)),COLORYELLOW,DOTLINE;
DRAWNUMBER(ISLASTBAR,金收,金收),COLORCYAN;
LD0:=CROSS(DEA,DIF);
死收:REF(H,BARSLAST(LD0)),COLOR00FF00,DOTLINE;
{分時中的收盤标記}
IF(HOUR=15,H*1.008,DRAWNULL),POINTDOT,COLORFFFAAA,LINETHICK9;
IF(HOUR=15,H*1.008,DRAWNULL),POINTDOT,COLOR000FFF,LINETHICK5;
HSL:=V/CAPITAL*100;
DRAWNUMBER(CURRBARSCOUNT=1 AND HSL,C,HSL),COLOR00FFFF;
分時均價:AMOUNT/VOL/100,COLORWHITE,NODRAW;



你可能想看:

有話要說...

取消
掃碼支持 支付碼