Relative Vigor Index, RVI - MetaTrader 4脚本
- 显示:
- 5335
- 等级:
- 已发布:
- 2005.12.22 13:36
- 已更新:
- 2016.11.22 07:33
- 需要基于此代码的EA交易或指标吗?请在自由职业者服务中订购 进入自由职业者服务
The main point of Relative Vigor Index Indicator (RVI) is that on the bull market the closing price is, as a rule, higher, than the opening price. It is the other way round on the bear market. So the idea behind Relative Vigor Index is that the vigor, or energy, of the move is thus established by where the prices end up at the close. To normalize the index to the daily trading range, divide the change of price by the maximum range of prices for the day. To make a more smooth calculation, one uses a symmetrically weighted moving average of the differences of the closing and openings prices, as well as maximum and minimum prices of the bar.
The best period at calculation of the indicator is considered 10. To avoid probable ambiguity one needs to construct a signal line, which is a symmetrically weighted moving averageof Relative Vigor Index values. The concurrence of lines serves as a signal to buy or to sell.
VALUE1 = ((CLOSE - OPEN) + 2 * (CLOSE (1)) – OPEN (1)) + 2*(CLOSE (2) – OPEN (2)) + (CLOSE (3) – OPEN (3))) / 6
VALUE2 = ((HIGH - LOW) + 2 * (HIGH (1) – LOW (1)) + 2*(HIGH (2)- LOW (2)) + (HIGH (3) – LOW (3))) / 6
NUM = SUM (VALUE1, N)
DENUM = SUM (VALUE2, N)
RVI = NUM / DENUM
RVISig = (RVI + 2 * RVI (1) + 2 * RVI (2) + RVI (3)) / 6
where:
OPEN — is the opening price;
HIGH — is the maximum price;
LOW — is the minimum price;
CLOSE — is the closing price;
VALUE1 — symmetrically weighted moving average of the differences of the closing and openings prices;
VALUE2 — symmetrically weighted moving average of the differences of the maximum and minimum prices;
NUM — amount N importances of VALUE1;
DENUM —amount N importances of VALUE2;
RVI — value of the Relative Vigor Index indicator for the current bar;
RVISig — value of the RVI signal line for the current bar;
N — period of the smoothing.
Technical Indicator Description
Full description of Relative Vigor Index is available in the Technical analysis: Relative Vigor Index
由MetaQuotes Ltd译自俄语
原代码: https://www.mql5.com/ru/code/8035
Money Flow Index (MFI) is the indicator, which indicates the rate at which money is invested into a
Standard Deviation, StdDevThe Standard Deviation Indicator (StdDEv) measures the market volatility. This indicator describes
The DailyPivot Points indicator helps to get the idea of the future market movements, unlike other t
Sell-Buy Alert本指标在MACD或者RVI指标改变时显示买/卖箭头.