![]() |
Twiggs Money Flow |
Post Reply ![]() |
Author | |
john ![]() Newbie ![]() Joined: 18 Aug 2005 Posts: 7 |
![]() ![]() ![]() ![]() Posted: 11 Sep 2005 at 1:15pm |
Hi everyone, Anybody had success creating an indicator for Twiggs Money Flow? http://www.incrediblecharts.com/technical/twiggs_money_flow. htm I get some anomolies when I import the metastock code in the above link rgds, J
|
|
![]() |
|
pipsqueek ![]() Regular ![]() Joined: 03 Jan 2005 Location: Australia Posts: 34 |
![]() ![]() ![]() ![]() |
Hi John I think this works .... periods:=Input("TMF periods",21,1,100);TRH:=Max(hist(C,1),H); TRL:=Min(hist(C,1),L); TR :=TRH-TRL;ADV:=((C-TRL)-(TRH-C))/If(TR=0,999999,TR)*V; WV:=V+(hist(V,1)*0); TMF:=If (Wilders(WV,periods)=0,0,Wilders(ADV,periods)/Wilders(WV,per iods)); TMF; ma (TMF,11,e)Sorry about all the blank lines. I just copied and pasted from my Bullcharts Indicator. Pipsqueek. |
|
failing to plan is planning to fail.
|
|
![]() |
|
timpaul ![]() Newbie ![]() Joined: 09 Nov 2005 Location: Australia Posts: 3 |
![]() ![]() ![]() ![]() |
If you are looking for the reason this formula creates an error in the script header it is because of the space in the thrid last line and last use of periods (per iods).
Thanks for the code Pipsqueek |
|
![]() |
|
cudderbean ![]() Regular ![]() ![]() Joined: 02 Oct 2006 Location: Thailand Posts: 40 |
![]() ![]() ![]() ![]() |
Why does the TMF fall on a day when a stock like DJS on 29/6/12 rises so dramatically?
have I made a mistake in copying the coding? Thank you for your help. Thanks for your original coding too, Pipsqueak.
n := input("Time periods",21,1);
TRH:=Max(hist(C,1),H);
TRL:=Min(hist(C,1),L);
TR:=TRH-TRL;
ADV:=((C-TRL)-(TRH-C))/If(TR=0,999999,TR)*V;
WV:=V+(hist(V,1)*0);
TMF:=If(Wilders(WV,n)=0,0,Wilders(ADV,n)/Wilders(WV,n));
TMF;
|
|
![]() |
|
peter1 ![]() Regular ![]() Joined: 27 Aug 2008 Location: Sydney Posts: 56 |
![]() ![]() ![]() ![]() |
My TMF formula is similar to yours and it moves sharply higher on the 29/05/12 after the crazy bid for DJS was made public.
|
|
![]() |
Post Reply ![]() |
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |