已更新

ZWAP (ZigZag Anchored VWAP) [Kioseff Trading]

18 127

More exclusive indicators from KioseffTrading

Subscribe to Kioseff Strategy Optimizers for $5.00/month to get exclusive indicators by this author. You pay right on TradingView and can use them on your charts straight away.

Explore Kioseff Strategy Optimizers
Hello!

Quick script showcasing the new polyline function for Pine Script!

Features
  • Up to 100 high/low pivot points auto anchored VWAP
  • Visible range auto anchored VWAP
  • Curved ZigZag (Adjustable!)


With the new polyline function, auto-anchored VWAP at specific price points is more viable.

When using line.new() only 500 lines can exist on the chart concurrently and, since VWAP is calculated on every update, a "proper" VWAP drawn using line.new() can extend 500 bars at most, to which no additional VWAP lines can be drawn after.

Of course, when using the plot() function a VWAP line will draw on every bar; however, this method isn't highly compatible with auto-anchoring VWAP lines.

However!

A polyline, from beginning to end irrespective of the number of coordinates used, constitutes 1 polyline; 100 can exist simultaneously with 10,000 xy coordinates per line.

快照

The image above shows an attempt to draw the same auto-anchored VWAP lines using the line.new() function. Not an ideal outcome!

快照

The image above shows the same attempt using the polyline.new() function!

Very nice (:

快照

The image above shows the indicator auto anchoring to zig zag turning points.

Subsequent to a new anchoring, VWAP is calculated for the following bars - up to the current bar.

Thank you for checking this out; if you have any ideas to spice it up feel free to comment!

版本注释
Updated chart
版本注释
Greatly improved efficiency on lower timeframes

免责声明

这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。