Page 1 of 1

Twiggs Money Flow

PostPosted: Sun Feb 11, 2018 6:13 am
by isamegrelo
Code:


study("Twiggs Money Flow [LazyBear]", shorttitle="TMF_LB_ss")
length = input( 21, "Period")
WiMA(src, length) =>
MA_s=(src + nz(MA_s[1] * (length-1)))/length
MA_s

hline(0)
tr_h=max(close[1],high)
tr_l=min(close[1],low)
tr_c=tr_h-tr_l
adv=volume*((close-tr_l)-(tr_h-close))/ iff(tr_c==0,9999999,tr_c)
wv=volume+(volume[1]*0)
wmV= WiMA(wv,length)
wmA= WiMA(adv,length)
tmf= iff(wmV==0,0,wmA/wmV)
tmff= iff(tmf>0.2499,tmf,0)
tmfm= iff(tmf<-0.2499,tmf,0)
plot(tmf, color=aqua, style=area)
plot(tmff,color=green, style=area)
plot(tmfm,color=red, style=area)

Re: Twiggs Money Flow

PostPosted: Sun Feb 11, 2018 11:35 am
by Apprentice
While I do not provide a new version, try this one.
viewtopic.php?f=17&t=4782&p=113221&hilit=Twiggs+Money+Flow#p113221

Re: Twiggs Money Flow

PostPosted: Mon Feb 12, 2018 12:13 pm
by Apprentice
Try Modified Twiggs Money Flow.lua.
viewtopic.php?f=17&t=4782&p=11860#p11860