DreamsDefined

Money Flow Index + Alerts

DreamsDefined 已更新   
This study is based on the work of TV user Beasley Savage () and all credit goes to them.

Changes I've made:

1. Added a visual symbol of an overbought/oversold threshold cross in the form of a red/green circle, respectively. Sometimes it can be hard to see when a cross actually occurs, and if your scaling isn't set up properly you can get misleading visuals. This way removes all doubt. Bear in mind they aren't meant as trading signals, so DO NOT use them as such. Research the MFI if you're unsure, but I use them as an early warning and that particular market/stock is added to my watchlist.

2. Added 60/40 lines as the MFI respects these incredibly well in trends. E.g. in a solid uptrend the MFI won't go below 40, and vice versa. Use the idea of support and resistance levels on the indicator and it'll be a great help. I've coloured the zones. Strong uptrends should stay above 60, strong downtrends should stay below 40. The zone in between 40-60 I've called the transition zone. MFI often stays here in consolidation periods, and in the last leg of a cycle/trend the MFI will often drop into this zone after being above 60 or below 40. This is a great sign that you should get out and start looking to reverse your position. Hopefully it helps to spot divergences as well.

3. Added alerts based on an overbought/oversold cross. Also added an alert for when either condition is triggered, so hopefully that's useful for those struggling with low alert limits. Feel free to change the overbought/oversold levels, the alerts + crossover visual are set to adapt.

Like any indicator, don't use this one alone. It works best paired with indicators/techniques that contradict it. You'll often see a OB/OS cross, and price will continue on it's way for many weeks more. But MFI is a great tool for identifying upcoming trend changes.

Any queries please comment or PM me.

Cheers,
RJR
版本注释:
V 1.1

Cleaned up the coding slightly.

Added support for multiple time frames (MTF). Script defaults to the current time frame, so if you want a different time frame uncheck the relevant box and enter your custom variable. It's been done this way to get around the fact that TradingView's default resolution input variable only supports a limited numbers of resolutions. If you want to use monthly time frames then use "XM", where X is the number of months. For daily time frames use "XD", where X is the number of days. For hourly/minute time frames use the total number of minutes - e.g. 4 hours should be entered as "240".

Always bear in mind that higher time frames will repaint until the relevant bar closes. This is logical if you think about it, so don't comment saying it repaints :)

Here's some cool things you can do with MTF (I like overlaying them on one panel):

版本注释:
V 1.1.1

Minor error fix.
开源脚本

本着真正的TradingView精神,该脚本的作者将其开源发布,以便交易者可以理解和验证它。为作者喝彩!您可以免费使用它,但在出版物中重复使用此代码受网站规则的约束。 您可以收藏它以在图表上使用。

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?