MoneyFlow (Function)
The MoneyFlow function is an index based on the ratio between positive money flows and all money flows over a specified number of bars.
Syntax
MoneyFlow(Length)
Returns (Double)
A numeric value containing MoneyFlow for the current bar.
Parameters
Name |
Type |
Description |
Length |
Numeric |
Sets the number of bars used in calculation. |
Remarks
AvgPrice is calculated by taking the average of the Open (if available), Close, High, and Low of a bar. Positive money flow occurs when the current bar's AvgPrice exceeds the previous bar’s AvgPrice, and is calculated by multiplying the current bar’s Volume and its AvgPrice. The positive money flows are then summed over the number of bars specified in Length and divided by the sum of all the money flows specified in Length.
The formula for money flow is:
MoneyFlow = 100 * Sum of Positive MF / Sum of All MF
Example
Plot1(MoneyFlow(10), 'M");