英国 美国 香港 日本 瑞士
贵金属投资品牌
你当前所在页面: 大田环球首页 > 黄金学院 > 炒黄金 > MACD指标公式

MACD指标公式

关键字:MACD指标公式

MACD指标公式

MACD指标主要是利用快速和慢速移动平均线的相互结合,由此预测现货黄金价格后市走势中的单边上涨或下跌行情,下面我们来看一下,MACD指标公式的计算原理,以及其计算方法是什么。

MACD指标公式计算原理:

1、通过快速和慢速移动平均线之间形成的偏差值,作为判断现货黄金行情是属于多头还是空头,因为偏差值越大,说明快速平均线与慢速平均线之间的数值相差越大,一般来说,偏差值呈正数增大,在大田环球贵金属平台的MACD指标图反映为,白色柱线在零轴上方的面积越来越大,说明快线上升幅度高于慢线,反映为金价正处于上行轨道,因此为买盘主导的市场,同理,偏差值呈负数增大,在大田环球贵金属平台的MACD指标图反映为,白色柱线在零轴下方的面积越来越大,说明快线下降幅度高于慢线,反映金价正处于下方轨道,因此为卖盘主导的市场。

2、对偏差值进行一定天数的加权平均运算,就得出偏差平均值,一般偏差平均值对行情的敏感变动低于偏差值,因此偏差值的震荡程度会高于偏差平均值。而偏差值的升幅高于偏差平均值时,多头行情占主导地位,同理地,当偏差值降幅高于偏差平均值时,空头行情占主导地位。

因此MACD的计算公式为(设短日数为X1,长日数为X2)

X1的EMA=前一天的EMA X1*(X1-1)/(X1+1)+本日收盘价*2/(X1+1)

X2的EMA=前一天的EMA X2*(X2-1)/(X2+1)+本日收盘价*2/(X2+1)

X1的EMA-X2的EMA=DIF(偏差值)

注:短日数是指相较于长日数的天数而言的,指短日数比被减数中的长日数的天数要短

再计算N天后的DIF指数平滑移动平均值DEA,

前一天的DEA*(N-1)/(N+1)+本日DIF*2/(N+1)=DEA.

MACD指标公式计算方法:

1、分别计算出短日数和长日数的移动平均线,如上文中X1的EMA和X2的EMA,

2、X1的EMA和X2的EMA的差值,即为偏差值DIF,则短日数移动平均线-长日数移动平均线=偏差值,

3、对偏差值DIF进行N日内的指数平滑移动平均计算,得出DEA,

4、把DIF和DEA的各个值连接,就得出两条快慢移动平均线,一条为DIF线,一条为DEA线,买卖信号则决定于两条线段的交叉点。


本文来源: 大田环球贵金属

猜你喜欢:黄金能避险吗

贵金属投资网

Risk Warning

Trading bullion and financial instruments carries significant risks and may not be suitable for all investors, requiring careful consideration of investment objectives, experience, and risk tolerance. Key risks include market volatility, leverage risks that can amplify gains or losses, liquidity issues that may prevent executing trades at desired prices, and technical failures in online trading systems. Prices fluctuate unpredictably, and past performance does not guarantee future results. CIDT Global Bullion Limited provides general market commentary but does not offer investment advice and is not liable for any losses incurred from reliance on its information, which may change without notice.


Jurisdiction Disclaimer

CIDT Global Bullion Limited's services are subject to local regulations and may not be available in all jurisdictions. Users are responsible for ensuring compliance with their local laws. Services are not provided in regions where they are prohibited by law, under international sanctions, or require licensing that the company does not hold. By using the platform, users confirm they are not in a restricted jurisdiction and accept full responsibility for legal compliance. The company reserves the right to decline or terminate services in restricted areas without prior notice.

QQ客服 在线客服 微信客服