PureBytes Links
Trading Reference Links
|
Could someone kindly help transform the following ela code for Chaikin's
Money Flow into his "Persistency of Money Flow."
As I understand it, the Persistency of Money Flow is the percentage of times
the moneyflow stays above zero for a given number of days --- ie 65 days.
Thanks for any help.
Barry
===================================================================
Inputs: length(21), UpVolColor(green), DownVolColor(Red),
low10color(white), uptencolor(white), topcolor(blue);
Variable: AccDist(0), MF(0), totalsum(0);
If high - low <> 0 and volume <> 0 then
AccDist = ((close-low) - (high - close)) / (high - low) * volume;
Totalsum = summation(volume, length);
If Totalsum <>0 then
MF = summation(AccDist, Length) / totalsum ;
If MF > 0 Then
Plot1 (Mf, "money Flow");
Plot2 (0, "0 line");
|