Dazi MTF MovingAverage

Dazi MTF MovingAverage

Moving Average Indicator with the ability to work on higher timeframes (MTF).

This indicator is designed to operate on smaller timeframes (timeframe chart, on which the indicator), while it calculates the values ​​with higher timeframes (working timeframe).

It has 3 advantages:

  • Buffer shift corresponds to the operating timeframe (MTF) (When used in conjunction with an expert)
  • Visualization backtesting
  • It works on any time frame (E.g., H12 or D2)

Options

In addition to the standard parameters of the indicator has two additional parameters:

  • Timeframe, which will operate an indicator (MTF) (optional parameter)
    Selected from these timeframes. It can not be less than the timeframe chart, running indicator. But if the timeframe schedule yet more force becomes smaller timeframe chart.
  • timeframe coefficient (additional parameter)
    Value which is multiplied timeframe. Mandatory minimum value – “1”.
  • maPeriod – period MA (standard parameter)
  • maShift – shift MA (standard parameter)
  • maMethod – Method MA (standard parameter)
  • appliedPrice – applied price (standard option)

shift buffer

Indicator called with iCustom (NULL, 0, “di_MTF-MovingAverage”, …., a buffer, shift).

It corresponds to the provided buffer and the desired buffer. The indicator has only one buffer (moving average), so that the buffer has a value “0”.

The shift corresponds to the bar, but the bar working timeframe.

For example: active graph is on M1, while the indicator is at M15. Then, the shift value of 0 returns the current working timeframe (M15), shift 1 returns the previous value of M15 (the value on the last bar in the closed M15), the shift value 2 corresponds to the second closed bar on M15 etc.

Visualization backtesting

The indicator works well for visual schedules strategy tester. Thus, it is possible visualization of indicator values ​​and expert verification strategies during backtesting.

any timeframe

Timeframe may be selected only from the said timeframes. But it is multiplied by a coefficient, which allows operation on any timeframe.

If the schedule is the timeframe M1, and the indicator should work on M10, the required parameters will be “timeframe = M1, factor = 10” or “timeframe = M5, factor = 2”.

This can be especially useful for higher timeframes, such as H12, D2 or D3.

EXAMPLE use with iCustom

Suppose that timeframe chart – M5, and the indicator has to calculate simple moving average without shifting to the closing price for the period of 10 bars in the timeframe H2. And the expert is necessary to value the moving average of the last closed bar timeframe H2. In this case, the function call may be as follows: ma = iCustom (NULL, 0, “di_MTF-MovingAverage”, PERIOD_H1, 2, 10, 0, MODE_SMA, PRICE_CLOSE, 0, 1)

Dazi MTF MovingAverage

Related posts

  • Dazi MTF MA Channel

    Dazi MTF MA Channel Detection of a trend with the channel of the two moving averages with larger timeframes (multitaymfreym). The indicator is designed…

  • MACD Line Smart

    MACD Line Smart Description Color multi / multiinstrumentalny indicator MACD Line Smart (Convergence-divergence indicator moving averages is displayed as…

  • MCAD

    MCAD MCAD – an abbreviation of M ulti C urrency A ccumulation / D istribution (multi-currency accumulation-distribution), which should not be confused…

Next posts

Leave a Reply

Your email address will not be published. Required fields are marked *