danilogalisteu

Average Volume at Time (AVAT)

danilogalisteu Zaktualizowano   
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
Informacje o Wersji:
Volume on last bar is linearly interpolated according to current time (updated every tick).
Informacje o Wersji:
Reduced function calls.

Cleaned-up comments.
Informacje o Wersji:
Implemented more intelligent accumulation of number of bars in a session, since there may be sessions with different values.
Informacje o Wersji:
Time interpolation for the last bar implemented inside the function call (for easier reuse).
Informacje o Wersji:
max_bars_back increased to 5000 allows an averaging length of 100 down to the 10-minute timeframe.
Informacje o Wersji:
Added current cumulative volume plot for comparison, which can be disabled.
Informacje o Wersji:
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.
Informacje o Wersji:
only aesthetic changes (input strings, histogram width input)

Default length changed to 5 (previous days of data to average).
Informacje o Wersji:
Changed appearance to look like classic volume bars (green/red). Average value show as transparent area plot.
Code updated to version 5.

Skrypt open-source

Zgodnie z prawdziwym duchem TradingView, autor tego skryptu opublikował go jako open-source, aby traderzy mogli go zrozumieć i zweryfikować. Brawo dla autora! Możesz używać go za darmo, ale ponowne wykorzystanie tego kodu w publikacji jest regulowane przez Dobre Praktyki. Możesz go oznaczyć jako ulubione, aby użyć go na wykresie.

Wyłączenie odpowiedzialności

Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.

Chcesz użyć tego skryptu na wykresie?