Tick Money Flow (TMF)
(This indicator only works during market hour)
<img src=http://www.elitetrader.com/vb/attachment.php?s=&postid=1678147 width=800>
click on image to enlarge
421
more chart examples:
http://www.elitetrader.com/vb/attachment.php?s=&postid=1679800
http://www.elitetrader.com/vb/attachment.php?s=&postid=1678133
click here to download the code (ELD format):
http://www.elitetrader.com/vb/attachment.php?s=&postid=1678180
147
(This indicator only works during market hour)
<img src=http://www.elitetrader.com/vb/attachment.php?s=&postid=1678147 width=800>
click on image to enlarge
421
more chart examples:
http://www.elitetrader.com/vb/attachment.php?s=&postid=1679800
http://www.elitetrader.com/vb/attachment.php?s=&postid=1678133
click here to download the code (ELD format):
http://www.elitetrader.com/vb/attachment.php?s=&postid=1678180
147
Code:
[color=blue]
Inputs:
Length1(500),
Length2(100),
upcolorPlus(blue),
dncolorPlus(red),
upcolorMinus(yellow),
dncolorMinus(darkbrown),
colorbar(1);
Vars:
IntrabarPersist TickFlag(0),
IntrabarPersist OldPrice(0),
IntrabarPersist TMF(0),
IntrabarPersist NewTickVol(0),
IntrabarPersist MyBarVolume(0);
if BarNumber >= 1 then
begin
NewTickVol = Ticks - MyBarVolume;
MyBarVolume = MyBarVolume + NewTickVol;
if (C>=CurrentAsk) then
begin
TMF=TMF + (C * NewTickVol);
TickFlag = 1;
end;
if (C<=CurrentBid) then
begin
TMF=TMF - (C * NewTickVol);
TickFlag = 2;
end;
if (C<CurrentAsk and C>CurrentBid) and C>OldPrice
then TMF=TMF + (C*NewTickVol);
if (C<CurrentAsk and C>CurrentBid) and C<OldPrice
then TMF=TMF - (C*NewTickVol);
if (C<CurrentAsk and C>CurrentBid) and C=OldPrice and TickFlag = 1
then TMF=TMF + (C*NewTickVol);
if (C<CurrentAsk and C>CurrentBid) and C=OldPrice and TickFlag = 2
then TMF=TMF - (C*NewTickVol);
OldPrice = C;
if BarStatus(1) = 2 then MyBarVolume = 0;
end;
Plot1(TMF, "TMF");
Plot2(0, "Zero");
if (TMF > TMF[1]) then
begin
if (TMF >=0) then
SetPlotColor[colorbar](1, upcolorPlus)
else
SetPlotColor[colorbar](1, upcolorMinus);
end
else if (TMF < TMF[1]) then
begin
if (TMF >=0) then
SetPlotColor[colorbar](1, dncolorPlus)
else
SetPlotColor[colorbar](1, dncolorMinus);
end;
Plot2(LinearRegValue(Plot1,Length1,0));
Plot3(LinearRegValue(Plot1,Length2,0));
[/color]