에디터즈 픽
OPEN-SOURCE SCRIPT

Anchored VWAP Pinch & Handoff, Intervals, and Signals

업데이트됨
"Anchored VWAP Pinch & Handoff, Intervals, and Signals" is an AVWAP toolbox for those who like to use various VWAP trading techniques. The indicator is currently comprised of the following three sections:


스냅샷

• The Pinch & Handoff section (shown above on chart) allows manually setting an upper and lower AVWAP (Pinch) along with an additional AVWAP (Handoff) by entering dates or by dragging the vertical anchor lines to the desired significant events on chart. Each of these three AVWAPs can also be set to show zones above and/or below by a percentage or standard deviation amount. The theory behind this method is that the upper and lower AVWAPs may act as dynamic support and resistance levels, effectively creating a price range or channel. As price moves between these two VWAP levels, it becomes squeezed or consolidated within that range. Further conjecture is that the longer the price remains within the range of the two anchored VWAP values, the higher the potential for an explosive breakout. Traders using this strategy may interpret the prolonged consolidation as a period of price compression, with the expectation that a significant move in either direction is likely to occur. Traders employing the AVWAP Pinch strategy might look for specific chart patterns or additional confirmation signals to enter a trade. For example, a breakout above the upper anchored VWAP level could trigger a long trade, while a breakdown below the lower anchored VWAP level could signal a short trade. Stop-loss orders and profit targets are typically set based on the trader's risk tolerance and the volatility of the asset. The third AVWAP (Handoff) is typically set after price has broken through the Pinch, and is used as a new level of support or resistance. The "Pinch & Handoff" phrase is believed to have been coined by Brian Shannon, who has popularized this method.


스냅샷

• The Intervals section (shown above on chart) is comprised of six periodic AVWAPs which cyclically reset. Their default settings are 1 Day, 2 Days, 1 Week, 1 Month, 1 Quarter, and 1 Year. They each may be set to desired period and when they are enabled the VWAPs whose periods are lower than the current chart timeframe are automatically hidden. For example a 1 Day AVWAP is not useful on a 1 Week chart so it would be hidden from that timeframe. When using AVWAPs from higher timeframes it may be helpful to set your chart to "Scale price chart only". This can be enabled by right clicking on your chart's price column and then left clicking "Scale price chart only" to enable that option.


스냅샷

• The Auto section (shown above on chart) is comprised of two automatic Anchored VWAPs. There are choices for setting anchors automatically based upon Highest Source, Highest Volume, Lowest Source, Lowest Volume, Pivot High, and Pivot Low. Because these two VWAPs work retroactively they are drawn with lines instead of plots. There is currently a limitation of 500 lines that may be drawn at any given time and the logic within this indicator uses a line for every bar of VWAP that is drawn, so if the combined length of both of these VWAPs exceeds 500 bars the earliest lines would disappear. For typical use of looking for the highest high in the last 50 bars or the last fractal this limitation should not be an issue.


---
All of the plots have been titled including hidden plots that are generated for the AVWAP line drawings. All of the various types of AVWAP within the indicator should be available as choices within the Alert creation dialog if use of alerts is desired.


---
NOTICE: This is an example script and not meant to be used as an actual strategy. By using this script or any portion thereof, you acknowledge that you have read and understood that this is for research purposes only and I am not responsible for any financial losses you may incur by using this script!
릴리즈 노트
Revision 1

Corrected an issue within the Intervals section where when any of the six periodic AVWAPs were changed from their default settings their respective period used for determining when to automatically hide on higher timeframes was not being updated.
릴리즈 노트
How To Add Custom Intervals Section Choices

The Intervals section of this indicator pulls the dropdown choices for timeframes from the user's list of choices that are currently available for their charts. If you wish to use 2 days then you will need to add 2 days to your list of available chart intervals, otherwise that choice will be missing from the list of choices within the indicator. Note that currently creation of custom intervals is not available for Basic accounts. For all other account types click to enlarge the following snapshot below to see how to add custom interval choices to your charts:

스냅샷
릴리즈 노트
Revision 2

Added Intervals section anchor options for Dividends, Earnings, and Splits.

Note that when using Earnings on intraday chart intervals an offset may or may not be required to align those anchor points relative to where the chart's native Earnings markers are shown. Switching between regular and extended sessions while using any affected intraday chart intervals may also require another offset adjustment.

When Show Earnings and Show Earnings Offset are enabled an "E" label will appear to aid in checking/setting the alignment. If the "E" label is misaligned increment the offset +/- until the "E" label visually aligns with one of the chart's native markers for Earnings.

Click the snapshot below for an example of adjusting the Earnings alignment offset:

스냅샷
anchoredavwapBands and Channelshand-offhandoffpinchpriceSupport and ResistanceVolume Weighted Average Price (VWAP)weighted

오픈 소스 스크립트

진정한 TradingView 정신에 따라, 이 스크립트의 저자는 트레이더들이 이해하고 검증할 수 있도록 오픈 소스로 공개했습니다. 저자에게 박수를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰에 의해 관리됩니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

차트에 이 스크립트를 사용하시겠습니까?


lux ex tenebris • deuro mea umbra absens • Telegram: t.me/allanster
또한 다음에서도:

면책사항