设为首页加入收藏

微信关注
官方微信号:71712643
加关注获取每日精选资讯
股票入门欢迎您加入
广告服务联系我们网站地图

通达信MACD指标公式是什么?

2016-4-21 10:50:15 股票入门 http://rumen.southmoney.com

通达信MACD指标公式是什么?附:通达信恭喜发财指标公式 南方财富网小编为您提供


【通达信MACD指标公式】

MA1:=MA((HIGH+LOW)/2,5);
WRAP: break-word; WHITE-SPACE: normal; TEXT-TRANSFORM: none; WORD-SPACING: 0px; COLOR: rgb(51,51,51); PADDING-BOTTOM: 0px; PADDING-TOP: 0px; FONT: 14px/24px 宋体, arial, sans-serif, 'DejaVu Sans', 'Lucida Grande', Tahoma, 'Hiragino Sans GB', STHeiti, SimSun, sans-serif; PADDING-LEFT: 0px; MARGIN: 0px; WIDOWS: 1; LETTER-SPACING: normal; PADDING-RIGHT: 0px; TEXT-INDENT: 0px; -webkit-text-stroke-width: 0px">MA2:=MA((HIGH+LOW)/2,35);
OSC:=MA1-MA2,LINETHICK0,COLORSTICK;
OSCE:=EMA(OSC,1);
DIF : EMA(OSCE,12) - EMA(OSCE,26);
BBDIF:=DIF-REF(DIF,1);
DEA : EMA(DIF,9);
DRAWBAND(DIF,RGB(255,105,180),DEA,RGB(34,139,34));
BBDEA:=DEA-REF(DEA,1);
MACD : 2*(DIF-DEA), COLORSTICK;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,2,0),COLORFFFF00;
STICKLINE(MACD<REF(MACD,1)AND MACD<0,0,MACD,2,0),COLOR00FF00;
STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,2,0),COLOR0099FF;
STICKLINE(MACD>REF(MACD,1)AND MACD>0,0,MACD,2,0),COLORRED;
0,COLORFF8855,LINETHICK2;
UPO:=IF(DIF>=0,DIF,DRAWNULL);
DNO:=IF(DIF<=0,DIF,DRAWNULL);
UP:EMA(UPO,35+5/1.618),COLORFF9900,LINETHICK2;
DN:EMA(DNO,35+5/1.618),COLORFF9900,LINETHICK2;
DIFF3 := EMA(OSCE,12) - EMA(OSCE,26);
DEA3 := EMA(DIFF3,9);
MACD3 := 2*(DIFF3-DEA3), COLORSTICK;
JC := DEA3-DIFF3;
绿柱面积:=IF(MACD3<0,SUM(MACD3,BARSLAST(JC<0)),0);
红柱面积:=IF(MACD3>0,SUM(MACD3,BARSLAST(JC>0)),0);
本次最低价:=LLV(L,BARSLAST(JC<0));
本次最高价:=HHV(H,BARSLAST(JC>0));
X1:=IF (MACD3<0,BARSLAST(CROSS(DIFF3,DEA3)),0);
前次绿柱面积:=REF(绿柱面积,X1+1);
前次最低价:=REF(本次最低价,X1+1);
Y1:=IF((绿柱面积<0 AND ABS(绿柱面积)<ABS(前次绿柱面积)
AND 本次最低价<前次最低价 ),1,0);
RS1:= MACD3<0 AND REF(MACD3,1)<0 AND C<前次最低价
AND ABS(绿柱面积)<ABS(前次绿柱面积) AND ABS(MACD3)<ABS(REF(MACD3,1));
底背驰:= IF (CROSS(DIFF3,DEA3),REF(Y1,1),0);
DRAWTEXT(底背驰,0.08,'积底背'),COLOR00FFFF;
STICKLINE(底背驰,0,0.08,4,0),COLOR0000FF;
DRAWICON(底背驰,0,23),COLORYELLOW;
X2:=IF (MACD3>0,BARSLAST(CROSS(DEA3,DIFF3)),0);
前次红柱面积:=REF(红柱面积,X2+1);
前次最高价:=REF(本次最高价,X2+1);
Y2:=IF((红柱面积>0 AND 红柱面积<前次红柱面积 AND 本次最高价>前次最高价 ),1,0);
RS2:= MACD3>0 AND REF(MACD3,1)>0 AND C>前次最高价 AND ABS(红柱面积)<ABS(前次红柱面积) AND ABS(MACD3)<ABS(REF(MACD3,1));
顶背驰:= IF (CROSS(DEA3,DIFF3),REF(Y2,1),0);
DRAWICON(顶背驰,0,19),COLOR00FF00;
STICKLINE(顶背驰,0,-0.08,4,0),COLOR00FF00;
DRAWTEXT(顶背驰,-0.08,'积顶背'),COLORFF0000;

附:【通达信恭喜发财指标公式】

VAR1:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),25);
VAR2:=HIGH-REF(HIGH,1);
VAR3:=REF(LOW,1)-LOW;
VAR4:=SUM(IF(VAR2>0 AND VAR2>VAR3,VAR2,0),25);
VAR5:=SUM(IF(VAR3>0 AND VAR3>VAR2,VAR3,0),25);
VAR6:=VAR4*100/VAR1;
VAR7:=VAR5*100/VAR1;
VAR8:=MA(ABS(VAR7-VAR6)/(VAR7+VAR6)*100,15);
VAR9:=(VAR8+REF(VAR8,15))/2;
A:=(VAR7>VAR6 AND VAR7>25 AND VAR6<25);
B:ZIG(3,50/5)*100,COLORWHITE;
G:MA(B,2),COLORYELLOW;
D:=CROSS(B,G)*1000,COLORRED;
W:=CROSS(G,B)*1000,COLORBLUE;
E:=REF(INDEXC,1);
F:=SMA(MAX(INDEXC-E,0),3,1)/SMA(ABS(INDEXC-E),3,1);
VAR10:=F AND F<8;
VAR11:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR12:=SMA(VAR11,3,1);
VAR13:=SMA(VAR12,3,1);
VAR14:=VAR13 AND VAR13<20;
MM:=A AND D AND VAR10 AND VAR14 ;
DRAWTEXT(W=1000,B*1.05,'卖' ),COLOR00FF00;
DRAWTEXT(D=1000,B*1.05,'买'),COLORRED;

更多通达信指标公式相关资讯请关注南方财富网

 

股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。