趨向指標DMI計算及詳解解讀_第1頁
趨向指標DMI計算及詳解解讀_第2頁
趨向指標DMI計算及詳解解讀_第3頁
趨向指標DMI計算及詳解解讀_第4頁
趨向指標DMI計算及詳解解讀_第5頁
已閱讀5頁,還剩24頁未讀 繼續免費閱讀

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領

文檔簡介

1、DMI 技術指標的計算方法DMI(Directional Movement Index)指標,中文名稱為趨向指標,由技術分析大師威爾斯?威爾德 (J?Wells?Wilder?Jr )發明,被認為是最有成就、最實用的一套技術分析工具。本指標最大的特點是它能準確地告訴我們行情是否啟動。在技術分析領域中,很多技術指標必須搭配 DMI 指標來研判某只股票的漲跌。本指標的基本原理為,尋求股票價格漲跌、買賣雙方力量的均衡點 (Iquilibrium Point) ,及價格在雙方互動下波動循環的過程。DMI 指標是由四條線來組成一幅美麗的圖表。這四條線分別為+DI (上升動向線) 、-DI(下降動向線)

2、、 ADX(方向線 )、 ADXR( 評估線 ) 。DMI 公式原理:計算 DMI 第一項工作, 便是確認其基本的動向變動值(DM) 是上漲還是下跌。 +DM 與 -DM來表示漲與跌動向變動值。動向變動值為當日價格波動幅度大于前一日價格的部分最大值。也就是說,動向變動值已能表示出價格波動的漲跌幅度。1 零動向 (Zero Directional Movement)經過計算 +DM 與 -DM 的值均為零。發生這種現象的情況有兩種:a 內移日 (Inside Day)當日最高價小于或等于前一交易日最高價,當日最低價大于或等于前一交易日的最低價,即為內移日,這時 +DM 與 -DM 值為零。b 買

3、賣雙方均衡日當日最高價大于前一交易日最高價,其差的絕對值正好等于當日最低價與前一交易日最低價差額絕對值,這時買賣雙方處于均衡之勢,+DM 與 -DM 值為零。2 上升動向 +DM如果當日最高價比前一交易日最高價更高,且當日最低價大于前一交易日最低價,則出現上升現象,動向值等于當日最高價與前一交易日最高價的差頒絕對值。3 下跌動向 -DM如果當日最低價比前一交易日最低價更低,且當日最高價小于前一交易日最高價,則出現下降動向值,此值等于當日最低價與前一交易日最低價的差額絕對值。4如果當日最高價大于或等于前一交易日最高價,而且當日最低價小于前一交易日最低價,若前者差額絕對值大于后者差額絕對值時,取前

4、者差額絕對值+DM ;若前者差額絕對值小于后者差額絕對值時,取后者差額絕對值為-DM 。第一項工作完成后,我們還要找出真正的波幅(True Ram) ,這是我們要完成的第二項工作。真正波幅 (TR) ,是當日價格與前一交易日收盤價格比較之后的最大變動值。計算方式:(1) 當日收盤價 -當日最低價(2) 當日最高價 -前一交易日收盤價(3) 當日最低價 -前一交易日收盤價1 、 2、 3 種計算結果,三者差額絕對值最大者,即為當日的真正波幅(TR) 值。第一項工作完成了動向變動值(DM) ,第二項工作完成了真正波幅(TR) ,第三項工作要完成的是動向指數線(Directional Indicat

5、or)。動向線 (DI) 為檢測價格上漲或下跌的指標,上升動向線以 +DI 來表示, 下跌動向線用 -DI來表示。上升或下跌動向線的計算方法如下:+DI +DM TR-DI -DM TR要使動向線具有參考價值,必須進行一定時期的累計運算,威爾德認為最適當的周期是14 天,筆者則認為在中國大陸股市中其最具有使用價值的周期為7 天。計算方法如下:分別將 7 天內的 +DM 、-DM 及 TR 平均,所得到的數值分別為 +DM7 、-DM7 及 TR7 。因此 7 天的上升或下跌動向指數線的計算方法如下:+D17 +DM7 TR7-D17 -DM7 TR7需要說明的是負的動向變動值并不是負數,負號僅

