LazyBear

Indicators: Twiggs Money Flow [TMF] & Wilder's MA [WiMA]

TMF is a CMF ( Chaikin Money Flow ) variation that addresses some of the gaps in the original indicator. More info: http://www.incrediblecharts.com/indicato...

TMF uses true range, rather than daily Highs minus Lows. Also, uses Wilder's MA rather than SMA / EMA .

Since I had to write Wilder's MA (WiMA) for TMF , I have published that also as a separate indicator. WiMA is like EMA , but with a different "alpha" value.

How to include this in your charts?
-----------------------------------------------
- Click on "Share" button (top right on this chart). A dialog box opens up.
- Click on "Make it mine" button. This will create a copy of my published chart for you to edit.
- You can click on "{}" button next to the indicator name to get access to the source code.
- Save it to your CustomScripts library.

Gỡ bỏ khỏi Script Ưa thích Thêm vào Script Ưa thích
//
// @author LazyBear
// @credits http://www.incrediblecharts.com/indicators/twiggs_money_flow.php
// 
// If you use this code in its original/modified form, do drop me a note. 
//
study("Twiggs Money Flow [LazyBear]", shorttitle="TMF_LB")
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)
plot(tmf, style=area)

List of my free indicators: http://bit.ly/1LQaPK8
List of my indicators at Appstore: http://blog.tradingview.com/?p=970

Bình luận

Good work man. I had actually programmed the Twiggs Money Flow a Month or so ago for a developer that uses it we will be bringing on board. He uses the Twiggs Money Flow in all of his work.
+2 Phản hồi
LazyBear ChrisMoody
Thx :)
+2 Phản hồi
ChrisMoody ChrisMoody
Here is a version I coded...same results but I found a code that uses a "Threshold Line". I found it useful for filtering out the chop...and creating a rule for Bullish and Bearish Divergences.

http://pastebin.com/RgwQ31n0

+4 Phản hồi
SurfDude ChrisMoody
Hi Chris,
I just was directed to your code on Twiggs Money Flow by someone else when I requested it be programmed. I notice it's not an indicator but a script. How do I put it on a chart so I can use it as a script. I'm not a programmer and am not sure how to add it to my scripts that I save for use over again.
Thanks for your help.
Surfdude, Chris
Phản hồi
SurfDude SurfDude
I just kept looking and found how to do it on another post you did. Thx! One thing I was wondering was how you got the white line around the histogram. It doesn't seem to come up on mine.
Thanks
Surfdude
Phản hồi
SurfDude SurfDude
I figured it out again - change my background to black instead of white!
Thanks again for the indicator.

Chris
Phản hồi
ChrisMoody SurfDude
no problem...just posted a new video on the Videos page on the updated way to get custom indicators...it's the first video...

http://videos.tradingview.com
+1 Phản hồi
ChrisMoody SurfDude
Just posted updated version so all the features work.
Phản hồi
telepatico ChrisMoody
Chris on this line: wv=volume+(volume*0), why the multiplication be zero? Thanks.
+3 Phản hồi
grahvity ChrisMoody
Cool, Chris. Miss you around here.
Phản hồi
Trang chủ Bộ lọc cổ phiếu Bộ lọc Forex Bộ lọc Tiền điện tử Lịch kinh tế Cách thức hoạt động Tính năng Biểu đồ Trả phí Giới thiệu bạn Quy tắc Áp dụng Trung tâm Trợ giúp Giải pháp cho Website & Nhà môi giới Widget Giải pháp biểu đồ Thư viện Biểu đồ Lightweight Blog & Tin tức Twitter
Hồ sơ Tùy chỉnh Hồ sơ Tài khoản và Thanh toán Giới thiệu bạn Ticket Hỗ trợ của tôi Trung tâm Trợ giúp Các ý tưởng đã đăng Người theo dõi Đang theo dõi Tin nhắn riêng Trò chuyện Đăng xuất