MQL4 - automated forex trading   /  

Code Base

Code Base  Индикаторы  ROC2 VG Авторизуйтесь или зарегистрируйтесь, чтобы добавить новый код


Скачай MetaTrader 5 и посети MQL5.community Code Base
и торгуй мобильно!
Библиотека программ на новом MQL5
Готовься к Чемпионату -
Не нашёл подходящий код? Закажи его в разделе Работа

Этот скрипт для
MetaTrader 4

и торгуй мобильно!

Имя:
ROC2 VG [ cn ]
Автор: VladislavVG (28.03.2006 15:53)
Рейтинг: 0
Скачано: 2663
Скачать:
 ROC2_VG.mq4 (4.1 Kb) View

Построение индикаторов ROC двух произвольных типов ( и Momentum в том числе) и периодов в одном окне.

ROC2 VG


The following is the table of Rate-Of-Change implemented in TA-LIB:


MOM = (price - prevPrice) [Momentum]


ROC = ((price/prevPrice)-1)*100 [Rate of change]


ROCP = (price-prevPrice)/prevPrice [Rate of change Percentage]


ROCR = (price/prevPrice) [Rate of change ratio]


ROCR100 = (price/prevPrice)*100 [Rate of change ratio 100 Scale]



Here are the equivalent function in other software:


TA-Lib | Tradestation | Metastock



MOM | Momentum | ROC (Point)


ROC | ROC | ROC (Percent)


ROCP | PercentChange | -


ROCR | - | -


ROCR100 | - | MO



The MOM function is the only one who is not normalized, and thus


should be avoided for comparing different time serie of prices.



ROC and ROCP are centered at zero and can have positive and negative


value. Here are some equivalence:


ROC = ROCP/100


= ((price-prevPrice)/prevPrice)/100


= ((price/prevPrice)-1)*100



ROCR and ROCR100 are ratio respectively centered at 1 and 100 and are
always positive values.

1 комментарий  Авторизуйтесь или зарегистрируйтесь, чтобы добавить новый комментарий
Как этим индюком пользоваться?
27.03.2012 01:09 tyrbo924