6、代表下跌方向,計算出正負動向指標(DI) 的數值后,由于其數值永遠介于0 與 100 之間,因此為了方便圖表的繪制,7 天上升動向線 (+DI7) 表示最近7 天以來實際上漲力量的百分比,而7 天下跌動向線(-D17) 表示最近7 天以來下跌力量的百分比。如果股票價格持續下跌, 那么負動向變動值不斷出現, 將使下跌動向線的數值不斷出現,下跌動向線的數值不斷升高。若價格持續上漲,則上述情況的相反導向即將出現于圖形上。當股價在盤整時,上升與下跌動向線差異則非常小。當上述情況出現時,就要借助動向平均線(ADX) 來研判。動向值 (DX) 計算方式為:DX DI 差 -DI 和DI 差 +DI-(-D

7、I)DI 和 +DI+(-D1)七天周期動向值的計算公式為:DX7 DI7 差 -DI7 和D17 差 +DI7-(-DI7)D17 和 +DI7+(-DI7)由于動向值的變動性大,因此以7 作為平滑計算,即可算出ADXADX ( 昨日動向平均值+ 今日動向值 ) 7ADX 值算出后,方向就明顯了,最后,我們將要計算ADXR 評比線的值:ADXR ( 今日動向平均值ADX+7 日前動向平均值ADX) 2DMI 技術指標的計算方法DMI 指標的計算方法和過程比較復雜,它涉及到DM 、TR 、DX 等幾個計算指標和+DI(即PDI ,下同)、 DI (即 MDI ,下同)、 aDX 和 aDXR

8、等 4 個研判指標的運算。計算的基本程序以計算日 DMI 指標為例,其運算的基本程序主要為:1、按一定的天數將DX 累加后平均,求得n 日內的平均動向值aDX 。2、再通過當日的aDX 與前面某一日的aDX 相比較,計算出aDX 的評估數值aDXR 。3、通過 n 內的上升指標 +DI 和下降指標 DI 之間的差和之比,計算出每日的動向值 DX 。4、將的上升指標n 內的上升動向值和下降動向值分別除以+DI 和下降指標 DI 。n 日內的真實波幅值,從而求出n 日內5、按一定的規則比較每日股價波動產生的最高價、最低價和收盤價,計算出每日股價的波動的真實波幅 TR 、 +DI 、 DI ,在運算

9、基準日基礎上按一定的天數將其累加,以求 n 日的 TR、 +DM 和 DM 值。計算的具體過程【一】計算當日動向值動向 指數的當日動向值分為上升動向、下降動向和無動向等三種情況,每日的當日動向值只能是三種情況的一種。a、上升動向(+DM )+DM 代表正趨向變動值即上升動向值,其數值等于當日的最高價減去前一日的最低價。上升動向值必須大于當日最低價減去前一日最低價的絕對值,否則+DM=0 。b、下降動向(DM ) DM 代表負趨向變動值即下降動向值,其數值等于當日的最低價減去前一日的最低價。下降動向值必須大于當日的最高價減去前一日最低價的絕對值,否則DM=0 。c、無動向無動向代表當日動向值為

10、“零 ”的情況,即當日的 +DM 和 DM 同時等于零。有兩種股價波動情況下可能出現無動向。 一是當當日的最高價低于前一日的最高價并且當日的最低價高于前一日的最低價,二是當上升動向值正好等于下降動向值。【二】計算真實波幅(TR )TR 代表真實波幅,是當日價格較前一日價格的最大變動值。取以下三項差額的數值中的最大值(取絕對值)為當日的真實波幅:a、當日的最高價減去當日的最低價的價差。b、當日的最高價減去前一日的收盤價的價差。c、當日的最低價減去前一日的收盤價的價差。TR 是 a、 b、 c 中的數值最大者【四】計算方向線DI方向線 DI 是衡量股價上漲或下跌的指標,分為“上升指標 ”和 “下降

