danilogalisteu

Average Volume at Time (AVAT)

320 views
29
320 0
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
Jan 29
Release Notes: Volume on last bar is linearly interpolated according to current time (updated every tick).
Jan 29
Release Notes: Reduced function calls.

Cleaned-up comments.
Jan 29
Release Notes: Implemented more intelligent accumulation of number of bars in a session, since there may be sessions with different values.
Jan 29
Release Notes: Time interpolation for the last bar implemented inside the function call (for easier reuse).
Jan 29
Release Notes: max_bars_back increased to 5000 allows an averaging length of 100 down to the 10-minute timeframe.
Remove from Favorite Scripts Add to Favorite Scripts

Comments

Home Stock Screener Forex Screener Crypto Screener Economic Calendar How It Works Chart Features Pricing Refer a friend House Rules Help Center Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Blog & News Twitter
Profile Profile Settings Account and Billing Refer a friend My Support Tickets Help Center Ideas Published Followers Following Private Messages Chat Sign Out