OPEN-SOURCE SCRIPT
已更新 Average Volume at Time (AVAT)

Calculation of average volume at current time for a number of previous sessions, known as Average Volume at Time (AVAT).
Inputs:
* period to use for accumulation. "D" is the default value, useful to view data for each session.
* number of previous sessions to average
TODO: more intelligent accumulation of number of bars in a session, since there may be sessions with different values
TODO: interpolate volume according to current time, inside of the last bar
Inputs:
* period to use for accumulation. "D" is the default value, useful to view data for each session.
* number of previous sessions to average
TODO: more intelligent accumulation of number of bars in a session, since there may be sessions with different values
TODO: interpolate volume according to current time, inside of the last bar
版本注释
Volume on last bar is linearly interpolated according to current time (updated every tick).版本注释
Reduced function calls.Cleaned-up comments.
版本注释
Implemented more intelligent accumulation of number of bars in a session, since there may be sessions with different values.版本注释
Time interpolation for the last bar implemented inside the function call (for easier reuse).版本注释
max_bars_back increased to 5000 allows an averaging length of 100 down to the 10-minute timeframe.版本注释
Added current cumulative volume plot for comparison, which can be disabled.版本注释
Added option to show only % ratio of current session to average volume, as a simpler value for decision making. This option disables the other plots.版本注释
only aesthetic changes (input strings, histogram width input)Default length changed to 5 (previous days of data to average).
版本注释
Changed appearance to look like classic volume bars (green/red). Average value show as transparent area plot.Code updated to version 5.
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。