移动平均线ma指标公式
简称sma或者ma,也就是俗称的"均线",是最最古老的技术分析指标了。
# 加权移动平均线(Weigted Moving Average)
简称wma,这个相当于是移动平均线的改进。前面说到简单移动平均线是每一天的权重都一样,这样拉低了最近几天暴涨暴跌的影响。加权移动平均线对此作了改进,把日期较近的收盘价的权重提高了。
比如最近6天股票的收盘价序列:[32.8, 25.8, 48.40, 34.移动平均线ma指标公式 50, 25.3, 45.0]
第1天在最左边,第6天在最右边,那么第1天的权重最小,为1,第6天的权重最大,为6,总的权重是6+5+4+3+2+1=21
所以加权移动平均线的计算方式就是:
wma(6)=(6 * 45.0+5 * 移动平均线ma指标公式 25.3+4 * 34.5+3 * 48.4+2 * 25.8+1 * 32.8)/21=764.1/21.0=36.39
# 指数移动平均线(Exponential Moving Average)
简称ema,先定义EMA(X,N),它表示求X的N日指数平滑移动均匀。
那么指数移动平均线的公式就是:
EMA[n]= a * Pn + (1-a) * EMA[n-1]
- Pn:表示第n日的收盘价
- a:权重值。a的取值可以有下面几种:
- 2/(N+1), N为上面的周期天数
- 1/(1+decay),decay为衰减系数
接下来看看EMA的例子就知道它的思想了:
第1天, EMA(1)=p1
第2天, 移动平均线ma指标公式 EMA(2)=a*p2+ (1-a)*p1
第3天, EMA(3)=a*p3+ (1-a)*(a*p2+(1-a)*p1)= a*p3+ a(1-a)p2 + (1-a)^2*p1
第4天, EMA(4)=. = a*p4+ a(1-a)p3 + a(1-a)^2*p2+a(1-a)^3*p1移动平均线¶
MACD在应用上应先行计算出快速(一般选12日)移动平均值与慢速(一般选26日)移动平均值。以这两个数值作为测量两者(快速与慢速线)间的“差离值”依据。所谓“差离值”(DIF),即12日EMA数值减去26日EMA数值。因此,在持续的涨势中,12日EMA在26日EMA之上。其间的正差离值(+DIF)会愈来愈大。反之在跌势中,差离值可能变负(-DIF),也愈来愈大。 至于行情开始回转,正或负差离值要缩小到一定的程度,才真正是行情反转的信号。MACD的反转信号界定为“差离值”的9日移动平均值(9日EMA)。 在MACD的指数平滑移动平均线计算公式中,都分别加T+1交易日的份量权值,以现在流行的参数12和26为例,其公式如下
- 当DIF和MACD均大于0(即在图形上表示为它们处于零线以上)并向上移动时,一般表示为行情处于多头行情中,可以买入开仓或多头持仓;
- 当DIF和MACD均小于0(即在图形上表示为它们处于零线以下)并向下移动时,一般表示为行情处于空头行情中,可以卖出开仓或观望。
- 当DIF和MACD均大于0(即在图形上表示为它们处于零线以上)但都向下移动时,一般表示为行情处于下跌阶段,可以卖出开仓和观望;
- 当DIF和MACD均小于0时(即在图形上表示为它们处于零线以下)但向上移动时,一般表示为行情即将上涨,股票将上涨,可以买入开仓或多头持仓。
© Copyright 2019, qytz(lennyh) Revision 72e39d11 .
Versions latest Downloads pdf 移动平均线ma指标公式 html epub On Read the Docs Project Home Builds Free document hosting provided by Read the Docs.
Translation of "移动平均线" in English
RISK has fitted the Moving Average 1 (MA 1) stochastic time series process to this variable, 移动平均线ma指标公式 which is the stock price of Apple Computer.
This indicator is based on the Exponential Moving Average (EMA). Let's view the error of price deviation from EMA value
When using hourly or daily candlestick pricing, a 50-period simple moving average (50 SMA) is a good trend filter.
The Moving Average is used to indicate the direction of the current trend 移动平均线ma指标公式 移动平均线ma指标公式 and helps provide clean data by removing 移动平均线ma指标公式 daily price fluctuations found in the financial data.
Examples are used only to help you translate the word or expression 移动平均线ma指标公式 searched in various contexts. They are not selected or validated by us and can contain inappropriate terms or ideas. Please report examples to be edited or not 移动平均线ma指标公式 to be displayed. Rude or colloquial translations are usually marked in red or orange.
这是我见过最全最易懂的策略指南:指数移动平均线交易策略
Notice: The content above (including the pictures and videos if any) is uploaded and posted by a user of NetEase Hao, which is a social media platform and only provides information storage services.