OPEN-SOURCE SCRIPT
已更新 VWAP Multi-Timeframe

This is a multi-timeframe VWAP indicator that provides volume weighted average price calculations for the following time periods:
You can use the lower timeframes for short term trend control areas and use the longer timeframes for long term trend control areas. Trade in the direction of the trend and watch for price reactions that you can trade when price gets close to or touches any of these levels.
This indicator will provide a data plot value of 1 for bullish when price is above all VWAPs that are turned on, -1 for bearish when price is below all VWAPs that are turned on and 0 for neutral when price is not above or below all VWAPs. Use this 1, -1, 0 value as a filter on your signal generating indicators so that you can prevent signals from coming in unless they are in the same direction as the VWAP trend.
Features
Customization
How To Use The Trend Direction Filtering Feature
The indicator will provide a data plot value of 1 for bullish when price is above all of the VWAPs that are turned on, a value of -1 for bearish when price is below all of the VWAPS that are turned on and a value of 0 for neutral when price is above and below some of the VWAPs that are turned on.
The name of the value to use with your external indicators will show up as: VWAP Multi-Timeframe: Trend Direction To Send To External Indicators
Make sure to use that as your source on your external indicators to get the correct values.
This 1, -1 or 0 value can then be used by another external indicator to tell the indicator what is allowed to do. For instance if you have another indicator that provides buy and sell signals, you can use this trend direction value to prevent your other indicator from giving a sell signal when the VWAP trend is bullish or prevent your other indicator from giving a buy signal when the VWAP trend is bearish.
You will need to program your other indicators to use this trend filtering feature, but this indicator is already set up with this filtering code so you can use it with any other indicator that you choose to filter(if you know how to customize pine script).
Markets You Can Use This Indicator On
This indicator uses volume and price to calculate values, so it will work on any chart that provides volume and price data.
- 15min
- 30min
- 1H
- 2H
- 4H
- 6H
- 8H
- 12H
- 1D
- 1W
- 1M
- 3M
- 6M
- 1Y
You can use the lower timeframes for short term trend control areas and use the longer timeframes for long term trend control areas. Trade in the direction of the trend and watch for price reactions that you can trade when price gets close to or touches any of these levels.
This indicator will provide a data plot value of 1 for bullish when price is above all VWAPs that are turned on, -1 for bearish when price is below all VWAPs that are turned on and 0 for neutral when price is not above or below all VWAPs. Use this 1, -1, 0 value as a filter on your signal generating indicators so that you can prevent signals from coming in unless they are in the same direction as the VWAP trend.
Features
- Trend direction value of 1, -1 or 0 to send to external indicators so you can filter your signal generating indicators using the VWAP trend.
- Trend table that shows you whether price is above or below all of the major VWAPs. This includes the daily, weekly, monthly and yearly VWAPs.
- Trend coloring between each VWAP and the close price of each candle so you can easily identify the trend direction.
Customization
- Set the source value to use for all of the VWAP calculations. The default is HLC3.
- Turn on or off each VWAP.
- Change the color of each VWAP line.
- Change the thickness of each VWAP line.
- Turn on or off labels for each VWAP or turn all labels on or off at once.
- Change the offset length from the current bar to the label text.
- Change the label text color.
- Turn on or off trend coloring for each VWAP.
- Change the color for up trends and down trends.
- Turn on or off the trend direction display table.
- Change the location of the trend direction display table.
- Adjust the background and text colors on the trend direction display table.
How To Use The Trend Direction Filtering Feature
The indicator will provide a data plot value of 1 for bullish when price is above all of the VWAPs that are turned on, a value of -1 for bearish when price is below all of the VWAPS that are turned on and a value of 0 for neutral when price is above and below some of the VWAPs that are turned on.
The name of the value to use with your external indicators will show up as: VWAP Multi-Timeframe: Trend Direction To Send To External Indicators
Make sure to use that as your source on your external indicators to get the correct values.
This 1, -1 or 0 value can then be used by another external indicator to tell the indicator what is allowed to do. For instance if you have another indicator that provides buy and sell signals, you can use this trend direction value to prevent your other indicator from giving a sell signal when the VWAP trend is bullish or prevent your other indicator from giving a buy signal when the VWAP trend is bearish.
You will need to program your other indicators to use this trend filtering feature, but this indicator is already set up with this filtering code so you can use it with any other indicator that you choose to filter(if you know how to customize pine script).
Markets You Can Use This Indicator On
This indicator uses volume and price to calculate values, so it will work on any chart that provides volume and price data.
發行說明
How The VWAP WorksVWAP stands for volume weighted average price. Each VWAP will take into account the volume for each bar, as well as the price based on the source value used, which by default in this script is the (High + Low + Close) / 3. This value is then paired with the volume weighted average price of the next bar and they are all added together one after another, starting from the time it resets which can be at the start of a new day, week, month, or even every few hours.
So a daily VWAP will reset at the beginning of a new day, a weekly VWAP will reset at the start of a new week and a 4 hour VWAP will reset every 4 hours and give you the average price based on volume traded during that period of time for each different VWAP.
These VWAP lines will give you an idea of where the majority of volume traded took place, since higher volume bars will move the VWAP closer to current price action, indicating a large number of buyers and sellers in that time period.
You can use these levels as dynamic support and resistance trends to follow and as a range to trade back and forth, by trading long when price is above the VWAPs and short when price is below the VWAPs. Many times when price is above the daily VWAP and below the intraday VWAPs such as the 4 hour, you can take small scalp trades within the range that the VWAPs give you.
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
Trend Friend - Data Driven Trading Indicators For All Your Favorite Markets
Get Access To Our Premium Indicator Suite -> friendofthetrend.com/
Join Our Trading Group - facebook.com/groups/stockandcryptotradingstrategies
Get Access To Our Premium Indicator Suite -> friendofthetrend.com/
Join Our Trading Group - facebook.com/groups/stockandcryptotradingstrategies
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
Trend Friend - Data Driven Trading Indicators For All Your Favorite Markets
Get Access To Our Premium Indicator Suite -> friendofthetrend.com/
Join Our Trading Group - facebook.com/groups/stockandcryptotradingstrategies
Get Access To Our Premium Indicator Suite -> friendofthetrend.com/
Join Our Trading Group - facebook.com/groups/stockandcryptotradingstrategies
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。