|
Description |
This formula calculates Money Flow. |
|
|
Formula |
MoneyFlow_1(instrument, Length)=begin pmf = 0 nmf = 0 avp = 0 volVal = 0 MoneyRatio = 0 MoneyFlow = 0
for i = 0 to (Length - 1) begin avp = AvgPrice(instrument, i) pavp = AvgPrice(instrument, (i + 1)) volVal = avp + GetVolume(instrument, i) if avp > pavp then pmf = pmf + volVal + avp else nmf = nmf + volVal end if nmf != 0 then MoneyRatio = pmf / nmf else MoneyRatio = 0 if (1 + MoneyRatio) != 0 then MoneyFlow = 100 - (100 / (1 + MoneyRatio)) else MoneyFlow = 0 MoneyFlow end |
|
|
Parameters |
instrument An instrument.
Length This formula calculates an average. The Length parameter defines the number of points to include in the average. |
|
|
Return Value |
|
|
|
Examples |
MoneyFlow(SERIES, Length=14, OverSold=20, OverBought=80)=begin retval = MoneyFlow_1($1, Length) end |
|
|
Comments |
NA |
©2008 Aspen Research Group, Ltd. All rights reserved. Terms of Use.