danilogalisteu

Average Volume at Time (AVAT)

danilogalisteu Обновлено   
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, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.

Хотите использовать этот скрипт на графике?