Join our fan page
- Views:
- 4247
- Rating:
- Published:
- 2017.08.10 10:58
- Updated:
- 2023.03.29 13:48
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
Real author: Vladislav Goshkov (VG)
Plotting ROC indicators of two arbitrary same types (including Momentum) and periods in a single window.
Resulting indicators are processed by an averaging algorithm in order to filter out the random noise.
Indicator calculation equations:
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].
Additional averaging is used to filter out random noise and to have a more smooth final indicator. The indicator uses the CJJMA class from the SmoothAlgorithms.mqh library. The class is described in detail in the article Averaging Price Series for Intermediate Calculations Without Using Additional Buffers.
This indicator was first implemented in MQL4 and published in the Code Base on 28.03.2006.
Fig. 1. The XROC2_VG indicator
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/18456

The trading system is based on volatility compression

The DeltaForce indicator with the timeframe selection option available in the indicator input parameters.

A moving average with the five-fold EMA averaging, with a real period and the possibility to shift the indicator horizontally or vertically.

A moving average with the fourfold EMA averaging, with a real period and the possibility to shift the indicator horizontally or vertically.