OPEN-SOURCE SCRIPT
업데이트됨

Average Volume at Time (AVAT)

18 874
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에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.