Editor's Picks
OPEN-SOURCE SCRIPT

Dynamic Money Flow

Aktualisiert
Dynamic Money Flow is a volume indicator based on Marc Chaikin's Money Flow with a few improvements.
It can be used to confirm break-outs and trends.
Zero line crosses and divergences can provide useful signals while considering chart analysis as well.


Two weaknesses of CMF have been already fixed by Colin Twiggs (IncredibleCharts)...
1.CMF uses Chaikin's accumulation/distribution line to calculate the flow of money.
Accumulation/distribution line does not take the gaps into account. This can be solved using true range.
I call it true accumulation/distribution.


2.Oscillators have a tendency to center because of averaging calculations.
DMF is average of flowing volume divided by average of total volume. This means indicator plots the change of first factor compared to the other one. In Simple Averaging method every data is given an equal weight thus when the last data drops it will have heavy impact on the averages and the change of them.
It is much easier to identity these impacts after the drop of very high or very low data... So reducing the weight exponentially is a better option.

Snapshot


3.There is something else with CMF... changes of close price is ignored, because the formula only compares close price to its range.
To include the movements of close beside the close to range comparison, the distance between two last close prices should be compared to true range as well.
So volume can be distributed between close to range comparison (True Accumulation/Distribution) and close to close comparison automatically. And then results are summed to have a single multiplier.

An example for how close to close comparison affects DMF...
Snapshot

Or here you can see how lower wicks keep TMF (same as CMF in this case) from crossing zero line while price is trending down.
Snapshot
Versionshinweise
1. Added an optional moving average: The main purpose is to receive a smoother form of oscillator while also having the original line.
It can reduce excessive false center crosses on volatile market situations, and it will help traders to develop new strategies.
User can choose between simple and exponential moving averages.

2. Volume simulation: If this option is enabled, indicator will use formation of candles to simulate an alternative volume. It is very helpful when volume is not provided for a security or the volume is not proper (for example it can be very low which can prevent indicator from adopting to price movements). Otherwise it is suggested to disable this option.
Versionshinweise
Default Period input changed to 26.
Simple moving average type replaced with WMA.
Added another moving average.
Moving averages can be turned off by setting their length to zero:0.
Some visual changes.
Versionshinweise
New indicator mode - Cumulative: I just kept up with my old fashion of making scripts a bit complicated instead of going for a new one. However, thanks to TradingView I could put the other new stuff into a different section.
This mode represents the cumulative form of DMF.
Note that Line changes color on slow MA cross on this mode. I will try to work more on theming next time.
Experimental options: this section includes options that are better to be left unchanged unless there is no better choice or unless the changes are tested.
Versionshinweise
- Added bar color
- Two new moving averages
The Tilson Moving Average (T3)
John Ehler's Fractal Adaptive Moving Average (FRAMA)
marcchaikinmoneyflowindexOscillatorsTrend AnalysisVolume

Open-source Skript

Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun das Script auch andere Trader verstehen und prüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden. Die Nutzung dieses Codes in einer Veröffentlichung wird in unseren Hausregeln reguliert. Sie können es als Favoriten auswählen, um es in einem Chart zu verwenden.

Möchten Sie dieses Skript auf einem Chart verwenden?

Haftungsausschluss