11、指標 ”。在有的股市分析軟件上, +DI 代表上升方向線, DI 代表下降方向線。 其計算方法如下: +DI=( DM÷ TR )×100 DI= ( DM÷ TR ) ×100;要使方向線具有參考價值 ,則必須運用平滑移動平均的原理對其進行累積運算。以 12 日作為計算 周期 為例,先將 12 日內的 +DM 、 DM 及 TR 平均化,所得數值分別為 +DM12 , DM12 和 TR12 ,具體如下: +DI ( 12) =( +DM12÷ TR12 )×100 DI( 12)=( DM12÷ TR12)×1

12、00;隨后計算第 13 天的 +DI12 、DI12 或 TR12 時,只要利用平滑移動平均 公式 運算即可。例如:當日的 TR12=11/12÷前一日 TR12 當日 TR上升或下跌方向線的數值永遠介于0 與 100 之間。【五】計算動向平均數aDX依據 DI 值可以計算出 DX 指標值。 其計算方法是將 +DI 和 DI 間的差的絕對值除以總和的百分比得到動向指數 DX 。由于 DX 的波動幅度比較大, 一般以一定的周期的平滑計算,得到平均動向指標aDX 。具體過程如下:DX= ( DI DIf ÷DI suM ) ×100。其中, DI DIf 為上升指標和

13、下降指標的價差的絕對值。DI suM 為上升指標和下降指標的總和;aDX 就是 DX的一定周期n 的移動平均值。【六】計算評估數值aDXR在 DMI 指標中還可以添加aDXR 指標,以便更有利于行情的研判。aDXR 的計算公式為: aDXR= (當日的aDX 前一日的aDX ) ÷2。和其他指標的計算一樣,由于選用的計算周期的不同, DMI 指標也包括日DMI 指標、周 DMI 指標、 月 DMI 指標年 DMI 指標以及分鐘 DMI 指標等各種類型。經常被用于股市研判的是日DMI 指標和周DMI 指標。雖然它們的計算時的取值有所不同,但基本的計算方法一樣。另外,隨著股市軟件分析技術

14、的發展,投資者只需掌握 DMI 形成的基本原理和計算方法,無須去計算指標的數值,更為重要的是利用 DMI 指標去分析、研判 股票行情。dmi 指標原理和計算方法一、 dmi 指標的原理dmi 指標是通過分析股票價格 在漲跌過程中買賣雙方力量均衡點的變化情況,即多空雙方的力量的變化受價格波動的影響而發生由均衡到失衡的循環過程,從而提供對趨勢判斷依據的一種技術指標。dmi 指標的基本原理是在于尋找股票價格漲跌過程中,股價藉以創新高價或新低價的功能, 研判多空力量, 進而尋求買賣雙方的均衡點及股價在雙方互動下波動的循環過程。在大多數指標中, 絕大部分都是以每一日的收盤價的走勢 及漲跌幅的累計數來計算

15、出不同的分析數據, 其不足之處在于忽略了每一日的高低之間的波動幅度。比如某個股票的兩日收盤價可能是一樣的,但其中一天上下波動的幅度不大,而另一天股價的震幅卻在10% 以上,那么這兩日的行情走勢的分析意義決然不同,這點在其他大多數指標中很難表現出來。而 dmi指標則是把每日的高低波動的幅度因素計算在內,從而更加準確的反應行情的走勢及更好的預測行情未來的發展變化。二、 dmi 指標的計算方法dmi 指標的計算方法和過程比較復雜,它涉及到dm 、 tr 、 dx 等幾個計算指標和+di(即 pdi ,下同)、di (即 mdi ,下同)、 adx 和 adxr 等 4 個研判指標的運算。1、計算的基

16、本程序以計算日 dmi指標為例,其運算的基本程序主要為:( 1)按一定的規則比較每日股價波動產生的最高價、最低價和收盤價,計算出每日股價的波動的真實波幅tr 、 +di 、 di ,在運算基準日基礎上按一定的天數將其累加,以求n日的 tr 、 +dm和 dm 值。( 2)將 n 內的上升動向值和下降動向值分別除以n 日內的真實波幅值,從而求出 n 日內的上升指標 +di和下降指標di 。( 3)通過 n 內的上升指標+di和下降指標 di 之間的差和之比,計算出每日的動向值dx 。( 4)按一定的天數將dx 累加后平均,求得n 日內的平均動向值adx 。( 5)再通過當日的adx 與前面某一日

