Skip to content

charton API


charton API / @chart-on/ta / mfi

Function: mfi() ​

mfi(high, low, close, volume, length, out?): Float64Array

Defined in: volume.ts:176

Money flow index, 0 to 100: rsi's formula applied to money flow. Each bar's typical price (high + low + close) / 3 times its volume counts as positive flow when the typical price rose from the bar before and negative when it fell, summed over the last length bars. Lookback length. 100 with no negative flow, 50 with no flow either way. NaN when the window or the bar before it holds a NaN.

Parameters ​

high ​

Series

low ​

Series

close ​

Series

volume ​

Series

length ​

number

out? ​

Float64Array<ArrayBufferLike>

Returns ​

Float64Array