KioseffTrading

ZWAP (ZigZag Anchored VWAP) [Kioseff Trading]

KioseffTrading Wizard 已更新   
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

•Access to Next-Gen Optimization Tools: www.kiosefftrading.com

•Discord Server: discord.gg/3cKVU28Z9Z
开源脚本

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

免责声明

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

想在图表上使用此脚本?