17、的adx 相比較,計算出adx 的評估數值adxr 。2、計算的具體過程( 1)計算當日動向值動向指數的當日動向值分為上升動向、下降動向和無動向等三種情況,每日的當日動向值只能是三種情況的一種。a、上升動向( +dm )+dm代表正趨向變動值即上升動向值,其數值等于當日的最高價減去前一日的最低價。上升動向值必須大于當日最低價減去前一日最低價的絕對值,否則+dm=0。b 、下降動向(dm ) dm 代表負趨向變動值即下降動向值,其數值等于當日的最低價減去前一日的最低價。下降動向值必須大于當日的最高價減去前一日最低價的絕對值,否則dm=0 。c、無動向無動向代表當日動向值為“零”的情況,即當日的+

18、dm和 dm 同時等于零。有兩種股價波動情況下可能出現無動向。一是當當日的最高價低于前一日的最高價并且當日的最低價高于前一日的最低價,二是當上升動向值正好等于下降動向值。( 2)計算真實波幅(tr )tr 代表真實波幅, 是當日價格較前一日價格的最大變動值。取以下三項差額的數值中的最大值(取絕對值)為當日的真實波幅:a、當日的最高價減去當日的最低價的價差。b 、當日的最高價減去前一日的收盤價的價差。c、當日的最低價減去前一日的收盤價的價差。tr 是 a、 b 、 c 中的數值最大者( 3)計算方向線di方向線 di 是衡量股價上漲或下跌的指標,分為“上升指標”和“下降指標”。在有的股市 分析軟

19、件上,+di代表上升方向線,di 代表下降方向線。其計算方法如下:+di= (dm ÷tr )×100 di= ( dm ÷tr )×100要使方向線具有參考價值,則必須運用平滑移動平均的原理對其進行累積運算。以12日作為計算周期為例,先將 12 日內的 +dm 、 dm 及 tr 平均化,所得數值分別為+dm12,dm12和 tr12 ,具體如下:+di ( 12 ) = ( +dm12÷tr12 )×100 di ( 12 ) = ( dm12 ÷tr12 )×100隨后計算第13 天的 +di12 、di12

20、 或 tr12 時,只要利用平滑移動平均公式運算即可。例如:當日的 tr12=11/12÷前一日 tr12 當日 tr上升或下跌方向線的數值永遠介于0 與 100 之間。( 4)計算動向平均數adx依據 di 值可以計算出dx 指標值。其計算方法是將+di和di 間的差的絕對值除以總和的百分比得到動向指數dx 。由于 dx 的波動幅度比較大,一般以一定的周期的平滑計算,得到平均動向指標adx 。具體過程如下:dx=(didif÷disum) ×100其中, didif為上升指標和下降指標的價差的絕對值disum為上升指標和下降指標的總和adx 就是 dx 的一定周

21、期n 的移動平均值。( 5)計算評估數值adxr在 dmi 指標中還可以添加adxr 指標,以便更有利于行情的研判。adxr 的計算公式為:adxr= (當日的 adx 前一日的adx )÷2和其他指標的計算一樣,由于選用的計算周期的不同,dmi指標也包括日dmi 指標、周 dmi 指標、月 dmi 指標年 dmi 指標以及分鐘 dmi 指標等各種類型。經常被用于股市研判的是日 dmi 指標和周 dmi 指標。雖然它們的計算時的取值有所不同,但基本的計算方法一樣。另外,隨著股市軟件分析技術的發展,投資 者只需掌握dmi形成的基本原理和計算方法,無須去計算指標的數值,更為重要的是利用d

22、mi指標去分析、研判股票行情。Directional Movement Index (DMI)DescriptionThe Directional MovementIndex (also known as DMI) isa momentumindicatorthat was developed by J. Welles Wilder.Itiscalculated using the price,compares the current price with the previous price range, and displaysthe resultas an upward movement

