Ease of Movement

Technical Analysis Indicator: emv

Fork me on GitHub

Function Prototype

/* Ease of Movement */
/* Type: indicator */
/* Input arrays: 3    Options: 0    Output arrays: 1 */
/* Inputs: high, low, volume */
/* Options: none */
/* Outputs: emv */
int ti_emv_start(TI_REAL const *options);
int ti_emv(int size,
      TI_REAL const *const *inputs,
      TI_REAL const *options,
      TI_REAL *const *outputs);

Description

This documentation is still a work in progress. It has omissions, and it probably has errors too. If you see any issues, or have any general feedback, please get in touch.

The Ease of Movement compares volume and price change.

It is calculated for each bar as follows:

$$hl_{t} = \frac{high_{t} + low_{t}}{2}$$
$$br_{t} = \frac{volume_{t} \cdot 0.0001}{high_{t} - low_{t}}$$
$$emv_{t} = \frac{hl_{t} - hl_{t-1}}{br_{t}}$$

See Also

References

Example Usage

Calling From C

/* Example usage of Ease of Movement */
/* Assuming that 'high', 'low', and 'volume' are pre-loaded arrays of size 'in_size'. */
TI_REAL *inputs[] = {high, low, volume};
TI_REAL options[] = {}; /* No options */
TI_REAL *outputs[1]; /* emv */

/* Determine how large the output size is for our options. */
const int out_size = in_size - ti_emv_start(options);

/* Allocate memory for output. */
outputs[0] = malloc(sizeof(TI_REAL) * out_size); assert(outputs[0] != 0); /* emv */

/* Run the actual calculation. */
const int ret = ti_emv(in_size, inputs, options, outputs);
assert(ret == TI_OKAY);

Calling From Lua (with Tulip Chart bindings)

-- Example usage of Ease of Movement
emv = ti.emv(high, low, volume)

Example Calculation

datehighlowvolumeemv
2005-11-0182.1581.295,653,100.00
2005-11-0281.8980.646,447,400.000.00
2005-11-0383.0381.317,690,900.000.00
2005-11-0483.3082.653,831,400.000.00
2005-11-0783.8583.074,455,100.000.00
2005-11-0883.9083.113,798,000.000.00
2005-11-0983.3382.493,936,200.000.00
2005-11-1084.3082.304,732,000.000.00
2005-11-1184.8484.154,841,300.000.00
2005-11-1485.0084.113,915,300.000.00
2005-11-1585.9084.036,830,800.000.00
2005-11-1686.5885.396,694,100.000.00
2005-11-1786.9885.765,293,600.000.00
2005-11-1888.0087.177,985,800.000.00
2005-11-2187.8787.014,807,900.000.00

Chart

 

Other Indicators

Previous indicator: Exponential Moving Average

Next indicator: Vector Exponential

Random indicator: Forecast Oscillator