花果山的猫 发表于 2013-7-22 12:24:43

相对活力指数指标源代码RVI


主题:
Relative Vigor Index, RVI

创建人:MetaQuotes (2005.12.22 14:36 )
已下载:698
下载:
http://www.mql4.com/i/ico/mq4.gif RVI.mq4 (3.1 Kb) View
http://www.mql4.com/i/ico/gif.gif rvi.gif (8.8 Kb)


    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.
    Calculation
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.

卡拉爱光 发表于 2014-10-29 14:17:46

看看,看看。谢谢。你要发,我也要发。

外汇指标 发表于 2014-10-29 14:30:03

下了的确不错

island 发表于 2014-11-3 03:33:52

看看怎么样

lj4721 发表于 2014-12-8 16:59:05

多谢分享 看看是什么

orange0224 发表于 2014-12-10 00:22:32

看看吧,谢谢分享

l-pope 发表于 2015-3-14 09:39:38

看看怎么样

362650330 发表于 2015-4-21 02:42:53

怎么下载啊

2640125869 发表于 2015-4-21 12:35:21

什么下载呀

2640125869 发表于 2015-4-21 12:36:40

什么下载呀?是EA吗?
页: [1] 2 3
查看完整版本: 相对活力指数指标源代码RVI