请观看如何免费下载自动交易
请在Twitter上找到我们!
加入我们粉丝页
有趣的脚本?
因此发布一个链接 -
让其他人评价
喜欢这个脚本? 在MetaTrader 5客户端尝试它
显示:
5607
等级:
(20)
已发布:
2005.12.15 16:24
已更新:
2016.11.22 07:33
obv.gif (8.61 KB)
OBV.mq4 (3.41 KB) 预览
需要基于此代码的EA交易或指标吗?请在自由职业者服务中订购 进入自由职业者服务


On Balance Volume Technical Indicator (OBV) is a momentum technical indicator that relates volume to price change. The indicator, which Joseph Granville came up with, is pretty simple. When the security closes higher than the previous close, all of the day’s volume is considered up-volume. When the security closes lower than the previous close, all of the day’s volume is considered down-volume.

The basic assumption, regarding On Balance Volume analysis, is that OBV changes precede price changes. The theory is that smart money can be seen flowing into the security by a rising OBV. When the public then moves into the security, both the security and the On Balance Volume will surge ahead.

If the security’s price movement precedes OBV movement, a "non-confirmation" has occurred. Non-confirmations can occur at bull market tops (when the security rises without, or before, the OBV) or at bear market bottoms (when the security falls without, or before, the On Balance Volume Technical Indicator).

The OBV is in a rising trend when each new peak is higher than the previous peak and each new trough is higher than the previous trough. Likewise, the On Balance Volume is in a falling trend when each successive peak is lower than the previous peak and each successive trough is lower than the previous trough. When the OBV is moving sideways and is not making successive highs and lows, it is in a doubtful trend.

Once a trend is established, it remains in force until it is broken. There are two ways in which the On Balance Volume trend can be broken. The first occurs when the trend changes from a rising trend to a falling trend, or from a falling trend to a rising trend.

The second way the OBV trend can be broken is if the trend changes to a doubtful trend and remains doubtful for more than three days. Thus, if the security changes from a rising trend to a doubtful trend and remains doubtful for only two days before changing back to a rising trend, the On Balance Volume is considered to have always been in a rising trend.

When the OBV changes to a rising or falling trend, a "breakout" has occurred. Since OBV breakouts normally precede price breakouts, investors should buy long on On Balance Volume upside breakouts. Likewise, investors should sell short when the OBV makes a downside breakout. Positions should be held until the trend changes.

Calculation

If today’s close is greater than yesterday’s close then:

OBV(i) = OBV(i-1)+VOLUME(i)

If today’s close is less than yesterday’s close then:

OBV(i) = OBV(i-1)-VOLUME(i)

If today’s close is equal to yesterday’s close then:

OBV(i) = OBV(i-1)

Where:
OBV(i) — is the indicator value of the current period;
OBV(i-1) — is the indicator value of the previous period;
VOLUME(i) — is the volume of the current bar.

Technical Indicator Description

Full description of OBV is available in the Technical analysis: On Balance Volume

由MetaQuotes Ltd译自俄语
原代码: https://www.mql5.com/ru/code/7997

Volumes Volumes

The Indicator Volumes displays volumes as histogram in separate window and paints the histogram in t

Market Facilitation Index, BW MFI Market Facilitation Index, BW MFI

Market Facilitation Index Indicator (BW MFI) is the indicator which shows the change of price for on

Williams Percent Range, %R Williams Percent Range, %R

Williams’ Percent Range Indicator (%R) is a dynamic technical indicator, which determines whether th

Force Index, FRC Force Index, FRC

Force Index Indicator measures the Bulls Power at each increase, and the Bulls Power at each decreas