This is a modification of the commonly used money flow index. The major change is to the way the average price is calculated. Typically this is done with a hlc3 method, meaning the average of the period high, low, and closing prices. This calculation infers that volume is evenly distributed between those three points. Generally this is not the case. My version calculates the average price by including the open price and making the assumption that the majority of the volume occurs within the body of the candle, between the open and close. I calculate a weighted average that places more significance on the close and open, then an equal weighting on the high and low.
In general this will result in a trend that does not differ greatly from the regular MFI calculation however there may be subtle changes.
진정한 TradingView 정신에 따라, 이 스크립트의 저자는 트레이더들이 이해하고 검증할 수 있도록 오픈 소스로 공개했습니다. 저자에게 박수를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰에 의해 관리됩니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.