OPEN-SOURCE SCRIPT
已更新 Accumulation/Distribution Money Flow [Cyrus c|:D]

This indicator should be more accurate than other indicators in its class (including MFI, CMF, ADL, and OBV) for measuring buy/sell pressure, identifying trend change through divergence and calculating Accumulation/Distribution (A/D) level (I will explain why in a separate TA).
This indicator is based on my previous indicator "Accumulation/Distribution Volume". It does not include the volume bars. The volume effect is adjustable as well.
Application:
- Buy/sell pressure: above 0 shows buy pressure, below 0 shows sell pressure.
- Divergence: as shown in the chart above, this indicator diverged from BTC price during swing lows and highs in the shown period.
- Accumulation/distribution: set Aggregation=Sum, Volume Exponent=10 and uncheck Price Factor.
Recommendations:
- Never use SMA
- Use larger length EMA for confirmation of divergence or buy/sell pressure (EMA 27 is equal to RMA 14 which is used in RSI).
. A/D mode is not recommended for hidden divergence.
My Setup:
- I use one instances of this indicator with default settings for buy/sell pressure
- A second instance for A/D level overlaid on the main chart
- One instance of "Accumulation/Distribution Volume" as a replacement for volume indicator

This indicator can also replicate Accumulation/Distribution Line (improved by True Range), On Balance Volume, and Price Volume Trend. Read more details on the description of the previous indicator:

I strongly recommend reading about similar indicators for potential uses e.g. tradingview.com/wiki/Money_Flow_(MFI) and tradingview.com/wiki/Price_Volume_Trend_(PVT)
I will publish a TA about correctly measuring divergence and using these indicators.
Please report any problems you find in the comments.
This indicator is based on my previous indicator "Accumulation/Distribution Volume". It does not include the volume bars. The volume effect is adjustable as well.
Application:
- Buy/sell pressure: above 0 shows buy pressure, below 0 shows sell pressure.
- Divergence: as shown in the chart above, this indicator diverged from BTC price during swing lows and highs in the shown period.
- Accumulation/distribution: set Aggregation=Sum, Volume Exponent=10 and uncheck Price Factor.
Recommendations:
- Never use SMA
- Use larger length EMA for confirmation of divergence or buy/sell pressure (EMA 27 is equal to RMA 14 which is used in RSI).
. A/D mode is not recommended for hidden divergence.
My Setup:
- I use one instances of this indicator with default settings for buy/sell pressure
- A second instance for A/D level overlaid on the main chart
- One instance of "Accumulation/Distribution Volume" as a replacement for volume indicator
This indicator can also replicate Accumulation/Distribution Line (improved by True Range), On Balance Volume, and Price Volume Trend. Read more details on the description of the previous indicator:

I strongly recommend reading about similar indicators for potential uses e.g. tradingview.com/wiki/Money_Flow_(MFI) and tradingview.com/wiki/Price_Volume_Trend_(PVT)
I will publish a TA about correctly measuring divergence and using these indicators.
Please report any problems you find in the comments.
版本注释
Volume exponent is replaced by a binary enable/disable option. The reason was that for some instruments that have volume below 1 unit, it has a heightening effect which could lead to confusion. I personally am using the older version with adjustable volume exponent. Previous version is available at pastebin.com/JPWvDKCUPS: Here is a more clarification about my suggestion re not using SMA
![Accumulation/Distribution Money Flow [Cyrus c|:D]](https://s3.tradingview.com/x/xNwMiYef_mid.png)
版本注释
- Simplified the indicator by removing replication of other indicators. Use ADV indicator if you want all the geeky features- Using Smoothed MA (same as the MA used in RSI)
For range-bound version of this indicator, check out my ADP indicator here which also includes this indicator:
![Accumulation/Distribution Percentage (ADP) [Cyrus c|:D]](https://s3.tradingview.com/h/hM0zajVr_mid.png)
Previous version is available in Pine script version system and here pastebin.com/raw/LFBkyfZb
版本注释
- Code optimization- Minor change in the way price is factored
版本注释
版本注释
- minor change in input settings- minor change in the way price is factored in
版本注释
here is a TL;DR list of my indicatorsUltimate Money Flow add a lot of features to ADMF. ADMF will not be updated anymore.
![Ultimate Money Flow (UMF), Stoch, Multi Time Frame (MTF) [cI8DH]](https://s3.tradingview.com/q/qwxRjZWn_mid.png)
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。