- Katılım
- 23 Eki 2020
- Mesajlar
- 1,828
rev. 01/06/97 Taken from Stocks & Commodities, V. 12:8 (321-324):SIDEBAR: The Money Flow Index "The money flow index (MFI) is a volume-weighted form of the relative strength index (RSI). Instead of using up closes versus down closes, the MFI compares today's average price to yesterday's average price and then weighsthe average price by volume to calculate money flow (MF). The ratio of the summed positive and negative money flows are then normalized to be on a scale of zero to 100." Here are the MetaStock formulas for the Money Flow Index: Positive Money Flow Sum(If(Typ(),>,Ref(Typ(),-1),V * Typ(),0),PERIODS) Negative Money Flow Sum(If(Typ(),<,Ref(Typ(),-1),V*Typ()*-1,0),PERIODS) Money Flow Ratio fml ( "Positive Money Flow" ) / fml ( "Negative Money Flow" ) Money Flow Index 100 - ( 100 / ( 1 + fml ( "Money Flow Ratio" ) ) ) ***The time periods are controlled by PERIODS in the Positive and Negative Money Flow formulas. |
|
Money Flow Index 3 in 1 Periods:=Input( "Periods", 2, 222, 14); 100 - (100 / (1 + ( (Sum(If(Typ(),>,Ref(Typ(),-1),V * Typ(),0),Periods)) / (Sum(If(Typ(),<,Ref(Typ(),-1),V * Typ()*-1,0),Periods)) ) ) ) |
Source / From: |