Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

Metatrader 4 Indicators | Variation Index | Free Download

Fresh MQL5 code release – perfect for enhancing your MT4/MT5 strategies.

Nowadays, the most popular representatives of the fractal time functions are the financial time series. The fractal structure of these series is well-known and

aсcording to Mandelbrot there is a "rewording of the famous market saying that the movement of stocks and currencies is independent of the time scale and the

price. An observer can't tell if the information refers to the weekly, daily or hourly changes just by looking at the appearance of the chart» [1].

Protect profits effectively with the smart Trailing Stop Expert Advisor. Advanced trailing options for MT4/MT5. See it in action.

Usually, to determine the fractal dimension the Hurst's exponent is calculated [2]. However, for the reliable calculation of this exponent a huge amount of data

is necesary (~ 10^3) and that is too much comparing to the duration of the trends of trading.

The authors [1] interpose the fractal characteristics - the variation index (m) that is closely related to the common fractal dimension. In distinct from the

Hurst's exponent, the amount of information that is necessary for index determination is less by a factor of 2. It leads to use it as a local characteristics for

determination of the dynamics of the price series. If m < 0.5, it can be interpretated as a trend and m > 0.5 - as a flat.

The suggested indicator calculates the variation index on a previous interval which is 2^n long. The "n" parameter is specified by the user.

The common rules of the indicator application are the following:

  • If the value of the indicator is lower than 0.5 it means the trend state of the market.
  • The extremely low value is often precedes the end (correction) of the current trend.
  • If the value of the indicator is higher than 0.5 it means the flat state of the market.
  • The extremely high value is often precedes the beginning of the considerable trends.
  • If the value of the indicator is close to 0.5 it means an undefined state of the market.

Image for Variation Index

Literature:

1. M.M. Dubovikov and others. Dimension of the Minimal Cover and Local Analysis of Fractal Time Series, 2004.

2. Edgar E. Peters, Fractal Market Analysis. Applying Chaos Theory to Investment and Economics, John Wiley & Sons, 2003.

Complement community code with advanced automation from RobotFX.

8464

Best MetaTrader Indicators + Profitable Expert Advisors