23、line(+DI),and a downward movementline(-DI), between 0 and 100. The DMI also calculates the strength of theupward ordownward movement, and displaysthe resultas a trend strengthline (ADX).The DMI is displayed on its own chart, separate from the price bars, and is the lower section in the chart shown a

24、bove.CalculationDescription: The DMI is the ratio of exponential moving averages of the greater of the upward (U)and downward (D) price movements, and the true range (TR).Calculation:U = Hn - Hn-1D = Ln-1 - LnTR = (Hn - Ln) | (Hn - Cn-1) | (Cn-1 - Ln)EMAUP = EMAUn-1 + (2 / (n + 1) * (Un - EMAUn-1)EM

25、ADOWN = EMADn-1 + (2 / (n + 1) * (Dn - EMADn-1)EMATR = EMATRn-1 + (2 / (n + 1) * (TRn - EMATRn-1)+DI = EMAUP / EMATR-DI = EMADOWN / EMATRDX = ABS(+DI - -DI) / (+DI + -DI)ADX = EMADXn-1 + (2 / (n + 1) * (DXn - EMADXn-1)Trading UseThe Directional Movement Index can be used inbothrangingandtrendingmark

26、ets. In general, when the +DI line isabove the -DI line, the market is moving upwards, and when the -DI lineis above the+DI line,the market is moving downwards. The ADXlineshowsthestrengthofthe move, and the market is consideredtobe trendingwhentheADXlineisabove 30, and ranging when the ADXlineisbel

27、ow 30.Thereare several trading systems that use the DMI, so there are severalalternative uses of both the DI lines, and the ADX line.( ranging and trending marketsDefinition:Day trading markets are referred to as either ranging or trending depending upon the type of price movement that is currently

28、occurring. The descriptions of these types of markets are as follows :RangingA ranging market is a market where the price is moving back and forth between a higher price and a lower price. The higher price would be acting as resistance because it prevents the price from moving above it, and the lowe

29、r price would be acting as support because it prevents the price from moving below it.The price range of a ranging market can be small or large, and if the range is very small the market would be considered to be in chop (moving sideways with very little upward or downward movement).TrendingA trendi

30、ng market is a market where the price is moving in a single direction, either up or down, but not sideways.may last for several weeksThere may be several small price reversals, but nothing large enough to prevent the price movement from continuing in its original direction. A day trading trend may l

31、ast for a few minutes or a few hours, and longer term trendsor months.)DMI Points The Way To ProfitsBy Candy Schaap AAA |The primary objective of the trend trader is to enter a trade in the direction of the trend . Reading directional signals from price alone can be difficult and is often misleading

32、 because price normally swings in both directions and changes character between periods of low versus high volatility.The directional movement indicator(also known as the directionalmovement index - DMI) is a valuable tool for assessing price directionand strength. This indicator was created in 1978

33、 by J. Welles Wilder,who also created the popularrelative strength index . DMI tells you whento be long or short. It is especially useful for trend trading strategiesbecause it differentiates between strong and weak trends, allowing thetrader to enter only the strongest trends. DMI works on all time

34、 framesand can be applied to any underlying vehicle (stocks, mutualfunds, exchange-traded funds, futures, commodities and currencies).Here, we'll cover the DMI indicator in detail and show you whatinformation it can reveal to help you achieve better profits. (Forbackground reading, see Momentum

35、And The Relative Strength Index.)DMI CharacteristicsDMI is a moving average of range expansion over a given period (default14). The positive directional movement indicator(+DMI) measures howstrongly price moves upward; thenegative directional movementindicator (-DMI) measures how strongly price move

36、s downward. The two lines reflect the respective strength of the bulls versus the bears. Each DMI is represented by a separate line (Figure 1). First, look to see which of the two DMI lines is on top. Some short-term traders refer to this as the dominant DMI. The dominant DMI is stronger and more li

37、kely topredict the direction of price. For the buyers and sellers to change dominance, the lines must cross over.A crossover occurs when the DMI on bottom crosses up through the dominant DMI on top. Crossovers may seem like an obvious signal to go long/short, but many short-term traders will wait fo

38、r other indicators to confirm the entry or exit signals to increase their chances of making a profitable trade. Crossovers of the DMI lines are often unreliable because they frequently give false signals when volatility is low and late signals when volatility is high. Think of crossovers as the firs

39、t indicationof a potential change in direction. (For more insight, read the Moving Averages tutorial.)Source: TDAmeritrade Strategy DeskFigure 1: The +DMI and -DMI are shown as separate lines. There are several false crossovers ( Point 1) and one crossover at Point 2that leads to an uptrend with +DM

40、I dominant. Note:The calculations for DMI are complicated and are referenced elsewhere. Also, DMIis normally plotted in the samewindow with the ADXindicator, which is not shown.DMI is used to confirm price action (see Figure 2). The +DMI generally moves in sync with price, which means that the +DMI

41、rises when price rises, and it falls when price falls. It is important to note that the -DMI behaves in the opposite manner and moves counter-directional to price. The -DMI rises when price falls, and it falls when price rises. This takes alittle getting used to. Just remember that the strength of a

42、 price move up or down is always recorded by a peak in the respective DMI line.Reading directional signals is easy. When the +DMI is dominant and rising, price direction is up. When the -DMI is dominant and rising, price direction is down. But the strength of price must also be considered. DMI stren

43、gth ranges from a low of 0 to a high of 100. The higher the DMI value, the stronger the prices swing. DMI values over 25 mean price is directionally strong. DMI values under 25 mean price is directionally weak.Source: TDAmeritrade Strategy DeskFigure 2: DMI is weak at Point 1 and price is choppy. Th

44、e +DMIrises strongly above 25 at Point 2 and the uptrend follows. Note how +DMI moves with price at Point 3 and -DMI moves counter-directional to price at Point 4.DMI MomentumThe great feature of DMI is the ability to see buying and selling pressure at the same time, allowing the dominant force to b

45、e determined before entering a trade. The strength of a swing high (bulls) is reflected in the +DMI peak, and the strength of a swing low (bears) is seen in the -DMI peaks. The relative strength of the DMI peaks tells the momentum of price and provides timely signals for trading decisions. When the

46、buyers are stronger than the sellers, the +DMI peaks will be above 25 and the -DMI peaks will be below 25. This is seen in a strong uptrend. But when the sellers are stronger than the buyers, the -DMI peaks will be above 25and the +DMI peaks will be below 25. In this case, the trend will be down.The

47、 ability of price to trend depends on continued strength in the dominant DMI. A strong uptrend will show a series of rising +DMI peaks that remain above the -DMI for extended periods of time (Figure 3). The opposite is true for strong downtrends. When both DMI lines are below 25 and moving sideways,

48、 there is no dominant force and trend trades are not appropriate. However, the best trends begin after long periods where the DMI lines cross back and forth under the 25 level. A low risk trade setup will occur after DMI expands above the 25 level and price penetrates support/resistance.Source: TDAm

49、eritrade Strategy DeskFigure 3: The +DMI crosses above 25 at Point 1 and remains above the -DMI as the uptrend develops. Note the absence of any crossover by -DMI during the uptrend. Here, the buyers arestrong (+DMI >25) and the sellers are weak (-DMI <25).DMI ConfirmationDMI lines pivot, or c

50、hange direction, when price changes direction. An important concept of DMI pivots is they must correlate with structural pivots in price. When price makes a pivot high, the +DMI will make a pivot high. When price makes a pivot low, the -DMI will make a pivot high (remember -DMI moves counter-directi

51、onal to price).The correlation between DMI pivots and price pivots is important for reading price momentum. Many short-term traders watch for the priceand the indicator to move together in the same direction or times they diverge . One method of confirming an asset's uptrend is to find scenarios when price makes a new pivot high and the +DMI makes a new high. Conversely, a new pivot low combined with a new high on the-DMI is us

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯系上傳者。文件的所有權益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經權益所有人同意不得將文件中的內容挪作商業或盈利用途。
  • 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
  • 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論