Market Facilitation Index

Technical Analysis Indicator: marketfi

Fork me on GitHub

Function Prototype

/* Market Facilitation Index */
/* Type: indicator */
/* Input arrays: 3    Options: 0    Output arrays: 1 */
/* Inputs: high, low, volume */
/* Options: none */
/* Outputs: marketfi */
int ti_marketfi_start(TI_REAL const *options);
int ti_marketfi(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 Market Facilitation Index compares volume and price change.

It is calculated for each bar as follows:

$$marketfi_{t} = \frac{high_{t} - low_{t}}{volume_{t}}$$

Do not confuse Market Facilitation Index with Money Flow Index.

See Also

References

Example Usage

Calling From C

/* Example usage of Market Facilitation Index */
/* 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]; /* marketfi */

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

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

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

Calling From Lua (with Tulip Chart bindings)

-- Example usage of Market Facilitation Index
marketfi = ti.marketfi(high, low, volume)

Example Calculation

datehighlowvolumemarketfi
2005-11-0182.1581.295,653,100.000.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: Moving Average Convergence/Divergence

Next indicator: Mass Index

Random indicator: Double Exponential Moving Average