danilogalisteu

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
發布通知:
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提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。

想在圖表上使用此腳本?