通達信主力MACD指標公式
- 指標類別: 通達信指標公式
- 授權方式: 免費版
- 指標評級: ★★★★★
- 指標分類: 趨勢
- 畫線方法: 副圖
- 日期:2022-07-15 來源:互聯(lián)網(wǎng)
通達信主力MACD指標公式:
N:=2;
K:=(DATE<1341230);
XD1:=INDEXO;
XD2:=INDEXH;
XD3:=INDEXL;
XD4:=INDEXC;
對應指數(shù)開:INDEXO,COLOR0000FF,NODRAW;
{盤:INDEXO,COLOR0000FF,NODRAW;}
盤中最高:INDEXH,NODRAW;
盤中最低:INDEXL,NODRAW;
收盤點:INDEXC,NODRAW;
{位:INDEXC,NODRAW;}
大盤資金增減:(100*((INDEXV/REF(INDEXV,1))-1)),COLORFFFF00,NODRAW;
JJ:=(XD4+XD2+XD3)/3;
A:=EMA(JJ,10);
B:=REF(A,1);
{買賣}
決策點位:B,COLORFFFFFD,NODRAW;
當日換:SUM(100*V/CAPITAL,1),NODRAW;
五日換:SUM(100*V/CAPITAL,5),NODRAW;
{短線MACD}
VAR1:=EMA(CLOSE,12)-EMA(CLOSE,26);
VAR2:=EMA(VAR1,50);
VAR3:=2*(VAR1-VAR2);
FD:=2*(VAR2-VAR1);
MACD漸弱:IF(VAR3<REF(VAR3,1)&&VAR3>0,VAR3,0),COLORYELLOW,LINETHICK4,STICK;
MACD強勢:IF(VAR3>=REF(VAR3,1) AND VAR3>0,VAR3,0),COLORRED,LINETHICK4,STICK;
MACD走強:IF(VAR3>REF(VAR3,1) AND VAR3<0,VAR3,0),COLORFFC8FF,LINETHICK4,STICK;
MACD走弱:IF(VAR3<=REF(VAR3,1) AND VAR3<0,VAR3,0),COLORFFCC66,LINETHICK4,STICK;
{STICKLINE(VAR3<REF(VAR3,1) AND VAR3>0,0,VAR3,2,1),COLORYELLOW;
STICKLINE(VAR3>=REF(VAR3,1) AND VAR3>0,0,VAR3,2,1),COLORRED;
STICKLINE(VAR3>REF(VAR3,1) AND VAR3<0,0,VAR3,2,1),COLORFFC8FF;
STICKLINE(VAR3<=REF(VAR3,1) AND VAR3<0,0,VAR3,2,1),COLORFFCC66;}
短趨:EMA(CLOSE,12)-EMA(CLOSE,26),COLORGREEN;
長趨:EMA(短趨,50),COLORFF00FF;
{簡單基本面信息}
流通盤大小:=FINANCE(7)/1000000*100,NODRAW;{
銷售毛利率:=FINANCE2(12);
凈利潤同比增長:=FINANCE2(10);}
吸籌:=BARSLAST(FILTER(CROSS("KD.K","KD.D") AND "KD.D"<30,13));
主力吸籌區(qū):=IF(吸籌>0 AND 吸籌<61,吸籌,0);
介入時機:IF(VAR2<0.8 AND CROSS(0,FD),-0.3,DRAWNULL),COLORFF00FF,LINETHICK3,CROSSDOT;
通達信主力MACD指標公式實例圖解:
通達信主力MACD指標公式